Siftsmith
← All email error fixes

Fix Gmail 550 5.7.25: the sending IP has no valid PTR record

Gmail refused your message because the IP address that delivered it has no reverse DNS (PTR) record, or the PTR record names a hostname that doesn’t resolve back to that IP. Check the address below, then get the PTR record set by whoever owns the IP: your hosting company, cloud provider or ISP.

Last verified 1 October 2026.

What 550 5.7.25 means

The bounce your server returns usually quotes Gmail’s reply like this:

550-5.7.25 The IP address sending this message does not have a PTR record setup, or the corresponding forward DNS entry does not match the sending IP. As a policy, Gmail does not accept messages from IPs with missing PTR records.

Google’s own error reference describes the code as: “This message was blocked because the sending IP address doesn’t have a PTR record, or the forwarding DNS entry doesn’t reference the sending IP address. Gmail requires that sending IP addresses have a PTR record.”

Gmail runs two lookups on the IP that connected to it, and both must succeed:

  1. Reverse lookup. The IP must have a PTR record that names a hostname, such as mail.example.com. Google: “The public IP address of a sending SMTP server must have a corresponding PTR record that resolves to a hostname.”
  2. Forward lookup. That hostname must have an A record (IPv4) or AAAA record (IPv6) containing the same IP. Google: “The same hostname must also have an A (for IPv4) or AAAA (for IPv6) record that resolves to the same public IP address used by the sending server.”

This is about the server’s IP address, not your domain. SPF, DKIM and DMARC can all pass and the message is still refused.

The temporary versions: 4.7.23 and 4.7.0

Google’s error reference lists two temporary codes for the same problem. Your server retries these, but the messages stay deferred until reverse DNS is fixed:

451 4.7.23 The sending IP address for this message doesn’t have a PTR record, or the PTR record’s forward DNS entry doesn’t match the sending IP address. To protect users from spam, your email has been temporarily rate limited.
421 4.7.0 The IP address sending this message does not have a PTR record, or the corresponding forward DNS entry does not point to the sending IP. To protect our users from spam, email sent from your IP address has been temporarily rate limited.

Sources: Google, Email sender guidelines (Infrastructure configuration requirements: IP addresses); Google Workspace, Gmail SMTP errors and codes (checked 1 October 2026).

Check the sending IP’s reverse DNS

Enter the IP address from the bounce (IPv4 or IPv6; how to find it). The lookups run in your browser against public DNS: the PTR record of the IP, then the A or AAAA record of every hostname it names, the same two checks Gmail describes.

What this can and can’t tell you: it reads reverse and forward DNS right now, through Cloudflare’s public resolver (Google’s when Cloudflare’s fails), and follows CNAMEs in the reverse zone (classless delegation, RFC 2317). It can’t see which IP a past message used, or what Gmail’s resolvers had cached when it bounced. It checks up to five PTR hostnames. Notes about generic-looking hostnames are advice, not part of Gmail’s rule.

Find the sending IP

The IP that matters is the one that connected to Gmail, which is the public address of the last server your message left from. To find it:

Check IPv6 too. If the server has an IPv6 address, it may connect to Gmail over IPv6, and then that address needs its own PTR record and AAAA record. Google notes that an IPv6 error “could mean that the PTR record for the sending server isn’t using IPv6.” A server with good IPv4 reverse DNS and none on IPv6 is a common cause; either add the IPv6 PTR or make the mail server send over IPv4 only.

Fix it: set the PTR at the IP’s owner

The PTR record lives in the reverse DNS zone of the IP address (in-addr.arpa for IPv4, ip6.arpa for IPv6), and that zone belongs to whoever owns the address. Adding a “PTR” record at your domain’s DNS host has no effect. The fix is in your hosting, cloud or ISP account, or a support ticket.

1. Pick a hostname and point it at the IP

Choose a name on a domain you control, such as mail.yourdomain.com, and create an A record (and an AAAA record for an IPv6 address) pointing to the sending IP. AWS and Azure require this forward record before they accept the PTR. Google’s guidelines recommend reverse DNS “that point[s] to your domain”; a provider’s default name can satisfy the forward check, but your own name is better practice.

2. Set the PTR to that hostname

3. Use the same name in your server’s greeting

Set the mail server’s hostname, the name it sends in EHLO, to the PTR hostname. Gmail’s 5.7.25 check doesn’t compare them, but SMTP (RFC 5321) expects the EHLO name to be a hostname that resolves, and one consistent name avoids problems at other receivers.

Then check again here. How soon a change shows depends on your provider and on how long resolvers cache the old answer, so if the old result persists, try again later before resending.

Or: send through a relay

If you use Google Workspace, Microsoft 365, Amazon SES, SendGrid or another sending service, Gmail sees their servers, which have reverse DNS in place. A 5.7.25 bounce then means something is delivering directly from its own IP instead: a self-hosted mail server, a website or app with its own SMTP, a printer or scanner, a backup or forwarding server. Point that system at your provider’s SMTP relay (with authentication) and the PTR of its own IP no longer matters to Gmail.

After it passes

Reverse DNS is one requirement among several. Gmail also expects SPF or DKIM on every message, and bulk senders need SPF, DKIM, DMARC, TLS and a low spam rate. Grade your domain with the free DMARC, SPF and DKIM checker, and see the Gmail, Yahoo and Microsoft bulk sender requirements.

FAQ

Can I add the PTR record in my domain’s DNS?

No. A PTR record lives in the reverse DNS zone of the IP address (in-addr.arpa for IPv4, ip6.arpa for IPv6), which belongs to whoever owns the address: your hosting company, cloud provider or ISP. Records you add at your domain’s DNS host don’t affect it. You set the PTR in the provider’s control panel or ask its support team.

Does the PTR hostname have to match my From: domain?

Not for 5.7.25. Google’s rule is that the IP has a PTR record and that the hostname it names has an A or AAAA record pointing back to the same IP. Google’s sender guidelines also recommend reverse DNS that points to your domain, so a name such as mail.yourdomain.com is the better choice when you can pick it.

I send through Google Workspace or Microsoft 365. Why do I get 5.7.25?

When you send through a provider, Gmail sees the provider’s servers, and those have working reverse DNS. A 5.7.25 bounce means something sent the message directly from its own IP: a self-hosted mail server, a website or app with its own SMTP, a printer or scanner, or a forwarding server. Check the IP in the bounce and point that system at your provider’s relay or fix its PTR.

What is the difference between 5.7.25 and 4.7.23?

Both report the same problem: no PTR record, or a PTR hostname whose forward DNS doesn’t point back to the sending IP. 550 5.7.25 is a permanent rejection. 451 4.7.23 is temporary rate limiting, so your server retries, but the messages keep being deferred until the reverse DNS is fixed.

My IP has two PTR records. Is that a problem?

Google doesn’t document how Gmail treats an IP with more than one PTR record. The safe setup is a single PTR record whose hostname resolves back to the IP.