Why is Postfix able to send emails to other domains but not its own domain?
I set up an SMTP server on a CentOS 7 droplet. Emails are successfully being sent to Gmail accounts, but they are failing to send to my G Suite email accounts.
Jan 1 13:35:48 Production postfix/smtp: E5B653FDBA: to=<firstname.lastname@example.org>, relay=gmail-smtp-in.l.google.com[18.104.22.168]:25, delay=877, delays=876/0.02/0.31/0.25, dsn=2.0.0, status=sent (250 2.0.0 OK 1483295748 k58si25466087qta.76 - gsmtp)
Jan 1 13:35:48 Production postfix/lmtp: E5B653FDBA: email@example.com, firstname.lastname@example.org, relay=none, delay=876, delays=876/0.02/0.02/0, dsn=4.4.1, status=deferred (connect to example.com[/var/lib/imap/socket/lmtp]: No such file or directory)
Jan 1 13:35:48 Production postfix/smtp: connect to gmail-smtp-in.l.google.com[2607:f8b0:400d:c0e::1b]:25: Network is unreachable
I replaced my domain name with example.com above.
I was able to fix the “Network is unreachable” by opening /etc/postfix/main.cf and setting the following:
inet_protocols = ipv4
However, the other error is still present, and emails are still failing to send to my domain accounts:
Jan 1 17:22:38 Production postfix/lmtp: 9EC3E3FE3C: email@example.com, firstname.lastname@example.org, relay=none, delay=1104, delays=1104/0.03/0.01/0, dsn=4.4.1, status=deferred (connect to example.com[/var/lib/imap/socket/lmtp]: No such file or directory)
Why is Postfix able to send emails to all domains except the one that it’s running from? How can this be fixed?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×