Postfix Mail Loop
Hey All!
My domain name has two MX servers, one with a priority of 0 and the second with a priority of 20.
When both servers are running. Any messages sent to the 20 priority level server is immediatly passed to the primary. But unfortunatly if the primary is down, the secondary looks up the domain and sees it self as the only available server and sends the message to it self over and over...
I have the backup mx server set to relay messages to the primary mail server for the domain.
Perhaps I have done this in the wrong way.
Is there a better way to do this?
thanks,
David
For obvious reasons I sensored private information.
The substitutions are pretty straight forward so I will not explain. This is the mail log from the server with priority 20. And is calling itself in the log mail2.mydomain.net.
This actually goes on for quite a bit, it tried about 100 times to send it to itself.
=== Clip ====
Dec 28 20:38:24 keble postfix/smtpd[6331]: connect from rproxy.gmail.com[64.233.170.203]
Dec 28 20:38:25 keble postfix/smtpd[6331]: 01AE533E6C: client=rproxy.gmail.com[64.233.170.203]
Dec 28 20:38:25 keble postfix/cleanup[6332]: 01AE533E6C: message-id=<a8452c8404122817461d28c884@mail.gmail.com>
Dec 28 20:38:25 keble postfix/nqmgr[28555]: 01AE533E6C: from=<someuser@gmail.com>, size=2162, nrcpt=1 (queue active)
Dec 28 20:38:25 keble postfix/smtp[6334]: connect to mail1.mydomain.net[PrimaryMXipaddress]: Network is unreachable (port 25)
Dec 28 20:38:25 keble postfix/smtpd[6331]: disconnect from rproxy.gmail.com[64.233.170.203]
Dec 28 20:38:25 keble postfix/smtpd[6335]: connect from unknown[192.168.1.1]
Dec 28 20:38:25 keble postfix/smtp[6334]: warning: host mail2.mydomain.net[SecondaryMXipaddress] greeted me with my own hostname mail.mail2.mydomain.net
Dec 28 20:38:25 keble postfix/smtp[6334]: warning: host mail2.mydomain.net[SecondaryMXipaddress] replied to HELO/EHLO with my own hostname mail.mail2.mydomain.net
Dec 28 20:38:25 keble postfix/smtp[6334]: 01AE533E6C: to=<Reciever's email>, relay=mail2.mydomain.net[SecondaryMXipaddress], delay=0, status=deferred (mail for mail1.mydomain.net loops back to myself)
Dec 28 20:38:25 keble postfix/smtpd[6335]: lost connection after EHLO from unknown[192.168.1.1]
Dec 28 20:38:25 keble postfix/smtpd[6335]: disconnect from unknown[192.168.1.1]
Dec 28 20:48:46 keble postfix/nqmgr[28555]: 01AE533E6C: from=<someuser@gmail.com>, size=2162, nrcpt=1 (queue active)
Dec 28 20:48:46 keble postfix/smtp[6348]: connect to mail1.mydomain.net[PrimaryMXipaddress]: Network is unreachable (port 25)
Dec 28 20:48:46 keble postfix/smtpd[6349]: connect from unknown[192.168.1.1]
Dec 28 20:48:46 keble postfix/smtp[6348]: warning: host mail2.mydomain.net[SecondaryMXipaddress] greeted me with my own hostname mail.mail2.mydomain.net
Dec 28 20:48:46 keble postfix/smtp[6348]: warning: host mail2.mydomain.net[SecondaryMXipaddress] replied to HELO/EHLO with my own hostname mail.mail2.mydomain.net
|