Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to configure MX for our setup ?

Discussion in 'General Discussion' started by fuzioneer, Dec 26, 2010.

  1. fuzioneer

    fuzioneer Well-Known Member

    Dec 12, 2003
    Likes Received:
    Trophy Points:
    We had a cPanel server which died due to hard drive failure and a replacement has been built

    We have another non cpanel server which hosts a website of ours but we had it configured so that email was handled by the cpanel server (The cpanel server is a namerserver for the other servers domain)

    however since the rebuild we no seem to no longer receive email from the domain on the other server (All domains hosted locally on the cpanel server all have 100% email), email is sent ok from the other server domain but not received.

    did a test on the domain using MX Lookup Tool - Check your DNS MX Records online - MxToolbox and the MX record points to the non cpanel server IP

    How should we have our DNS Configured i.e.

    the A host record points to the other non Cpanel server
    the MX record points to the domain (There is an extra field in the MX record line in Edit DNS which just as 0 in it)

    I assume this is where the issue lies, any pointers muchly appreciated
  2. mtindor

    mtindor Well-Known Member

    Sep 14, 2004
    Likes Received:
    Trophy Points:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    Code: = IP associated with the account on the cPanel machine = IP of the website on the non-cPanel server            IN    A              IN    MX           0        IN    CNAME       IN    A  
    /etc/remotedomains would NOT contain
    /etc/localdomains WOULD contain

    That's how I would do it. and would then go to the non-cPanel webserver, mail would go to (the IP on the cPanel server).

    NOTE: a default cPanel-created zone file for a domain looks a little different than that which you see above. cPanel likes to set up to resolve to the IP of the cPanel server. Then cPanel adds a CNAME for www that references Then cPanel adds an MX that points to

    Of course, if you are using DomainKeys and SPF (Email Authentication in the cPanel interface for that account), there will be some TXT records as well that cPanel will add automatically to the zone.

    You may choose to have and as "A records" pointing to or you may prefer to have them switched. Or you may want to continue to resolve to the cPanel server and then in the /cpanel interface just set a redirect so that any requests to would be redirected to (which would be on, the non-cPanel webserver).

    Too many possibilities :) But what I have listed will work -- you'd have to access the /cpanel interface via though, or through the main IP of the cPanel server.

    I'm sure the last two paragraphs will add needless confusion.

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice