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.

spooling maiil on cpanel

Discussion in 'E-mail Discussions' started by ourweb, Aug 25, 2011.

  1. ourweb

    ourweb Well-Known Member

    Joined:
    Aug 9, 2004
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    Let's say we have a mailserver called mailserver.ourweb.net and a Cpanel server called cpanel.ourweb.net. On the Cpanel server I have a domain called mydomain.com and I put the MX record to mailserver.ourweb.net but I want the mail to spool on Cpanel in case the mailserver goes down for some reason. How do I do this?
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You'd set it up as "Backup Mail Exchanger" in WHM > DNS Functions > Edit DNS Zone for the domain's DNS entry, then add a second MX record with a higher priority to point to the cPanel server in that zone file.

    This will create the /etc/secondarymx file where the domain will be listed, which means cPanel will hold the emails in queue when the other machine isn't available.
     

Share This Page