I configured a Postfix Server on RHEL 5
this is how my main.cf looks like
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
default_privs = nobody
header_checks = regexp:/etc/postfix/header_checks
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
local_recipient_maps = unix

asswd.byname $alias_maps
luser_relay = admin+$local
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $mydomain, $myhostname, localhost.$mydomain
mydomain = domain.com
myhostname = mail.domain.com
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
recipient_delimiter = +
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_unlisted_recipient, check_policy_service unix

ostgrey/socket
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = private/auth-client
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_CAfile = /etc/postfix/certs/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/certs/smtpd.crt
smtpd_tls_key_file = /etc/postfix/certs/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
i have used dovecot and cyrus-sasl for smtp-auth to prevent open relay
i have also configured postgrey and Mail Scanner..
when i telnet to my server on port 25 output comes
Trying 127.0.0.1...
Connected to mail.domain.com (127.0.0.1).
Escape character is '^]'.
220 mail.domain.com ESMTP Postfix
ehlo mail.domain.com
250-mail.domain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
and on pop3
Connected to mail.domain.com (127.0.0.1).
Escape character is '^]'.
+OK Dovecot ready.
now the problem is i am not able to recieve any mails.. i tried to send it within my domain also. but waste..
i am also adding logs, kindly guide me where i am wrong
Jul 18 22:38:16 mail dovecot: imap-login: Login: user=<parth>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
Jul 18 22:38:16 mail dovecot: IMAP(parth): Disconnected: Logged out
Jul 18 22:38:29 mail dovecot: imap-login: Login: user=<parth>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
Jul 18 22:38:29 mail postfix/pickup[20811]: 4F5234C6D98: uid=48 from=<parth@domain.com>
Jul 18 22:38:29 mail postfix/cleanup[23049]: 4F5234C6D98: hold: header Received: by mail.domain.com (Postfix, from userid 48)??id 4F5234C6D98; Sat, 18 Jul 2009 22:38:29 +0530 (IST) from local; from=<parth@domain.com>
Jul 18 22:38:29 mail dovecot: IMAP(parth): Disconnected: Logged out
Jul 18 22:38:29 mail dovecot: imap-login: Login: user=<parth>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
Jul 18 22:38:29 mail dovecot: IMAP(parth): Disconnected: Logged out