OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Unique IP per virtual domain

From: Kurt Neufeld (kneufeld.postfixburgundywall.com)
Date: Fri Oct 12 2007 - 12:00:46 CDT


Hi there,

I would like to setup Postfix to use a unique ip address per virtual
domain. This is easy enough to do for incoming mail, but how to setup
postfix to SEND from the specific ip address when the From header (or
something else?) matches a specific virtual domain.

The reasoning is that if one domain gets black listed for some reason
the other domains won't be affected. If all email originates from the
same ip address and anybody gets black listed then everybody else loses.

I've done some googling and found the following thread:

http://groups.google.com/group/list.postfix.users/browse_thread/thread/5f82390207686481/57a2148d534f52a7?lnk=gst&q=virtual+domain+ip+address#57a2148d534f52a7

and saw the following reference from `man postconf`:

Setting $inet_interfaces to a single IPv4 and/or IPV6 address is
primarily useful with virtual hosting of domains on secondary IP
addresses, when each IP address serves a different domain (and has a
different $myhostname setting).

but could not find any reference on how to actually set up this behaviour.

Thanks for any help.

Kurt