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!

Setting up an MX Record

Discussion in 'General Discussion' started by wedmonds, Jun 2, 2010.

  1. wedmonds

    wedmonds Registered

    Jul 9, 2009
    Likes Received:
    Trophy Points:
    Hi All,

    I have a client that needs an MX record setup.

    I have the IP address of the public facing router which has NAT enabled and i have the FQDN or at least I think I do :)

    IP: 123.456.789.123
    FQDN: Server1.domain.local

    The domain is new and is not currently in use.

    I think I need to go into CPANEL>DNS FUNCTIONS>EDIT MX ENTRY
    but not sure what next and not sure if this is the right area!

    Anyone able to help!?

    Thank you :)

  2. Spiral

    Spiral BANNED

    Jun 24, 2005
    Likes Received:
    Trophy Points:
    I strongly do not recommend NAT configurations with Cpanel! :rolleyes:

    (I also don't recommend local servers at home or office but that is a whole other issue in and of itself :D )

    Anyway with those "not so subtle" points .....

    You need to edit the DNS zone as you would normally for any of the other domains you add where the DNS has the real IP information but the server processes themselves are using the local NAT addresses. I will assume if you are already using NAT with Cpanel then you are well familiar already with what I am talking about.

    Changing the MX record, you will need to do 2 things specifically and this will be the same irregardless whether you are in a NAT configuration or not but in you case I would do it manually via SSH vs from WHM.

    Remove the domain from /etc/localdomains and add it to /etc/remotedomains.

    Update the MX record in /var/named/(domain name).db

    If you have any SPF records setup (which you should), you will want to expand that to include both your network's external facing IP as well as the client's 3rd party mail server.

    Don't forget to increment the serial number in the DNS zone file

    A quick restart of the 'named' DNS server and you should be good to go.

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