Group: comp.os.linux.networking
From: Peter Ludikovsky
Date: Thursday, March 13, 2008 7:58 AM
Subject: Re: bind outgoing mail connects to virtual ip address?

Jack Snodgrass wrote:
> I'm pretty sure that this has been asked before... but I googled a bit
> and could not find an answer....
>
> I have a server running postfix ( don't think that the mail server
> software will make a difference ) and it has a primary IP Address
> and a 2nd / virtual IP Address. The 2nd / virtual IP address is
> reverse mapped back to my domain so when I send mail, I want that
> IP Address to be associated with the connection. Normally, the main
> IP Address on the Interface is used.... this does not reverse back
> to my domain so I need to use the 2nd / virtual Ip address on the
> outgoing mail connects. Some mail servers do a reverse lookup on
> the incoming connection and act differently if you say that you
> are 'y' but your reverse lookup says that you are 'x'.
>
> I am pretty sure that iptables is the answer... but I'm not sure
> if I want to mangle or snat or what....
>
> Thanks - jack
>

In postfix main.cf set (according to man 5 postconf
[http://linux.die.net/man/5/postconf])
inet_interfaces =

HTH
/peter

Safety Articles | Usenet Groups | Usenet News | Bluegrass