Create a mail server secondary MX

June 26, 2014 7.6k views

Currently I have a server with email only 1 MX. Made through the tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-iredmail-on-centos-6-5-x64

But at times, there is a server unavailability and would not take a second to go through the trouble.

Some companies have several lodging MX records, and would like to have more 1. Placing or to follow tutorial?

Thank you.

2 Answers

Correct way is create basically a second mail server that relays mail to your first when down. See http://www.cyberciti.biz/faq/postfix-backup-mx-server-anti-spam/ for postfix example. I would think you could find something similar with iredmail. Never used it so not sure.

If your mail server is down a correctly configured mail server will retry to send the message every X hours. (Think 4 hours is common) and then finally give up after X days. (5 days I think) Some mail servers may or may not respond to sender informing them mail can't be sent.

  • Instead of creating a secondary server just to get the emails and hold them back until the primary, you can not create another email server that accesses the same database and the same directory as the primary? Then when the primary return will access the same information saved by the secondary server and vice versa with the secondary recovery and data recording? Today my email server already accesses the database on a separate server. Only miss access to separate files and web access.

    Thank you.

Instead of creating a secondary server just to get the emails and hold them back until the primary, you can not create another email server that accesses the same database and the same directory as the primary? Then when the primary return will access the same information saved by the secondary server and vice versa with the secondary recovery and data recording? Today my email server already accesses the database on a separate server. Only miss access to separate files and web access.

Thank you.

Have another answer? Share your knowledge.