1

Topic: MAIL SERVER High Availability

- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: Cent OS 7.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? yes, 2.9.0
#########################################################################

Currently our mail server has only one leased line connectivity and we are planning failover to another leased line provider.
How can we achieve this, means like configuring MX , A record and what all other things needs to be done apart from network set up ?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: MAIL SERVER High Availability

There is some documentation here:
https://docs.iredmail.org/haproxy.keepa … terfs.html
https://pastebin.com/JcYeQBrX

These links are from the iRedMail Doc page: https://docs.iredmail.org/index.html

saquib.akhtar wrote:

- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: Cent OS 7.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? yes, 2.9.0
#########################################################################

Currently our mail server has only one leased line connectivity and we are planning failover to another leased line provider.
How can we achieve this, means like configuring MX , A record and what all other things needs to be done apart from network set up ?

3

Re: MAIL SERVER High Availability

jstewart wrote:

There is some documentation here:
https://docs.iredmail.org/haproxy.keepa … terfs.html
https://pastebin.com/JcYeQBrX

These links are from the iRedMail Doc page: https://docs.iredmail.org/index.html

saquib.akhtar wrote:

- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: Cent OS 7.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? yes, 2.9.0
#########################################################################

Currently our mail server has only one leased line connectivity and we are planning failover to another leased line provider.
How can we achieve this, means like configuring MX , A record and what all other things needs to be done apart from network set up ?

I already saw those documents, except for the second link.
But my question is still same:
I have one server and two WAN network and I want to create failover for network, as soon as the first network goes down, the mail server runs using second WAN connectivity, so I just need to know configuring MX , A record and what all other things needs to be done apart from network set up ?

4

Re: MAIL SERVER High Availability

You can try setting up 2 IPs for 2 hostnames MX records in your Domain DNS settings having same priority. I had set this earlier when I had single server which worked fine for me. You just need to test it out.

e.g.
2 hostnames
2 IPs
10 Priority same for both hosts

5 (edited by johnsjs 2018-10-11 20:38:21)

Re: MAIL SERVER High Availability

ketan.aagja wrote:

You can try setting up 2 IPs for 2 hostnames MX records in your Domain DNS settings having same priority. I had set this earlier when I had single server which worked fine for me. You just need to test it out.

e.g.
2 hostnames
2 IPs
10 Priority same for both hosts

you only need one domain, with the two IPs as different MX.  If you want one as primary and the other as failover then set the mx priorities differently, with the main one having a lower number as priority.