On Mon, Mar 30, 2015 at 07:18:52AM -0400, Wietse Venema wrote:
> Sedhumadhavan Parthasarathy1:
> > Hi All,
> >
> > Our primary outbound mail is configured in postfix MTA. We would like to
> > set a secondary outbound mail server on DR sitee.
>
> With all Postfix versions, you would set relayhost to a name that
> resolves to multiple IP addresses (in DNS or /etc/hosts). In my
> first 10+ years in IBM I had:
>
> relayhost = $mydomain
I'd go with a variant of that:
relayhost = outbound.$mydomain
and configure MX records for that name in the internal DNS:
outbound IN MX 0 primary
outbound IN MX 10 secondary
primary IN A 192.0.2.1
secondary IN A 192.0.2.2
mail will go to the primary first, and only if the primary is down
or defers the transaction with a 4XX code will it go to the secondary.
--
Viktor.