ReplyDak

Gmail 5.7.25 / 4.7.23: sending IP has no PTR (reverse DNS) record

Updated 10 November 2026 · 4 min read

Short answer

Gmail's 5.7.25 (permanent) and 4.7.23 (temporary) errors mean the IP address that delivered your mail has no PTR record, or its PTR name doesn't resolve back to the same IP. Google states that sending IPs must have a PTR record. You fix it with whoever owns the IP (your VPS or hosting provider), not in your own domain's DNS: set the PTR to a host name such as mail.yourdomain.com and give that name an A record pointing to the same IP.

What Gmail checks

CheckPasses when
PTR existsdig -x <ip> returns a host name
Forward-confirmedthat host name's A (or AAAA) record contains the same IP
IPv6Gmail applies stricter PTR and authentication rules to IPv6 senders (its 5.7.1 IPv6 message)

Who this affects

If you send through Google Workspace, Microsoft 365, SES, SendGrid or similar, their IPs already have correct PTR records and you will never see this error. It hits people sending directly from a VPS, a self-hosted Postfix or Exchange server, an office connection, or an app server that delivers mail itself.

Fix by provider

Where the IP livesHow to set PTR
DigitalOcean dropletRename the droplet to the FQDN (e.g. mail.acme.com); PTR follows the name
AWS EC2 Elastic IPRequest or set reverse DNS on the Elastic IP (EC2 console or support form)
Most VPS hosts (Hetzner, Linode, OVH…)A reverse DNS field per IP in the control panel
Office or home connectionAsk the ISP; often not possible, so relay through a mail provider instead

Worked example

$ dig +short -x 203.0.113.10
vps-203-0-113-10.hoster.example.   ← generic PTR
$ dig +short A vps-203-0-113-10.hoster.example
203.0.113.10                        ← forward-confirmed, but generic

After fixing:
$ dig +short -x 203.0.113.10
mail.acme.com.
$ dig +short A mail.acme.com
203.0.113.10

A generic PTR can technically pass, but a PTR on your own domain that matches your server's HELO name looks far less like a compromised machine. Also add the IP to SPF (ip4:203.0.113.10) and sign with DKIM, or Gmail's bulk-sender checks (5.7.27 for SPF, 5.7.30 for DKIM) are next.

Check the result

Then send a test to Gmail; the bounce should stop at the next attempt. Run the domain through the free ReplyDak deliverability check: it reads MX, SPF, DKIM and DMARC live from public DNS, counts SPF lookups and checks the main blocklists, with no sign-up. If your DKIM selector is not a common one, type it into the optional selector box.

More setups and errors: SPF, DKIM and DMARC by provider, DNS host and error.

FAQ

Can I add a PTR record in my domain's DNS?

No. PTR records live in the reverse zone owned by whoever controls the IP address block: your VPS host, cloud or ISP.

What is forward-confirmed reverse DNS?

The IP's PTR name resolves back (via A/AAAA) to the same IP.

Does this affect Google Workspace users?

Not when you send through Google's own servers; their IPs have proper PTR records.

Sources

Related

Microsoft 365 mailboxes are coming soon. Until then, new orders use Google Workspace mailboxes.