How do MX, PTR and forward-confirmed reverse DNS fit together for email?

MX records say where mail for your domain should be delivered. A PTR record gives a name to the IP address your mail leaves from, and that name's A or AAAA record has to lead back to the same address. Gmail and Yahoo ask for that loop on the address your mail is sent from, GMX, WEB.DE and Outlook.com ask for a valid reverse name on it, and only whoever controls the address can set the PTR half.

Last reviewed: 21 October 2026.

Inbound and outbound use different records

MX is about mail coming in to your domain, while PTR and its matching A or AAAA record are about the address your mail goes out from, and the two are often run by different companies.

Read moreShow less: Inbound and outbound use different records
  • MX is published in your domain's own zone. A server that wants to deliver to you@example.com asks for the MX records of example.com and connects to the hostnames listed there. It governs incoming mail only.
  • PTR lives in a reverse zone built from the sending IP address, not in your domain. When your server, or your provider's server, connects to someone else to hand over a message, the receiver turns the connecting address into a name with a PTR query.
  • A and AAAA records then turn that name back into addresses. If the original IP appears among them, the name is forward-confirmed.

A business on Google Workspace or Microsoft 365 receives and sends through its provider's servers, so it owns no PTR record at all. A self-hosted server needs all three, and its outgoing addresses may differ from its MX addresses. An illustrative sample of a self-hosted setup with every piece in place:

Illustrative sample (documentation names and addresses)

example.com.                 MX    10 mail.example.com.
mail.example.com.            A     198.51.100.25
mail.example.com.            AAAA  2001:db8:25::25
25.100.51.198.in-addr.arpa.  PTR   mail.example.com.

The two-way test, step by step

The receiver looks up the name behind the connecting IP, then looks up that name's addresses, and the test only passes when the original IP is among them.

Read moreShow less: The two-way test, step by step

RFC 8601 calls this check "iprev" (some receivers record iprev=pass or iprev=fail in Authentication-Results); most people say FCrDNS, short for forward-confirmed reverse DNS. In plain steps:

  1. Take the connecting address, say 198.51.100.25.
  2. Ask for its PTR records. That gives a set of names.
  3. Ask for the A and AAAA records of each name. That gives a set of addresses.
  4. Pass when 198.51.100.25 is in that set; fail when it isn't. When step 2 returns nothing there is no name to confirm, which RFC 8601 records as permerror rather than fail.

The forward step matters because whoever holds an address block can make its PTR claim any name, even a bank's. Only the name's owner can make it resolve back, so the round trip proves both sides agree.

RFC 8601 notes that receivers often reject a connection that fails this test, though it calls the test's reliability disputed. It also requires verifiers to limit how many of those names they look up; our reverse DNS lookup follows at most five.

Don't confuse this with RFC 5321, section 4.1.4: a server may compare a client's EHLO name with its IP address but must not refuse mail only because they differ. That rule covers the EHLO name alone; the PTR test is a separate policy that the big mailbox providers have chosen to apply.

What Gmail, Yahoo, GMX and WEB.DE ask of senders

All four, and Outlook.com too, publish a reverse DNS rule for sending servers; Gmail and Yahoo apply it to every sender, and GMX and WEB.DE also say a generic provider name usually gets mail refused.

Read moreShow less: What Gmail, Yahoo, GMX and WEB.DE ask of senders

Gmail. Google's email sender guidelines put valid forward and reverse DNS among the requirements for all senders, not only bulk ones: the sending server's public IP needs a PTR naming a hostname whose A (IPv4) or AAAA (IPv6) record gives back that same IP. Google also asks for reverse DNS that points to your domain. Its SMTP error list has temporary refusals coded 421 4.7.0 and 451 4.7.23 and a permanent 550 5.7.25 for a sending IP with no PTR or no matching forward entry.

Yahoo. Yahoo's sender best practices include "a valid forward and reverse DNS record for your sending IPs" in the requirements for all senders. Its additional recommendations go further: the PTR should be meaningful and non-generic, should reflect your domain name in some way, and shouldn't look like a dynamically assigned address.

GMX and WEB.DE. The two German providers publish matching requirements pages. The mail server's IP must have a valid reverse DNS entry pointing to a fully qualified domain name, which should belong to your own domain, with mail.yourdomain.tld suggested. They also want a static address, say dial-up and dynamically assigned addresses are not accepted, require a full hostname in HELO or EHLO, and recommend using the reverse DNS name as that HELO name.

Outlook.com. Microsoft's Outlook.com postmaster policies list requirements for email servers connecting to Outlook.com, including that they must have valid reverse DNS records and that connections from dynamic IP space may not be accepted.

All of these apply to whichever address opens the connection to deliver a message, not to your MX hosts as receivers.

Why a name like 25-100-51-198.example.net can count against you

A PTR that just repeats the IP address, or uses words such as dynamic or pool, looks like a home broadband line, and GMX and WEB.DE say such defaults usually lead to rejection.

Read moreShow less: Why a name like 25-100-51-198.example.net can count against you

Many internet providers fill their reverse zones automatically, often by writing the address into a name under their own domain. Such names often forward-confirm, yet they only tell a receiver that some ISP customer holds the address, which is also what infected home computers look like.

GMX and WEB.DE say so outright: generic default entries such as 123-123-123-123-static.ihrprovider.tld usually result in rejection. Yahoo recommends against a PTR that looks dynamically assigned. Gmail's guidelines don't mention generic names at all, so treat this as a rule that some receivers enforce rather than a universal one.

Our reverse DNS lookup adds a Note, "looks like a generic or home-connection name", when the PTR name contains four groups of one to three digits joined by dots or dashes, the IPv4 address itself written that way, or words such as dynamic, dyn, dsl, dhcp, pool, cable, broadband, customer, client, ppp or static-ip. It's a Note rather than a failure because the name may still forward-confirm. An illustrative sample of the before and after:

Illustrative sample

Before:  203.0.113.40  PTR  40-113-0-203.dynamic.isp.example.net.
After:   203.0.113.40  PTR  mail.example.org.
         mail.example.org.  A  203.0.113.40

Your DNS host can't set this record

Reverse zones belong to whoever holds the IP block, so the PTR is changed by your VPS, cloud or internet provider, never in the DNS panel where your MX and SPF records live.

Read moreShow less: Your DNS host can't set this record

Reverse zones follow the chain of address allocation, not domain registration. Regional internet registries delegate them to the holders of address blocks, and RIPE NCC's policy, for example, lets a holder pass that authority on. Your registrar and the DNS host for example.com sit outside that chain, so a PTR typed into your usual DNS panel does nothing.

In practice that leaves three routes:

  • Cloud or VPS. Many providers offer a reverse DNS field per address. Amazon EC2 is a documented example: you set it on an Elastic IP, and Amazon says an A record for the name must already resolve to that Elastic IP before you create the reverse record.
  • Hosting company or business ISP. Usually a support request. Give them the exact address and the full hostname.
  • Your own allocation. If your organisation holds its own block, your network team runs the reverse zone.

If your mail goes out through a provider such as Google Workspace, Microsoft 365, Amazon SES or SendGrid, the connecting address is theirs and so is its PTR. Your part is SPF, DKIM and DMARC for your domain.

MX details the standard is strict about

Lower preference numbers are tried first, equal ones share the load, the target must be a hostname with its own address and never an IP or alias, and a domain that takes no mail can say so with a null MX.

Read moreShow less: MX details the standard is strict about

Preference. RFC 5321, section 5.1, says lower numbers win, senders must randomise between equal ones to spread the load, and they should try at least two addresses before giving up for the moment.

Hostname only. An MX value must be a domain name that returns at least one A or AAAA record, so an IP address typed there is outside the rules. Our MX lookup flags it as "MX points at an IP address" and suggests a hostname with an A record instead.

No alias. RFC 2181, section 10.3, says an MX target must not be an alias: address records, never a CNAME. Our MX lookup marks one as a Note, since most servers cope.

Missing MX. With no MX published, senders treat the bare domain as an implicit MX of preference 0 and try its own address, often a web server.

Null MX. RFC 7505 defines 0 ., preference 0 with a lone dot, as a domain's statement that it accepts no mail, and it must be the only MX. A sending system then reports the failure on the first attempt instead of queuing the message, and the RFC asks it to use 556 with 5.1.10. The RFC also says not to publish one on a domain you send from, since receivers may refuse mail whose return address can't take replies (550 5.7.27).

Worked examples, checked 21 October 2026

Gmail, Yahoo and GMX publish mail servers whose addresses all forward-confirm, Google's and Microsoft's outbound addresses pass too, and outlook.com's inbound MX addresses have no PTR at all, which is fine for servers that only receive.

Read moreShow less: Worked examples, checked 21 October 2026

These are our own MX and reverse DNS checks against live DNS. Large providers rotate the addresses behind a hostname, so the reverse DNS runs show different IPs from the MX runs made seconds earlier.

gmail.com has five MX records at preferences 5 to 40, from gmail-smtp-in.l.google.com to alt4.gmail-smtp-in.l.google.com. The reverse lookup on the first returned "Reverse DNS is set up and forward-confirmed for all 2 addresses.", one IPv4 and one IPv6.

yahoo.com has three, mta5, mta6 and mta7.am0.yahoodns.net, all at preference 1, so senders choose at random. Our lookup on mta5 tested four of its eight addresses, the most it tests per hostname, and all four confirmed to mtaproxy names under yahoo.com.

gmx.net has mx00 and mx01.emig.gmx.net, both at preference 10. The first one's address points back to exactly its own MX name.

Outbound addresses. Google's SPF include _spf.google.com lists ip4:209.85.128.0/17, and 209.85.220.41 from that range confirmed as mail-sor-f41.google.com. Microsoft's spf.protection.outlook.com lists ip4:40.107.0.0/16, and 40.107.22.50 confirmed to a name under outbound.protection.outlook.com.

Reverse DNS lookup, 21 October 2026
172.253.115.26          → bg-in-f26.1e100.net                                  forward-confirmed
2607:f8b0:4004:c21::1b  → pe-in-f27.1e100.net                                  forward-confirmed
67.195.204.73           → mtaproxy4.free.mail.vip.bf1.yahoo.com                forward-confirmed
212.227.15.135          → mx00.emig.gmx.net                                    forward-confirmed
209.85.220.41           → mail-sor-f41.google.com                              forward-confirmed
40.107.22.50            → mail-am6eur05on2050.outbound.protection.outlook.com  forward-confirmed
52.101.40.101           → (none)                                               no PTR

outlook.com, the instructive one. Its single MX, outlook-com.olc.protection.outlook.com at preference 5, resolved to four addresses. Our reverse DNS lookup on that hostname reported "52.101.40.101 has no reverse DNS (PTR)" for the first, the same for the other three, and the summary "Reverse DNS is missing, which many mail servers treat as a spam signal."

That gap doesn't affect anyone sending to outlook.com: senders find those servers through MX, and the provider rules above concern the address that opens a connection, not the one that answers. Microsoft's outgoing address does have a confirmed name. Our domain health check notes it too, as a Warning in its MX reverse DNS part: "A mail server address has no reverse DNS. That only matters if the server also sends mail." That part is worth 5 of 100 points because DNS shows receiving servers, not every sending address; where the MX hosts only receive, treat it as information, not a delivery fault.

Check your own setup in four steps

Look up your MX, find the IP your mail really leaves from, test that IP's reverse DNS and forward confirmation, then compare the name your server gives when it connects.

Read moreShow less: Check your own setup in four steps
  1. Inbound. Run the MX lookup on your domain. Every record should name a hostname with at least one address, with no IP values, aliases or leftover servers from an old provider.
  2. Find the real sending address. Send a message to an outside mailbox you can read and paste its headers into the header analyzer. In its Hops table, the From column of the hop added by that mailbox's provider shows the name your server gave in EHLO and, in brackets, the address that connected. Don't assume it is one of your MX addresses.
  3. Run the reverse lookup on it. Enter it in the reverse DNS lookup. You want a Pass reading "forward-confirmed". A Warning saying the name "doesn't point back" means the A or AAAA record is missing or wrong; the DNS lookup shows what that name currently resolves to.
  4. Compare the names. GMX and WEB.DE recommend using the reverse DNS name as the HELO name, so the EHLO name from step 2 should match the PTR name from step 3. If you run the server, the SMTP test also shows the greeting it sends to incoming connections on the port you choose, which usually carries the hostname it is configured with.

If mail is already being refused, the bounce text usually names the reason. Our page on emails bouncing back covers reading it, and domain blacklisted explains how a missing or home-looking reverse name can get an address onto policy lists.

Reverse DNS and MX questions

Answers on whether hosted email needs a PTR, where to add one, matching your domain, IPv6 and servers that only receive.

Do I need a PTR record if I use Google Workspace or Microsoft 365?

No. Your mail leaves from their addresses and they maintain those PTRs, as the outbound examples show. You need one only for an address you send from yourself, such as a VPS, an office server or an on-premises relay.

Why can't I add a PTR record in my domain's DNS settings?

Because the record doesn't live in your domain. It lives in a reverse zone under in-addr.arpa (IPv4) or ip6.arpa (IPv6), which belongs to whoever holds the address block. Ask your cloud, hosting or internet provider to set it, or use the reverse DNS setting on the address if their control panel has one.

Does the PTR name have to be on my own domain?

None of these four providers' pages says mail is refused only because the name sits on another domain, but all of them ask for it: Gmail for reverse DNS pointing to your domain, Yahoo for a name that reflects it, and GMX and WEB.DE for one that belongs to it. mail.yourdomain.com with a matching A record satisfies all three, while a provider's generic name can confirm and still be refused by GMX and WEB.DE.

Do I need reverse DNS for IPv6 as well?

Yes, if your server sends over IPv6. Gmail's error list includes a 550 5.7.1 rejection for IPv6 mail that misses its guidelines on PTR records and authentication, and Google notes that an IPv6 authorization error can mean the PTR isn't set up for IPv6. Give the IPv6 address its own PTR and AAAA record, or send over IPv4 only.

Does a mail server that only receives need a PTR?

None of the provider rules quoted here asks for one, because they concern sending addresses, and senders reach your MX hosts by looking up MX records. outlook.com's inbound servers had none when we checked. If the same machine also sends, as most small self-hosted servers do, it needs one for that reason.

Related guides, tools and problems

These pages cover the tools used above and the problems that a missing or generic PTR tends to cause.