Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to be able to specify what interface Postfix will use to deliver outbound mail on. What I am doing is setting up an SMTP gateway to deliver mail from different, unrelated groups. I plan to setup a separate instance of Postfix for each group to receive mail, and each instance will need to deliver on its own virtual interface.

The reason I need them separate is so that if one of the groups misbehaves and gets the server blacklisted, I don't want any of the other groups affected. But I don't want to have to setup entirely separate servers or VMs if possible.

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

You're looking for smtp_bind_address and smtp_bind_address6. Details are available here.

share|improve this answer
    
That's exactly it! Thanks a bunch –  Alex Feb 11 '11 at 18:03
    
It's customary when the answer is correct to click the little tick mark next to the answer! People are more likely to answer future questions if you acknowledge previous correct answers! –  Niall Donegan Feb 11 '11 at 18:23
add comment

Would inet_interfaces do what you want?

When inet_interfaces specifies just one IPv4 and/or IPv6 address that is not a loopback address, the Postfix SMTP client will use this address as the IP source address for outbound mail. Support for IPv6 is available in Postfix version 2.2 and later.

share|improve this answer
add comment

Your Answer

 
discard

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.