Thanks for the reference. How could this be used with some condition?
I am looking for binding sender domain A with IP 1 and domain B go
through IP 2, go to IP3 otherwise.

- Joe

On Tue, Feb 7, 2012 at 8:00 PM, Wietse Venema <wie...@porcupine.org> wrote:
> Reindl Harald:
>> Am 07.02.2012 09:53, schrieb Joe Wong:
>> > Hello,
>> >
>> >  Say my MTA has multiple IP addresses on it. Is there a way to
>> > configure Postfix (outbound) to use IP 1 when matching condition A and
>> > IP2 if matching condition B and IP3 and none of the conditions are
>> > matched?
>>
>> you can define "smtp_bind_address" for each outgoing process
>> defined in "master.cf"
>>
>> cat /etc/postfix/master.cf | grep smtp_bind
>> smtp            unix  -       -       n       -      50       smtp -o 
>> smtp_bind_address=10.0.0.6 -o max_idle=300 -o
>> max_use=500
>> relay           unix  -       -       n       -       -       smtp -o 
>> smtp_bind_address=10.0.0.6 -o max_idle=300 -o
>> max_use=500 -o smtp_fallback_relay=
>
> If you do this on a firewall, then be sure to read the Postfix
> manpage for smtp_bind_address and inet_interfaces, to avoid
> some common pitfalls with routing.
>
> http://www.postfix.org/postconf.5.html#smtp_bind_address
> http://www.postfix.org/postconf.5.html#inet_interfaces
>
>        Wietse

Reply via email to