A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.
Postfix bouncing email
I have postfix/dovecot/roundcube running on SL 6.5. Until yesterday, I was able to receive emails from external domains, then suddenly it quit. I can send emails out to external domains and they are received. The server is code25.org, dns is managed by zoneedit since I have a dynamic ip.
The only thing I changed was that apache on the mail server, hosting roundcube, was directly accessible to the internet and then I added an apache proxy in front of it to forward requests for http://mail.code25.org to the mail server. When mail stopped working, I set everything back, removing the apache proxy and it still doesn't work. Even with the apache proxy in place, I was still forwarding ports 110, 143, 995 and 993 directly to the mail server with the router's port forwarding. So all mail requests should have not even gone through the apache proxy.
The response I get on emails sent to the mail server is:
Diagnostic-Code: X-Postfix; mail for code25.org loops back to myself
My postfix (main.cf) config is:
mydomain = code25.org
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
unknown_local_recipient_reject_code = 550
home_mailbox = Maildir/
Maillog doesn't give any indications of errors. It just shows logins to the mail server from roundcube.
Mar 18 21:47:56 mail1 postfix/master: daemon started -- version 2.11.0, configuration /etc/postfix
Mar 18 21:48:01 mail1 dovecot: imap-login: Login: user=<chris.morrow>, method=PLAIN, rip=192.168.0.1, lip=192.168.0.180, mpid=4750
Mar 18 21:48:02 mail1 dovecot: imap(chris.morrow): Disconnected: Logged out bytes=90/773
Mar 18 21:48:07 mail1 dovecot: imap-login: Login: user=<chris.morrow>, method=PLAIN, rip=192.168.0.1, lip=192.168.0.180, mpid=4752
Mar 18 21:48:07 mail1 dovecot: imap(chris.morrow): Disconnected: Logged out bytes=279/1520