MX backup server with postfix on debian
Not to lose mails when main mail server is down, best solution is - mx backup server.
This is configuration to have backup mx server set up and running.
|
|
create /etc/postfix/relaydomains with contents:
|
|
then to create map for postfix - run:
|
|
create /etc/postfix/transportmaps with contents:
|
|
and run:
|
|
Backup MX should be added in DNS zone in order to receive mails.
In my case I have such records:
|
|
First digit means priority. The bigger value, the smaller priority.
So my MX backup server is mx2. It receives mail only if higher priority server is down.
That’s it.