How can I bind Postfix to only send outgoing mail via one IP address (ie, always use the same ethernet interface)?

I have a server which has two IP addresses, one on eth0 and one on eth0.1. I have discovered that some of my outgoing mail is being rejected by over-zealous spam filters because it comes from the second, which doesn't have reverse DNS configured (which is OK; I don't use it for anything which needs it).

However, Postfix seems to pick the "wrong" interface for sending outgoing mail, hence the problems above. How can I force it to always use the one I want it to use?

Adding reverse DNS to the second IP is not the solution; I don't have control over this and, in any case, all my existing mail DNS is set to use the primary IP.

I've looked at the documentation, and can't see anything obvious. inet_interfaces seems only to apply to inbound mail - that is, interfaces from which Postfix will accept mail, not those which it uses to send it.

Any clues, anyone?

Mark
--
 Sent from my Babbage Difference Engine
 http://mark.goodge.co.uk
 http://www.ratemysupermarket.com

Reply via email to