Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 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?

share|improve this question

1 Answer 1

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

  1. Check server hostname: command $hostname
  2. Check mydestination mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost
share|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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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