Reverse DNS Does Not Match SMTP Banner: What It Means and How to Fix It
"Reverse DNS does not match SMTP banner" means your mail server's PTR hostname and the name in its SMTP greeting differ. See when it matters, how to fix it on your own server, and when to ignore it.
By Jack MahoneyPublished
Use with your tools
A DNS or mail server check lists a warning: "Reverse DNS does not match SMTP banner". Your mail may still be flowing, but the warning sits next to your domain in every report, and it's reasonable to wonder whether it's costing you inbox placement.
The warning compares two names that should be the same, the name your server's IP address points back to and the name the server announces when another server connects. This guide explains the comparison, when the mismatch matters and how to make the names agree.
What the check compares
Three DNS and SMTP values describe a mail server, and the check expects them to agree:
- PTR (reverse DNS): a lookup of the server's IP address. For example,
203.0.113.25points tomail.example.com. - Forward DNS: the A or AAAA record of that hostname, which should point back to the same IP:
mail.example.compoints to203.0.113.25. - SMTP banner: the first line the server sends when a connection opens, starting with
220, such as220 mail.example.com ESMTP.
The warning appears when the hostname in the banner isn't the hostname the PTR record returns, for example a banner of 220 localhost or 220 server01.internal on an IP whose PTR is mail.example.com. Checkers usually run it against the servers in your MX records, so it describes the server that receives your mail.
Does it affect delivery?
What matters most is the reverse DNS itself. Gmail's sender guidelines require that the public IP address of a sending server have a PTR record resolving to a hostname, and that the hostname's A or AAAA record resolve back to the same IP address. Mail from an IP that fails that check can be rejected or filtered, whatever the banner says.
The banner name isn't part of Gmail's published requirements. Treat a mismatch as a configuration warning rather than a delivery failure, but fix it when you run the server. When the same machine also sends mail, the name it gives other servers (its HELO name) usually comes from the same setting, and one name across the PTR record, the banner and the HELO name removes the warning and makes Received headers easier to read.
How to fix it
If you use Google Workspace, Microsoft 365 or another hosted provider
The MX servers belong to the provider, and so do their banners and PTR records. A mismatch reported on a provider's server isn't something you can change, and it isn't caused by your DNS. Check instead that your own records, SPF, DKIM, DMARC and MX, are correct.
If you run your own mail server
- Choose one hostname for the server, such as
mail.example.com. - Set the PTR record for the server's public IP to that hostname. Reverse DNS is controlled by whoever owns the IP address, usually your hosting provider or ISP, not by your domain's DNS host, so you set it in their control panel or ask their support.
- Point the hostname's A (or AAAA) record at the same IP address, so forward and reverse DNS agree.
- Set the server's own hostname and banner to match. In Postfix, the banner comes from
smtpd_banner, which by default starts with$myhostname, so settingmyhostname = mail.example.comusually fixes both the banner and the HELO name. In other servers, look for the host name or greeting setting. - Restart the service and check again.
Check the result
- Run a reverse DNS lookup on the server's IP address and confirm it returns the hostname you chose, and that the hostname resolves back to the same IP.
- Run the free SMTP tester against the server. It records the banner the server sends, so you can see the
220line yourself. - Send a test message from the server to an inbox you can read and check the
Receivedheaders, which show the name the server used.
Frequently asked questions
What does "reverse DNS does not match SMTP banner" mean?
The hostname your server announces in its 220 greeting is different from the hostname its IP address resolves to through reverse DNS (the PTR record).
Is a reverse DNS and banner mismatch a problem?
It's a warning, not a delivery requirement. The important part is that the sending IP has a PTR record whose hostname resolves back to the same IP, which Gmail requires. Fix the banner when you run the server, and ignore it on a hosted provider's servers.
Who can change my PTR record?
The owner of the IP address, usually your hosting provider, cloud provider or ISP. Your domain's DNS host can change A, MX and TXT records but not the PTR for an IP it doesn't own.
How do I find my server's SMTP banner?
Connect to the server on port 25 and read the first line it sends, which starts with 220. The SMTP tester records it for you.