TL;DR
Permanent policy rejection: the SMTP client IP failed required reverse DNS validation. Fix rDNS or routing before retrying. Persistent rDNS policy failures hurt sending-IP reputation and deliverability. Do not retry unchanged.
What this code means
Reverse DNS validation failed for the SMTP client's IP address against the receiving system's local policy; that outcome is registry pattern X.7.25, returned as code 5.7.25. Permanent-failure class 5 in the enhanced status register frames the result for this attempt. The subcode names a policy-layer rDNS gap rather than a specific DNS misconfiguration on the client path. The code alone does not show whether the PTR record is missing, stale, or mismatched, nor which hop enforces the check.
Provider examples
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. Gmail requires that sending IP addresses have a PTR record. Learn more about requirements for sending IP addresses. To learn more about Gmail requirements for bulk email senders, visit Email sender guidelines. - gsmtpTechnical meaning
Reverse DNS validation failure for an SMTP client's IP address, contrary to local policy requirements, matches X.7.25. Code 5.7.25 applies that meaning in the permanent-failure class for this check.
Delivery status
The leading digit 5 denotes a permanent failure of the current attempt. The code does not establish why reverse DNS validation failed, which layer needs correction, or the policy of any particular provider.
- Class
- Permanent failure
- Retry
- Do not retry unchanged
- Suppression
- Check the full context
Retry decision
Operational guidance: stop automatic and manual retries of the same unchanged attempt. Consider a new, controlled attempt only after establishing the cause, making a confirmed correction, and checking the reverse DNS result; check suppression again first.
Suppression decision
Operational guidance: do not automatically suppress the recipient address or domain based on 5.7.25 alone. Inspect the complete response, event scope, DNS results, available logs, and delivery history, then base the suppression decision on the confirmed cause and applicable policy.
Common causes
- The SMTP client's IP address failed the reverse DNS check required by the local policy of the system that returned the code; the code alone does not identify the exact reason validation failed.
Diagnostic steps
- Inspect the raw SMTP response or nondelivery report and confirm the exact 5.7.25 code and a basic reply in the 5xx class; retain the complete response text.
- Correlate the response with the intended message, attempt time and stage, SMTP client IP address, and system that returned the code.
- Use available logs, DNS results, and local-policy configuration to establish which reverse DNS check failed and why; do not assign a specific cause or provider practice from the code alone.
- Stop unchanged retries. After a confirmed correction, check the reverse DNS result and suppression again, then make at most one controlled attempt.
Actions by owner
Sender
- Do not manually retry the same unchanged message; give the sender administrator the complete response and attempt time.
Sender administrator
- Retain the complete response, correlate the attempt with the SMTP client IP address used, and inspect available logs, DNS results, and managed sending-layer configuration to establish the confirmed cause.
- Make only a confirmed correction, check the reverse DNS result and suppression again, and verify the outcome with one controlled attempt instead of retrying the unchanged message.
Recipient administrator
- If you manage the system that returned the code, inspect its reverse-DNS-validation logs and local policy for the specified attempt; correct a confirmed receiving-side problem or safely give the sender the context needed for remediation.
Provider
- If you operate a managed IP address, DNS, sending layer, or receiving-side validation, inspect the relevant logs and configuration, correct a confirmed problem in that layer or give the administrators precise diagnostic context, and do not trigger suppression from the code alone.
Sources
These sources define what this enhanced status code means, mainly through the IANA registry and related RFCs. When provider examples appear on the page, they come from that provider's published documentation. Follow the links to read the original wording in context.
- SMTP Enhanced Status Codes — IANA registry of enhanced mail system status codes.
- RFC 5248 — A Registry for SMTP Enhanced Mail System Status Codes — Creates and governs the IANA enhanced status code registry.
- RFC 2034 — SMTP Service Extension for Returning Enhanced Error Codes — Defines how SMTP returns enhanced status codes to clients.
- RFC 7372 — Email Authentication Status Codes — Status codes for SPF, DKIM, DMARC and related authentication results.
- Gmail SMTP errors and codes — Official Gmail Help table of SMTP error messages and status codes.
Last verified:

