> On Jun 7, 2018, at 9:33 PM, James D. Parra <
[hidden email]> wrote:
>
> Would having the following entries in the main.cf allow the other servers, that cannot connect to the main relayhost server, use a secondary relayhost server to send email?
>
> <snip>
> relayhost = relayserver1.mydomain.com
> smtp_fallback_relay = relayserver2.mydomain.com
> <smtp>
Yes, but if these are "hostnames", i.e. no MX lookups
are intended, the correct syntax is:
> relayhost = [relayserver1.mydomain.com]
> smtp_fallback_relay = [relayserver2.mydomain.com]
You can also just configure an MX RRset:
relay.mydomain.com. IN MX 10 relayserver2.mydomain.com.
relay.mydomain.com. IN MX 20 relayserver1.mydomain.com.
and use "relay.mydomain.com" without "[]". You can also
load-balance the MX hosts by giving them equal preferences.
--
Viktor.