550 5.7.25 Error: Missing PTR Record and How to Fix It
What the 550 5.7.25 Gmail bounce means, how the reverse DNS check works, and how to set a PTR record with your IP host so your email gets through.

Your email to a Gmail address bounces with "550 5.7.25". The text says the IP address sending the message does not have a PTR record. Your SPF, DKIM and DMARC may all be fine, and the email still gets refused.
The good news: this bounce has one clear cause and one clear fix. This guide explains what 550 5.7.25 means, why Gmail returns it, and how to set up reverse DNS so your mail gets through.
What 550 5.7.25 means#
The bounce has two parts. 550 is the SMTP reply for a permanent failure. Sending the same message again from the same server will fail the same way.
5.7.25 is the enhanced status code. The 7 class covers security and policy. In the IANA registry of enhanced status codes, X.7.25 means "reverse DNS validation failed".
The full Gmail text usually reads 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 point to the sending IP.
As a policy, Gmail does not accept messages from IPs with missing PTR records.
So Gmail looked up the name behind your sending IP and did not like the answer.
How the reverse DNS check works#
A normal DNS lookup turns a name into an IP address. A PTR record does the reverse: it turns an IP address into a name.
Gmail runs two lookups on the IP that connects to it:
- Reverse lookup. It asks for the PTR record of the IP, for example
203.0.113.10→mail.example.com. - Forward lookup. It asks for the A (or AAAA) record of that name,
mail.example.com→203.0.113.10.
The check passes only when both steps work and the forward lookup leads back to the same IP. This is called forward-confirmed reverse DNS. If the PTR is missing, or the name points to a different IP, you get the bounce.
For a longer primer on these records, read our guide to the reverse DNS PTR record for email.
Common causes#
- No PTR record at all. New servers and fresh cloud IPs often start with no PTR, or with a generic name from the host.
- The PTR name does not resolve back. The PTR says
mail.example.com, but that name has no A record, or it points to another IP. - The server sends over IPv6. Your IPv4 address is set up, but the server talks to Gmail over IPv6, and that address has no PTR. This is very common, and the hardest to spot.
- You moved servers. You changed hosts or IPs, and the PTR still belongs to the old setup.
- Forwarding through a small server. A mail server forwards messages to a personal Gmail box, and the forwarding server has no reverse DNS.
How to fix 550 5.7.25 step by step#
Step 1: Find the IP that Gmail saw#
Open the full bounce and look for the IP address of your server. If it is not there, check your mail server logs for the connection to Gmail. Note whether the address is IPv4 (like 203.0.113.10) or IPv6 (like 2001:db8::25).
Step 2: Look up the PTR record#
Run a reverse lookup on that exact IP:
dig -x 203.0.113.10 +short
An empty answer means there is no PTR. A name like ip-203-0-113-10.provider.net means the host set a generic one.
Step 3: Check the forward record#
Take the name from step 2 and look it up:
dig mail.example.com A +short
The answer must be the same IP. For an IPv6 sender, check the AAAA record instead.
Step 4: Set the PTR with the IP owner#
This step trips most people up. A PTR record is not set in your domain's DNS zone. It lives with whoever owns the IP address: your hosting company, cloud provider or ISP.
- Most cloud and VPS hosts let you set reverse DNS in the control panel for the server or the IP.
- Some ask you to open a support ticket.
- On a home or office line, the ISP controls it, and many will not set one. Send through a proper mail service instead.
Use a real name you control, such as mail.example.com. Then add a matching A or AAAA record in your own DNS so the name points back to the IP.
Step 5: Fix or turn off IPv6 sending#
If your server sends over IPv6, give the IPv6 address its own PTR and AAAA records. If you cannot, tell the mail server to send over IPv4 only. In Postfix, for example, that is inet_protocols = ipv4 in main.cf, followed by a reload.
Step 6: Match the HELO name#
Set the name your server uses in its SMTP greeting (HELO or EHLO) to the same host name as the PTR. It is not always required, but many filters check it, and it removes one more doubt.
Step 7: Wait, then test again#
DNS changes can take a few hours to spread. Run the lookups from steps 2 and 3 again. When both match, send a test email to a Gmail address.
Will authentication fix it?#
No. SPF, DKIM and DMARC prove that you may send for your domain. Reverse DNS proves that the IP has a real, owned name. Gmail checks both, and this bounce is only about the IP.
You still need all three records, though. Our guide to DKIM vs SPF vs DMARC covers them. If Gmail returns 5.7.26 instead, see the 550 5.7.26 unauthenticated email guide.
How 550 5.7.25 compares with other bounce codes#
| Code | What it usually means | What to fix |
|---|---|---|
| 550 5.7.25 | Sending IP failed the reverse DNS check | PTR and forward record for the IP |
| 550 5.7.26 | Message failed SPF or DKIM checks | SPF, DKIM and DMARC records |
| 550 5.7.1 | Refused by policy or reputation | Reputation and content |
| 550 5.1.1 | The mailbox does not exist | Remove the address |
For every code in one place, see our list of email bounce codes.
How to prevent reverse DNS bounces#
- Set reverse DNS on day one. Add the PTR and the forward record before a new server sends its first email.
- Check both IP versions. Test IPv4 and IPv6 whenever you move hosts or change IPs.
- Follow Google's rules. Google's email sender guidelines list valid reverse DNS as a must for every sender.
- Use a mail service for bulk mail. Email platforms manage PTR records for their sending IPs, so you skip this work.
- Keep your lists clean. A fixed server still loses reputation when it hits dead addresses. Run lists through an email verifier before you send.
A quick checklist#
- Sending IP found in the bounce or the logs
- PTR record exists for that exact IP
- The PTR name resolves back to the same IP
- IPv6 has its own records, or sending is set to IPv4 only
- HELO name matches the PTR name
- Test email to Gmail gets through
FAQ#
What does 550 5.7.25 mean?#
It means Gmail refused your email because the sending IP failed a reverse DNS check. Either the IP has no PTR record, or the PTR name does not point back to the same IP.
Where do I add a PTR record?#
With the owner of the IP address, not in your domain's DNS zone. That is your hosting company, cloud provider or ISP. Most offer a reverse DNS setting in the control panel.
Why does it fail when my PTR record exists?#
Check the forward record next. The PTR name must have an A or AAAA record that points to the same IP. Also check whether your server sends over IPv6 with no PTR on that address.
Do I need to remove the contact?#
No. This bounce is about your server, not the recipient. The address is likely valid. Fix reverse DNS and send again.
How long does the fix take?#
The setup takes minutes. DNS changes can take a few hours to reach everyone, so test again after a short wait.
Want fewer bounces on your next send? Check your list with the Tomba Email Verifier before you hit send.
// start free
See who Tomba finds at any company
Type a company's domain to see its people, their roles and verified work emails, each with the pages it was found on. Free account, no card.
Free plan · No credit card required · GDPR & CCPA
// about the author