dotvitals

Loading the list of pages…

↑↓ to moveEnter to openEsc to close

Gmail 550 5.7.25: the sending IP address has no PTR record

Updated · 5 min read

Gmail:550 5.7.25421 4.7.0550 5.7.1

In short

  • The IP address your mail server sends from has no reverse DNS name, or the name does not point back to that same address.
  • Often it is the server's IPv6 address: IPv4 was set up long ago, IPv6 never was, and some mail now leaves over IPv6.
  • Only the owner of the address, usually your host or ISP, can set the PTR record. You publish the matching forward record, then check both directions.

Check your sending address now

Type the IP address your mail server sends from: the one in the bounce, or the server's public address. If the server has an IPv6 address, check that one too.

On this page
  1. The bounce, as Google documents it
  2. Most likely causes
  3. Why the fix is not in your own DNS
  4. If mail has to flow today
  5. How to fix it
  6. How to confirm the fix worked

The bounce, as Google documents it

550 5.7.25Refused for good

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. …

421 4.7.0Deferred, and retried by your server

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. …

550 5.7.1The message came over IPv6

This message does not meet IPv6 sending guidelines regarding PTR records and authentication. …

Read on . Providers reword these messages without notice, so treat the text as a dated snapshot and check the source before acting on anything consequential.

Gmail looked up the name that belongs to the IP address your server connected from, and found none, or found a name that does not lead back to the same address. Gmail requires the two directions to agree before it accepts mail, so it refused the message.

That name is a PTR record, and it is not in your domain's DNS. It sits in a zone run by whoever owns the IP address — your hosting provider, cloud platform or ISP — which is why editing your own DNS never fixes this bounce on its own.

Google documents the same complaint three ways. 550 5.7.25 is a permanent refusal. 421 4.7.0 with the same wording is a temporary deferral. And 550 5.7.1 with the IPv6 wording means the message arrived over IPv6, where Gmail checks the PTR record together with authentication.

Most likely causes

  1. Mail is leaving over IPv6, and the IPv6 address has no PTR record. When a server gains an IPv6 address, often automatically from the host, it starts delivering to Gmail over IPv6. Mail that was accepted over IPv4 now bounces, and it looks random because some deliveries still go out over IPv4.
  2. The address has no PTR record, or only the provider's generic one. New cloud servers often come with none, or with a name built from the address itself.
  3. The PTR name does not resolve back to the address. The provider set the PTR to mail.example.com, but mail.example.com has no A or AAAA record, or it points at your website or a load balancer instead of the mail server.
  4. Mail leaves from a different address than the one you set up. Behind NAT, a cloud NAT gateway or a relay, Gmail sees the gateway's address, and the PTR you configured belongs to an address Gmail never sees.
  5. The server moved. A rebuilt server or a new IP address comes with the provider's default reverse name, while the reverse name you set up before still belongs to the old address.

Why the fix is not in your own DNS

Google's sender guidelines split the rule in two. The sending server's public address needs a PTR record naming a hostname; that hostname needs an A record for IPv4, or an AAAA record for IPv6, pointing back at the very same address.

The PTR half is published by whoever rents you the address. In a cloud console it is usually a setting on the IP address or the server; elsewhere it is a support request naming the address and the hostname you want. Our guide to PTR records lists the paths at Amazon EC2, Google Cloud, Azure and DigitalOcean.

The forward half is yours: an A or AAAA record in your own zone, for that hostname, pointing at exactly that address. Several providers check that it exists before they will set the PTR, so publish it first.

If mail has to flow today

If the problem is IPv6 and the provider cannot set a PTR soon, stop sending over IPv6 rather than leave mail bouncing. In Postfix that is inet_protocols = ipv4, which also stops the server accepting mail over IPv6 and needs a restart; other mail servers have an equivalent setting. Treat it as a stopgap, and undo it once the IPv6 PTR is in place.

The other route is to relay outbound mail through a service whose servers already pass these checks, such as your mailbox provider's SMTP relay or a transactional sending service.

How to fix it

Find the address that actually connects to Gmail: the IP in the bounce, or the client address in your mail server's log for the refused delivery. Note whether it is IPv4 or IPv6.

Publish an A or AAAA record for your mail server's hostname, pointing at exactly that address.

Ask the owner of the address to set its PTR record to that hostname, through their console or a support ticket.

Set your mail server's HELO name to the same hostname, so the PTR, the forward record and the server's greeting all agree.

Repeat for every address the server sends from, IPv4 and IPv6.

How to confirm the fix worked

Look up each sending address with the reverse DNS check above. It should return your mail server's hostname and report the round trip as forward-confirmed: the name leads back to that address.

Reverse records update on the provider's own schedule, then the record's TTL. Minutes is typical; nothing after a day means the change did not take effect.

Then send a test message to a Gmail address. A 421 deferral clears at the next retry once the record is visible; mail refused with 550 has to be sent again.

Check an IP address with the reverse DNS lookup

Read next