On Fri, 14 Apr 2006 15:30:16 +0000, Greg Hackney wrote:
> Jeffrey Overman wrote:
>> Hi,
>>
>> Is it possible to bind to a specific interface for outgoing SMTP sessions?
>> I've got one real interface with 3 aliases configured for it. I'd like to use
>> one of those aliases as the interface which is used for sending mail out.
>>
>> Can this be done with postfix? I know how to do it with sendmail and exim,
>> but that won't get me far as I'm using postfix at the moment 
>>
>> Thanx,
>>
>
>
> Some relevant configs in main.cf:
>
> inet_interfaces - contols which IP addresses that Postfix listens on.
>
> smtp_bind_address - specifies which IP address to send email from.
>
> myhostname - sets the Postfix name for the mail server7
The smtp_bind_address did the trick. Thanx! The only strange thing is
that when I do a 'postconf -d' and grep for the option, it doesn't have
the IP address I configured associated with it. But when I look at the
logs of another MTA under my control, I can see that the SMTP session is
bound to the right IP address.
Greetz,
--
Jeffrey Overman
Everybody needs to believe in something, I believe I'll have another beer...