Centos/Postfix able to send mail but not receive it

Posted by Dan Hastings on Server Fault See other posts from Server Fault or by Dan Hastings
Published on 2014-06-03T07:59:47Z Indexed on 2014/06/03 9:27 UTC
Read the original article Hit count: 311

Filed under:
|
|

I have set up postfix and used the mail command to test and an email was successfully sent and delivered. The email arrived in my yahoo inbox BUT the sender also recieved an email in the Maildir directory saying "I'm sorry to have to inform you that your message could not be delivered to one or more recipients", even though the message was delivered. I tried replying from yahoo to the email but it never arrived.

I have 1 MX record added to godaddy which i did last week.

Priority0   
Host @  
Points to mail.domain.com   
TTL1 Hour

Postfix main.cf has the following added to it

myhostname = mail.domain.com

mydomain = domain.com

myorigin = $mydomain

inet_interfaces = all

mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

mynetworks = 192.168.0.0/24, 127.0.0.0/8

relay_domains =

home_mailbox = Maildir/

I checked var/logs/maillog and found the following errors occuring

postfix/anvil[18714]: statistics: max connection rate 1/60s for (smtp:unknown) at Jun  3 09:30:15
postfix/anvil[18714]: statistics: max connection count 1 for (smtp:unknown) at Jun  3 09:30:15
postfix/anvil[18714]: statistics: max cache size 1 at Jun  3 09:30:15
postfix/smtpd[18772]: connect from unknown[unknown]
postfix/smtpd[18772]: lost connection after CONNECT from unknown[unknown]
postfix/smtpd[18772]: disconnect from unknown[unknown]

output of postconf -n

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = domain.com
myhostname = mail.domain.com
mynetworks = 168.100.189.0/28, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
relay_domains =
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550

© Server Fault or respective owner

Related posts about email

Related posts about postfix