Johan Andersson:
> Hi.
>
> Ok, thanks for the info.
>
I would recommend using this:
/etc/postfix/main.cf:
transport_maps = hash:/etc/postfix/transport
/etc/postfix/transport:
# Inbound relay for example.com. See STANDARD_CONFIGURATION_README.html
example.com relay:[mailhost.example.com]
# All other mail uses the smtp transport which has smtp_fallback_relay
# added to it in master.cf.
* smtp:[some.example.com]
/etc/postfix/master.cf:
smtp unix - - n - - smtp
-o smtp_fallback_relay=[other.example.com]
relay unix - - n - - smtp
Using different transports for inbound (relay) and outbound (smtp)
reduces congestion problems with the per-destination scheduler.
Wietse
>
> Johan
>
> -----Ursprungligt meddelande-----
> Fr?n: [email protected]
> [mailto:[email protected]] F?r Wietse Venema
> Skickat: den 25 januari 2012 14:29
> Till: Postfix users
> ?mne: Re: Missing(?) function is Postfix
>
> Johan Andersson:
> > Hello !
> >
> > In sendmail it is possible to add this to mailertable
> >
> > domain.com smtp:[server1]
> > . smtp:[server2]:[server3]
> >
> > If server2 is not responding, then send to server3.
> >
> > Is that function available in Postfix and if not, will it be (it would
> > be nice to have :))? I believe it wasn't a while ago .....
>
> In Postfix, use the smtp_fallback_relay feature if you have poor
> connectivity.
>
> If you need per-destination lists of mail relays, then you are re-inventing
> the functionality that DNS already provides.
>
> Wietse
>