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.

Secondary MX Setup

Discussion in 'E-mail Discussions' started by Osama Tariq, Mar 10, 2016.

  1. Osama Tariq

    Osama Tariq Well-Known Member

    Joined:
    Nov 27, 2014
    Messages:
    187
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Lahore, Pakistan
    cPanel Access Level:
    Root Administrator
    Twitter:
    How secondary mx or secondary mailserver holds mailqueue if primary server is down ?
     
  2. storminternet

    storminternet Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    462
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Have you added your domain's entry in /etc/localdomains as well as in /etc/remotedomains.
    In addition to this mx records should also set to point them to secondary mailserver.
    Once the local mailserver fails for any reason then emails should route via secondary mail server.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  4. Osama Tariq

    Osama Tariq Well-Known Member

    Joined:
    Nov 27, 2014
    Messages:
    187
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Lahore, Pakistan
    cPanel Access Level:
    Root Administrator
    Twitter:
    I have do it by using below method:

    Add domain in /etc/secondarymx and /etc/remotedomains over secondary server.
    Modify dns zone file as below on primary server:

    domain.com. 14400 IN MX 0 domain.com.
    domain.com. 14400 IN MX 10 mx.domain.com.

    Add an A entry for mx.domain.com. point to the secondary mx server's ip.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page