Setting Up DNS for the Primary Mail Host

To properly send and receive email, add the following records to your DNS server. If an Internet Service Provider (ISP) is hosting your DNS server, contact your ISP to have the appropriate records added to the DNS server.

Example: The DNS entries for a host with an official host name of imailbox.domain.com would look like:

SOA
$ORIGIN
...
domain.com
IN MX 10 mail.domain.com
(MX record)
mail IN A 156.21.50.5
(A record)
5.50.21.156.in-addr.arpa.,type = PTR
host = mail.domain.com
(PTR record)

A DNS lookup for mail sent to user@domain.com would find that the mail must be sent to the host at mail.domain.com.