Istvan Prosinger:
> > Assuming that Postfix runs on the firewall, otherwise you will need
> > to add telepathic vision to Postfix and also set smtp_proxy_address
> > to avoid "mail loops back to myself" errors.
> >
> > host1_mynetworks =
> > output from "postconf mynetworks" with external address 1
> > bind1_address = 1.2.3.4
> > bind2_address = 1.2.3.5
> >
> > smtp_helo_name = ${
> > {$mynetworks} == {$host1_mynetworks} ?
> > {$bind1_address} : {$bind2_address}
> > }
> >
> > It's really better to execute a command that sets both the
> > external address AND Postfix settings.
>
> Yeah. Thanks for this. Postfix isn't running on the same machine with
> the firewall. I thought that I'll manage to avoid this, but you're
> right. I'll just create the script that will walk into the Postfix
> machine and change it's setting when I switch the outgoing IP on the
> firewall.
And don't forget to update proxy_interfaces, to avoid "mail loops
back to myself" errors.
Wietse