gimhan90
21st February 2006, 16:07
HI..
My postfix email server is running correctly now.There is a smalle problem.I can check email with my outlook express but unable to send emails.Log file shows following error
Feb 20 23:06:54 linux pop3d: LOGIN: DEBUG: ip=[::ffff:222.165.169.248], username=web7_lasitha
Feb 20 23:06:54 linux pop3d: LOGIN: DEBUG: ip=[::ffff:222.165.169.248], password=*****
Feb 20 23:06:54 linux pop3d: authdaemon: starting client module
Feb 20 23:06:55 linux pop3d: authdaemon: ACCEPT, username web7_lasitha
Feb 20 23:06:55 linux pop3d: LOGIN, user=web7_lasitha, ip=[::ffff:222.165.169.248]
Feb 20 23:06:55 linux pop3d: LOGOUT, user=web7_lasitha, ip=[::ffff:222.165.169.248], top=0, retr=0, time=0
Feb 20 23:07:05 linux postfix/smtpd[19148]: connect from unknown[222.165.169.248]
Feb 20 23:07:06 linux postfix/smtpd[19148]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead
Feb 20 23:07:06 linux postfix/smtpd[19148]: NOQUEUE: reject: RCPT from unknown[222.165.169.248]: 554 <lasitha@codegen.net>: Recipient address rejected: Relay access denied; from=<lasitha@cosmoforge.com> to=<lasitha@codegen.net> proto=SMTP helo=<Lasitha>
Feb 20 23:07:06 linux postfix/smtpd[19148]: disconnect from unknown[222.165.169.248]
I think this will be usefult for you
su93254144:~ # telnet localhost smtp
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 su93254144.cosmoforge.com ESMTP Postfix
ehlo localhost
250-su93254144.cosmoforge.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250 8BITMIME
quit
221 Bye
Connection closed by foreign host.
And here is main.cf configurations
inet_protocols = all
inet_interfaces = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
#virtual_maps = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
program_directory = /usr/lib/postfix
mynetworks = 192.168.0.0/24,66.240.0.0/24, 127.0.0.0/8
masquerade_domains =
#mydestination = $myhostname, localhost.$mydomain
defer_transports =
disable_dns_lookups = no
relay_domains = cosmoforge.com
mailbox_command =
mailbox_transport =
home_mailbox = Maildir/
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_ relay_domains
smtp_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_use_tls = yes
smtp_use_tls = yes
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
virtual_maps = hash:/etc/postfix/virtusertable
mydestination = /etc/postfix/local-host-names
mydomain = cosmoforge.com
myhostname = su93254144.$mydomain
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
My postfix email server is running correctly now.There is a smalle problem.I can check email with my outlook express but unable to send emails.Log file shows following error
Feb 20 23:06:54 linux pop3d: LOGIN: DEBUG: ip=[::ffff:222.165.169.248], username=web7_lasitha
Feb 20 23:06:54 linux pop3d: LOGIN: DEBUG: ip=[::ffff:222.165.169.248], password=*****
Feb 20 23:06:54 linux pop3d: authdaemon: starting client module
Feb 20 23:06:55 linux pop3d: authdaemon: ACCEPT, username web7_lasitha
Feb 20 23:06:55 linux pop3d: LOGIN, user=web7_lasitha, ip=[::ffff:222.165.169.248]
Feb 20 23:06:55 linux pop3d: LOGOUT, user=web7_lasitha, ip=[::ffff:222.165.169.248], top=0, retr=0, time=0
Feb 20 23:07:05 linux postfix/smtpd[19148]: connect from unknown[222.165.169.248]
Feb 20 23:07:06 linux postfix/smtpd[19148]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead
Feb 20 23:07:06 linux postfix/smtpd[19148]: NOQUEUE: reject: RCPT from unknown[222.165.169.248]: 554 <lasitha@codegen.net>: Recipient address rejected: Relay access denied; from=<lasitha@cosmoforge.com> to=<lasitha@codegen.net> proto=SMTP helo=<Lasitha>
Feb 20 23:07:06 linux postfix/smtpd[19148]: disconnect from unknown[222.165.169.248]
I think this will be usefult for you
su93254144:~ # telnet localhost smtp
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 su93254144.cosmoforge.com ESMTP Postfix
ehlo localhost
250-su93254144.cosmoforge.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250 8BITMIME
quit
221 Bye
Connection closed by foreign host.
And here is main.cf configurations
inet_protocols = all
inet_interfaces = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
#virtual_maps = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
program_directory = /usr/lib/postfix
mynetworks = 192.168.0.0/24,66.240.0.0/24, 127.0.0.0/8
masquerade_domains =
#mydestination = $myhostname, localhost.$mydomain
defer_transports =
disable_dns_lookups = no
relay_domains = cosmoforge.com
mailbox_command =
mailbox_transport =
home_mailbox = Maildir/
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_ relay_domains
smtp_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_use_tls = yes
smtp_use_tls = yes
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
virtual_maps = hash:/etc/postfix/virtusertable
mydestination = /etc/postfix/local-host-names
mydomain = cosmoforge.com
myhostname = su93254144.$mydomain
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom