The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

use cpanel as a secondary mx server

Discussion in 'General Discussion' started by msti, Dec 7, 2009.

  1. msti

    msti Member

    Joined:
    Aug 16, 2004
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. radeonpower

    radeonpower Well-Known Member

    Joined:
    Jul 23, 2009
    Messages:
    129
    Likes Received:
    1
    Trophy Points:
    18
    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."
     
  3. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    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)
     
  4. msti

    msti Member

    Joined:
    Aug 16, 2004
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  5. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    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.
     
Loading...

Share This Page