Hello,
We are setting up a gateway server (mx.example.com) to serve as primary
MX (for domain example.com).
It will receive mail from the Internet and forward (relay) it using:
transport_maps = hash:/etc/postfix/transportmap
where: /etc/postfix/transportmap
example.com relay:[mail.example.com]
I was wondering whether we could set up this server in a way so it can
forward (relay) all mail to mail.example.com AND, if (and only if) this
is temporarily down, then:
1. Keep incoming mail in queue until it can contact mail.example.com
again and deliver. (Does this happen by default?)
- AND -
2. Relay incoming mail *also* to mail2.example.com (that is, only for
the period when mail.example.com is down).
Can we set this up (and how)?
The idea is to provide a mailbox for users where they can access the
mail arriving for them during the period when their main mailbox is down
for some reason. The rest of time, the "secondary" mailbox on
mail2.example.com would be auto sync'ed to the "primary" (normal) one,
on mail.example.com, using some other process. (e.g. using dovecot dsync.)
Please advise.
Thanks in advance,
Nick