I have two machines running postfix, one is the primary mail server, the other is a backup relay.

Both servers have an MX record, the backup having a lower priority.

Most mail is relayed fine, but the backup occasionally tries to relay mail to it's own FQDN resulting in "mail for domain.com loops back to myself" in the logs and delayed emails.

How can I prevent the backup postfix from attempting to relay to it's own MX record?

link|improve this question

60% accept rate
feedback

1 Answer

How can I prevent postfix from attempting to relay to the second MX record?

  1. Check server hostname: command $hostname
  2. Check mydestination main.cf: mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost
link|improve this answer
wouldn't specifying 'mydestination = ... $mydomain ...' try to deliver mail to a local spool rather than relaying it? – Cogsy Oct 12 '10 at 6:33
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.