Configure 2 Mailserver with 2 MX records?

behinam

Well-Known Member
May 9, 2017
77
5
58
Dubay
cPanel Access Level
Root Administrator
I have 2 Mail server, I want some of emails go to Mailserver1 and some other emails go to Mailserver2, I used multi MX records with different priority but mail not deliver to Mailserver2 .

First Mx for first Mailserver:
MyDomain.com 0 MX domain-com.mail.protection.outlook.com.

Second Mx for Second Mailserver:
MyDomain.com 1 MX Mydomain.com

is it possible I send email to 2 diffrent Mail server ?
 
Last edited:

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
807
160
168
New Jersey
cPanel Access Level
DataCenter Provider
Giving 0 priority to domain-com.mail.protection.outlook.com means that one would always be picked first since it has the highest priority. If you want emails to go to either or, which will be pretty random, you want to give them the same priority.
 

behinam

Well-Known Member
May 9, 2017
77
5
58
Dubay
cPanel Access Level
Root Administrator
Giving 0 priority to domain-com.mail.protection.outlook.com means that one would always be picked first since it has the highest priority. If you want emails to go to either or, which will be pretty random, you want to give them the same priority.
I want some email, for example, [email protected] always to go to Mailserevr1 and [email protected] go to Mailserver2, I don't want to be random.
 

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
807
160
168
New Jersey
cPanel Access Level
DataCenter Provider
Geeeeez, that would take a bit to figure out, maybe check something like this:


but that would need some work.

If I were you, I would just create 2 subdomains, and assign an MX record to each subdomain, create your email accounts on each subdomain and then use a forward/filter to direct the email to the proper subdomain..

yourdomain.com

[email protected] - mail server 1
[email protected] - mail server 2

Create a filter if FROM = [email protected] then Redirect Email to [email protected]
Create a filter if FROM = [email protected] then Redirect Email to [email protected]

That's the best I got for ya
 
  • Like
Reactions: cPanelLauren

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
  • Like
Reactions: Jcats