1

Topic: 2 WAN connections for failover

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.2
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- Linux/BSD distribution name and version: Ubuntu 22.04.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

We recently had a second ISP installed for failover.  Late last week our main provider went offline so the second provider came online.  Mail server was unable to send mail or receive outside mail.  Updated MX record to point to new IP but that didn't work.

Is there a way to have to public IPs for one mail server?  I have read some post that say just add a second host to mx record with a higher priority, but what about the PTR record? I have looked in the forums and i'm not seeing any info on this.

Thanks for your help.

----

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

2

Re: 2 WAN connections for failover

brent.defranco wrote:

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.2
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- Linux/BSD distribution name and version: Ubuntu 22.04.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

We recently had a second ISP installed for failover.  Late last week our main provider went offline so the second provider came online.  Mail server was unable to send mail or receive outside mail.  Updated MX record to point to new IP but that didn't work.

Is there a way to have to public IPs for one mail server?  I have read some post that say just add a second host to mx record with a higher priority, but what about the PTR record? I have looked in the forums and i'm not seeing any info on this.

Thanks for your help.

Nope, You need to have two Mail Exchangers, mx1 WAN IP1, mx2 WAN2 IP.

Don't try using two IP Address for one Mail Server as this will cause problems meaning PTR Record won't match & will marked as SPAM.

Regards

3

Re: 2 WAN connections for failover

jackb wrote:
brent.defranco wrote:

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.2
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- Linux/BSD distribution name and version: Ubuntu 22.04.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

We recently had a second ISP installed for failover.  Late last week our main provider went offline so the second provider came online.  Mail server was unable to send mail or receive outside mail.  Updated MX record to point to new IP but that didn't work.

Is there a way to have to public IPs for one mail server?  I have read some post that say just add a second host to mx record with a higher priority, but what about the PTR record? I have looked in the forums and i'm not seeing any info on this.

Thanks for your help.

Nope, You need to have two Mail Exchangers, mx1 WAN IP1, mx2 WAN2 IP.

Don't try using two IP Address for one Mail Server as this will cause problems meaning PTR Record won't match & will marked as SPAM.

Regards

Thanks for the reply and the help.  I guess what i'm having a hard time understanding is how would the mail client know where to get mail.  If we have client mail settings for mail.company.com, and that a host is down, how would mail client know to get mail from mail2.company.com?  Also would I need a second PTR pointing to mail2.company.com since it has a differnt public IP?

4

Re: 2 WAN connections for failover

brent.defranco wrote:
jackb wrote:
brent.defranco wrote:

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.2
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- Linux/BSD distribution name and version: Ubuntu 22.04.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

We recently had a second ISP installed for failover.  Late last week our main provider went offline so the second provider came online.  Mail server was unable to send mail or receive outside mail.  Updated MX record to point to new IP but that didn't work.

Is there a way to have to public IPs for one mail server?  I have read some post that say just add a second host to mx record with a higher priority, but what about the PTR record? I have looked in the forums and i'm not seeing any info on this.

Thanks for your help.

Nope, You need to have two Mail Exchangers, mx1 WAN IP1, mx2 WAN2 IP.

Don't try using two IP Address for one Mail Server as this will cause problems meaning PTR Record won't match & will marked as SPAM.

Regards

Thanks for the reply and the help.  I guess what i'm having a hard time understanding is how would the mail client know where to get mail.  If we have client mail settings for mail.company.com, and that a host is down, how would mail client know to get mail from mail2.company.com?  Also would I need a second PTR pointing to mail2.company.com since it has a differnt public IP?

Correct. Both mail servers will require PTR Records.

mx1 has a PTR for WAN1 that matches mx1.domain.com

mx2 has a PTR for WAN2 that matches mx2.domain.com

Mail servers are not designed to work like this. If mx1 goes offline then mx2 will receive the emails then once mx1 is back online they get relayed from mx2 to mx1.

Now you could have webmail on a separate host that has both IPs configured by using a Load Balancer.

Regards