What Gmail checks
Google's requirement, for all senders: the public IP of the sending server must have a PTR record that resolves to a hostname (reverse lookup), and that hostname must have an A record (IPv4) or AAAA record (IPv6) that resolves back to the same IP (forward lookup). If either half is missing or they don't match, you get 5.7.25, or 4.7.23 while Gmail only rate-limits.
| Lookup | Example | Must return |
|---|---|---|
| PTR of the IP | dig -x 203.0.113.10 | A hostname, e.g. mail.example.com |
| A / AAAA of that hostname | dig mail.example.com | The same IP, 203.0.113.10 |
Who can fix it
A PTR record lives in the reverse DNS zone of the IP range, which belongs to whoever owns the IP, not in your domain's DNS. Adding a record in your DNS panel won't fix it.
- VPS or cloud server: most providers let you set reverse DNS in their control panel, or do it on request. Set it to a hostname whose A/AAAA record points back to the server.
- Office or home connection: the ISP controls it. Most residential IPs shouldn't send mail directly: relay through your mail provider instead.
- Email provider or sending service: their IPs should already be correct. If they're not, it's their problem to fix. Open a ticket with the bounce.
Checking it yourself
- Get the sending IP: it's in the bounce, or paste a delivered message's headers into the header analyzer.
- Run
dig -x <ip> +shortin a terminal, or use Google's Admin Toolbox Dig (PTR). - Run
dig <hostname> +short(addAAAAfor IPv6) on the result and compare.
Sending over IPv6? Gmail's IPv6 variant of this rejection (550 5.7.1) also mentions authentication: make sure the IPv6 address has a matching PTR and that SPF covers it.
PTR records belong to IP addresses, so the domain check above doesn't test them. It does check SPF, DKIM and DMARC, which Gmail looks at next.
Questions
Can I add a PTR record in my domain's DNS?
No. Reverse DNS is controlled by the owner of the IP address block: your hosting company, cloud provider or ISP. You choose the hostname; they publish the record.
Does the PTR hostname have to be my domain?
Google recommends reverse DNS that points to your domain. What 5.7.25 itself checks is that a PTR record exists and that its hostname resolves back to the same IP.
Is this only for bulk senders?
No. Valid forward and reverse DNS is in Google's requirements for all senders, whatever the volume.
Why did it start after moving my server?
A new IP comes with no PTR record or the old provider's generic one, which doesn't resolve back to your hostname. Set reverse DNS on the new IP before sending.
Sources
- Google Workspace — Gmail SMTP errors and codes
- Google — Email sender guidelines
- Google Admin Toolbox — Dig (PTR lookup)
Last reviewed: