DNS MX Records and Reverse DNS for Mail Servers

Discussion in 'Mail Server Support' started by popowich, Feb 12, 2009.

  1. popowich

    popowich EQ Forum Admin Staff Member

    Aug 12, 2008
    Likes Received:

    Here are a few guidelines for setting up and checking the DNS for your mail server.

    First, when creating an MX record you should always use an A record that points to an IP address. You should not use an IP address or a CNAME as an MX record. For example, the MX record for EmailQuestions.com is mail.emailquestions.com. You can verify this with command line tools such as nslookup or my personal preference dig.

    It is also good to make sure that your mail server has a reverse DNS PTR record that also resolves back to the IP address. It is not necessary for this name to be the same as your MX record, but it doesn't hurt to have all 3 names match the IP address.

    In my case above I have my own dedicated server that shares several web hosting and email domains. The reverse DNS and matching forward DNS happens to be for the first domain that was live on that server.

    Last edited: Jun 3, 2015

Want to reply or ask your own question?

It only takes a minute to sign up (and it's free!). Click the orange sign up button to choose a username and then you can ask your own questions on the forum.