550-5.7.25 The IP address sending this message does not have a PTR record
550-5.7.25 setup, or the corresponding forward DNS entry does not point to
550-5.7.25 the sending IP.
Gmail requires every sending server to have working reverse DNS. The IP address must have a PTR record that points to a host name, and that host name must point back to the same IP address. This round trip is called forward-confirmed reverse DNS (FCrDNS).
Who runs into this
Almost always someone running their own mail server: a VPS, a server in an office, a firewall or printer sending alerts, or an application sending directly instead of through a mail service. Big email providers set this up for their own servers, so if you send through Google Workspace, Microsoft 365 or an email platform, the problem is elsewhere.
How to fix it
-
Look up the PTR record of your sending IP:
dig -x 203.0.113.25 +short mail.example.com. -
Check that the name points back to the same address:
dig mail.example.com A +short 203.0.113.25 -
If the PTR is missing or generic (like
203-0-113-25.dynamic.isp.net), set it in the control panel of whoever owns the IP address: your hosting company or internet provider. You can't set it in your own domain's DNS. - Make your mail server greet with the same name (the HELO/EHLO name), for example
mail.example.com. - If you send over IPv6, repeat all of this for the IPv6 address. Gmail checks whichever protocol the connection used.
If your provider won't set a PTR record (common for home and office connections), don't send directly. Relay your mail through your email provider or a transactional email service instead.