On Fri, Feb 13, 2015 at 04:56:49PM +0100, Robert Dahlem wrote: > >> /etc/postfix/sender_dependent_transport: > >> ---------------------------------------- > >> @example.tld smtp_example: > > > > Set the relayhost above (smtp_example:[example_server1]) > > That works now, thank you! > > Can I do anything about smtp_fallback_relay here? If example_server1 is > dead I would like to fall back to example_server2.
So long as the transport in question is used for exactly one set of destination relays, for which the same set of fallback relay host applies, you can obviously use smtp_fallback_relay. Both by name and documentation, that parameter applies to the smtp(8) delivery agent. That said, my preference is to encode fallback relays into locally mastered MX RRsets: transport: # Destination # Transport:nexthop example.com smtp:example.com.localhost /etc/namedb/localhost: # "localhost" zone file, mastered by local iterative # nameserver. ... example.com.localhost. IN MX 0 mx1.example.net. example.com.localhost. IN MX 1 mx2.example.net. example.com.localhost. IN MX 2 mx3.example.com.localhost. mx3.example.com.localhost. IN A 192.0.2.1 This is far more flexible, and avoids the need for clumsy fallback relay settings. -- Viktor.