Guides / Gmail 550 5.7.25: "the sending IP address doesn't have a PTR record" and how to fix it

Gmail 550 5.7.25: "the sending IP address doesn't have a PTR record" and how to fix it

Updated November 30, 2026

If Gmail rejects your mail with 550 5.7.25 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, the problem is not your domain's SPF, DKIM or DMARC. It is the reverse DNS of the server that handed your message to Gmail. Gmail also has a temporary version of the same check, 451 4.7.23 (and a 421 4.7.0 message with similar wording), which rate limits mail instead of blocking it. Cold emailers mostly hit these codes when they send from their own SMTP server or a VPS instead of Google Workspace, Microsoft 365 or an email service. This guide explains what a PTR record is, how to check yours, who can change it, and why you usually can't fix it in your domain's DNS. Run the free checker above on the sending domain as well, so you can rule out the authentication problems Gmail reports with other codes.

Check your domain nowFree SPF, DKIM, DMARC, MX and blacklist check. No signup.

What 550 5.7.25 means

Google's SMTP error reference lists 550 5.7.25 as: the 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. It adds that Gmail requires sending IP addresses to have a PTR record.

550 is permanent, so the message was not delivered. The same reference lists 451 4.7.23 for the same condition as a temporary rate limit: the 4xx code means Gmail is deferring the mail, and your server may retry. Treat both as the same fix.

What a PTR record is

A PTR record is reverse DNS: it maps an IP address back to a hostname, the opposite of an A record. Google's email sender guidelines say the public IP address of a sending SMTP server must have a corresponding PTR record that resolves to a hostname, and that the same hostname must also have an A (IPv4) or AAAA (IPv6) record that resolves back to the same IP address. That pair is often called forward-confirmed reverse DNS.

So there are two ways to fail this check: the IP has no PTR record at all, or it has one, but the hostname it names doesn't point back to that IP. The bounce text covers both cases.

Who controls the PTR record

This is the part that confuses most people. A PTR record lives in DNS for the IP address, not for your domain, so it is controlled by whoever owns the IP: your VPS or hosting provider, your cloud provider, or your internet provider. Adding a record in your domain's DNS panel (Cloudflare, GoDaddy, Namecheap and so on) does not create a PTR record for a server's IP.

If you send through Google Workspace, Microsoft 365 or an email service such as Amazon SES, SendGrid or Mailgun, their sending IPs already have reverse DNS that they manage, and you normally won't see this code. If you do see it, the message probably left through a different server than you think, such as a website contact form, a CRM's SMTP relay, or a self-hosted mail server.

Step 1: find the sending IP

  1. Read the full bounce. Gmail's bounce usually quotes the IP address it refused, and the 451 4.7.23 form includes it in the text.
  2. If you have a delivered copy of a message from the same setup, open the full headers and find the Received: line added when the message reached Google. The IP in that line is the server Gmail checked.
  3. Note whether that IP belongs to your own server or VPS, or to a provider you send through. That tells you who has to change the PTR record.

Step 2: check reverse and forward DNS

  • Look up the PTR record for the IP with a reverse DNS lookup, for example dig -x 203.0.113.10 +short on macOS or Linux, or nslookup 203.0.113.10 on Windows (use your real IP, the one here is a documentation example). No answer means there is no PTR record.
  • Take the hostname it returns and look up its A record (or AAAA for IPv6), for example dig mail.example.com +short. It must return the same IP you started with.
  • Check that the hostname is a real, stable name for that server, ideally under a domain you control, such as mail.yourdomain.com. Google's guidelines say to set up valid reverse DNS records for your sending server IP addresses that point to your domain.

Step 3: fix it

  • On a VPS or cloud server, set the reverse DNS in the provider's control panel. Many providers have a reverse DNS or PTR field on the IP address or server settings page; others ask you to open a support ticket. Set it to a hostname such as mail.yourdomain.com.
  • In your domain's DNS, add an A record for that same hostname pointing to the server's IP, so the forward lookup matches.
  • Make sure your mail server announces the same hostname in its SMTP greeting (HELO/EHLO). That is not what 5.7.25 checks, but a mismatched or generic greeting causes other filtering problems.
  • If you can't set reverse DNS on the IP, for example on a home connection or a shared host that won't change it, stop sending from that server. Relay mail through Google Workspace, Microsoft 365 or an email service instead, and update SPF to include it.
  • Wait for DNS caches to expire, then send a test to a Gmail address you own and check the headers before restarting any campaign.

Why it matters more for cold email

Reverse DNS is one of the baseline checks in Google's sender guidelines for everyone who sends to personal Gmail accounts, alongside SPF or DKIM, TLS, and a low spam rate. A server that fails it looks like the kind of infrastructure spammers use, so even when Gmail only defers mail with 4.7.23, the deferrals slow every campaign down and can turn into hard blocks. Self-hosted SMTP for outbound saves money, but it makes you responsible for reverse DNS, IP reputation and blocklists that a managed provider would otherwise handle.

Keep it from happening again

Write down every IP that sends mail as your domains, and check its PTR and matching A record whenever you add or move a server. Changing VPS plans, moving regions or rebuilding a server often gives you a new IP with a generic reverse DNS name from the provider. OutboxWatch watches SPF, DKIM, DMARC, MX and blocklists on your sending domains every day, so the domain side stays clean while you keep the server side in order.

Frequently asked questions

Can I add a PTR record in Cloudflare or my domain registrar?

Not for a mail server's IP. A PTR record belongs to the DNS zone of the IP address, which the IP's owner (your hosting, cloud or internet provider) controls. In your domain's DNS you add the matching A record for the hostname, and the provider sets the PTR.

What is the difference between 550 5.7.25 and 451 4.7.23?

Google lists both for the same problem: the sending IP has no PTR record, or the PTR hostname doesn't resolve back to the IP. 451 4.7.23 is a temporary rate limit that your server can retry; 550 5.7.25 is a permanent block for that message.

Does SPF, DKIM or DMARC fix a 5.7.25 bounce?

No. Those authenticate your domain. 5.7.25 is about the reverse DNS of the server's IP address. You need both: valid reverse DNS on the IP, and SPF or DKIM (and DMARC for bulk senders) on the domain.

I send through Google Workspace. Why would I get this?

Google's own sending servers have reverse DNS, so the message most likely left through another server, such as a website form, a CRM relay or a self-hosted SMTP server. Check the bounce or headers for the IP to see which one.

Does the PTR hostname have to match my sending domain?

Gmail's check is that the PTR record exists and that its hostname resolves back to the same IP. Google's guidelines also say to point reverse DNS to your domain, so a hostname like mail.yourdomain.com is the safest choice.

Find out what is wrong with your domainRun the free checker, or let OutboxWatch watch your domains daily and alert you when something changes.
Free weekly report for your domainOne email every Monday with your SPF, DKIM, DMARC, MX and blacklist status and what changed since last week. No card.
See the free weekly report

Related guides