lutz.niede...@gmx.net: > > The best solution is to use MX records; that's what they're for. > > > > Alternately, look at > > http://www.postfix.org/postconf.5.html#smtp_fallback_relay > > > > Sure. But this is not exactly what I'm looking for. > We need a way to specify a second relay if the first does not answer. At > this point we don't examine MXs yet. We push all mail to the relay #1. This > relay #1 looks at MXs. > We would like to push to relay #2 if relay #1 is not available.
/etc/postfix/main.cf: relayhost = relay.example.com Where relay.example.com resolves to one or more A records. Alternatively: /etc/postfix/main.cf: # The [] prevent MX queries. relayhost = [relay1.example.com] smtp_fallback_relay = [relay2.example.com] Or: /etc/postfix/main.cf: # No Postfix DNS queries. relayhost = relay1.example.com smtp_fallback_relay = relay2.example.com smtp_host_lookup = native Options abound. Wietse