use cpanel as a secondary mx server

msti

Member
Aug 16, 2004
9
0
151
Hello!

I have a question about mx entries. This is what i have done:

domain.com MX 10 mail1.domain.com
mail1 A 111.111.111.111 (this is the ip of the ms exchange)
domain.com MX 20 mail2.domain.com
mail2 A 222.222.222.222 (this is the ip of the cpanel server)

Will this configuration work?
When the primary server goes down, will the messages be kept in queue and delivered to the primary when up again, or will they just be locally delivered to the mailboxes?

Thanks,
mike
 

radeonpower

Well-Known Member
Jul 23, 2009
141
4
68
Iceland
cPanel Access Level
Root Administrator
cPanel 11.25 has this feature if I'm correct.

"Backup Mail Exchanger less »

Configure server as a backup mail exchanger. Mail will be held until a lower number mail exchanger is available."

"Remote Mail Exchanger less »

Configure server to not accept mail locally and send mail to the lowest MX record."
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
Hello!

I have a question about mx entries. This is what i have done:
domain.com MX 10 mail1.domain.com
mail1 A 111.111.111.111 (this is the ip of the ms exchange)
domain.com MX 20 mail2.domain.com
mail2 A 222.222.222.222 (this is the ip of the cpanel server)

Will this configuration work?
When the primary server goes down, will the messages be kept in queue and delivered to the primary when up again, or will they just be locally delivered to the mailboxes?

Thanks,
mike
The provided example should work. As radeonpower mentioned, to help with setup I recommend to access cPanel and use the MX Entry feature to verify the MX entries are added and to select the desired preference for e-mail routing, such as "Automatically Detect Configuration" or "Backup Mail Exchanger".

Reference documentation: MX Entry

For cPanel version 11.24, it is still possible to add MX records, but some of the enhanced functionality may only be found in versions starting with cPanel 11.25. Here is the documentation for the same feature while using cPanel 11.24: MX Entry (cPanel 11.24)
 

msti

Member
Aug 16, 2004
9
0
151
Thanks for your replies.

I still dont understand what happens if the primary mail server goes goes down. Will the emails be delivered locally to the cpanel server (secondary mx), or will they be kept in queue until the primary is up again?
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
Thanks for your replies.

I still dont understand what happens if the primary mail server goes goes down. Will the emails be delivered locally to the cpanel server (secondary mx), or will they be kept in queue until the primary is up again?
If the cPanel server is configured as a Backup Mail Exchanger then, yes, it will be able to hold e-mails in queue until the primary mail server is available. A server acting as a secondary mail exchanger (MX) will automatically reattempt delivery to the primary mail exchanger.