RainmailAll guides

Reverse DNS (PTR) for Email: Why It Matters and How to Set It

What Is Reverse DNS and Why Do Email Servers Care?

When you send an email, the receiving mail server does more than read the message. One of its first checks is a reverse DNS lookup: it takes your sending IP address and asks the DNS system what hostname maps to it. The answer lives in a PTR record (short for Pointer record), and if that record is missing, malformed, or mismatched, your email is likely to be rejected or sent straight to spam.

Forward DNS resolves a hostname to an IP (A or AAAA record). Reverse DNS does the opposite — it resolves an IP back to a hostname. The two should agree. If your PTR record says mail.yourdomain.com, then a forward lookup of that hostname should return the same IP. When they match, this is called a forward-confirmed reverse DNS (FCrDNS), and it is one of the oldest and most widely respected signals of a legitimate mail server.

Why PTR Records Matter for Deliverability

Mailbox providers like Gmail, Outlook, and Yahoo use PTR records as a basic trust signal. Here is what they are actually checking for:

Missing or generic PTR records are one of the most common reasons self-hosters and small senders see their email land in spam or get rejected, even when SPF, DKIM, and DMARC are all configured correctly.

Who Controls Your PTR Record?

This is where many senders get confused. You do not set PTR records through your domain registrar or your regular DNS provider. PTR records are controlled by whoever owns the IP address — almost always your hosting provider or VPS provider (e.g., Hetzner, Vultr, DigitalOcean, Linode, OVH).

Your domain registrar controls forward DNS for your domain. Your server host controls reverse DNS for the IP they have assigned to you. These are two separate systems, and both need to be configured.

How to Set Your PTR Record: Step by Step

Step 1: Choose your PTR hostname

Pick a hostname that matches what your mail server presents in its SMTP EHLO/HELO greeting. It should be a fully qualified domain name (FQDN) that you control, such as mail.yourdomain.com. Avoid generic or meaningless strings.

Step 2: Create the forward DNS A record

In your DNS provider's control panel, create an A record for your chosen hostname pointing to your sending IP. For example, mail.yourdomain.com → 203.0.113.10. This must be in place before or alongside the PTR record so the FCrDNS check passes.

Step 3: Set the PTR record with your hosting provider

Log in to your server or VPS control panel. Most major providers offer a field labeled "Reverse DNS" or "PTR record" directly in the network or IP settings section. Enter your chosen hostname (e.g., mail.yourdomain.com) and save. Changes typically propagate within minutes to a few hours, though full global propagation can take up to 24 hours.

If you cannot find this option, contact your hosting provider's support. Some providers require a support ticket to set PTR records, particularly for dedicated servers.

Step 4: Verify your configuration

Once propagation is complete, verify both directions:

You can also use the free deliverability checker to audit your PTR record alongside your SPF, DKIM, DMARC, and blacklist status in one place.

Common Mistakes to Avoid

PTR Records in Context: The Broader Deliverability Picture

A correctly configured PTR record is necessary but not sufficient on its own. Receiving servers layer many signals: SPF authentication, DKIM signatures, DMARC policy, IP reputation, sending volume, engagement rates, and more. PTR is best understood as the foundation — without it, other good signals may not even get evaluated, because the connection can be rejected before authentication checks run.

For senders managing their own infrastructure, especially those on new or previously unused IPs, proper PTR configuration is the starting point. Services like Rainmail are built for senders who need hands-on guidance through exactly this kind of setup — including IP warm-up, authentication, and reputation management from day one.

Get the fundamentals right, verify them carefully, and your sending infrastructure will have the credibility to compete in increasingly strict inbox filtering environments.

Is your email landing in the inbox?

Check your domain free in 10 seconds — or let Rainmail set it up and make your mail land.

Run the free checker →See plans