Agent Wranglers

EML-13Recommended

Give sending servers matching DNS names

Give every sending IP address a reverse DNS name that points back to the same address, and use that name in the SMTP greeting.

How to do it

Receivers check that the PTR record of the IP gives a host name, and that the host name resolves back to the IP. This is forward-confirmed reverse DNS. Set the PTR at your hosting provider. Make the HELO or EHLO name match it. Shared services handle this for you, so check only servers you run. When a sending provider sends for you, check that it meets this rule. Your part is SPF, DKIM and DMARC on your domain. Large senders need this to meet the bulk sender rules.

Examples

DNS example

10.2.0.192.in-addr.arpa.  3600  IN  PTR  mail.example.com.
mail.example.com.         3600  IN  A    192.0.2.10

How to check

dig +short -x 192.0.2.10 returns mail.example.com., and dig +short A mail.example.com returns 192.0.2.10. A test message's Received header shows the same name in HELO.

Sources

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/email/sending-domain-and-authentication/reverse-dns">Agent Wranglers email playbook</a>. In code you write, add a comment next to it with the same link.