• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Reverse DNS does not match SMTP Banner

JohnBee

Basic Pleskian
It would appear that I have this problem on my Plesk server, and I can't figure out what's causing it.
I recently tried replying to an email and got a message saying my email was rejected - I assume this is the cause

With that said, could someone help me troubleshoot and fix this?
 
SMTP Banner is normally the hostname, and it should be a FQDN in an best case scenario.
Reverse DNS needs to be set normally over the Server Providers Panel or Support

You can check the SMTP Banner with:
Code:
# telnet localhost 25

Here as an example:
Code:
root@mail ~ # telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 mail.example.com ESMTP Postfix
quit
221 2.0.0 Bye
Connection closed by foreign host.
Here the Banner is mail.example.com

The hostname can be changed over Tools & Settings > Server Settings and over CLI
Code:
# hosnamectl set-hostname mail.example.com

the PTR/Reverse DNS can be checked with:
Code:
# host <IP>

Here as an example:
Code:
root@mail ~ # host 203.0.113.2
2.113.0.203.in-addr.arpa domain name pointer mail.example.com.
 
Hi and thanks so much for helping out with this.
I ran the tests and found the following;

# telnet localhost 25

Connected to localhost.localdomain.
Escape character is '^]'.
220 webshot-5eb7aafc891d2.local ESMTP Postfix

I then looked in Tools & Settings, and found that hostname was indeed properly set with my.hostname.net
I then ran the following command:

# hosnamectl set-hostname my.hostname.net

Then verified with the following:
# host <my IP>

And receive the following response
157.136.141.99.in-addr.arpa domain name pointer my.hostname.net.

With that said, it would appear that my Postfix banner is reporting the webhost hostname rather than the set hostname
Any idea what could cause this, or how I might fix it?
 
Last edited:
My SMTP banner is:
220 mydomain.ca ESMTP Postfix

Is the suggestion really to change the whole server hostname to mail.mydomain.ca ?

Wouldn't the hostname applies to more than just the mail server ?
 
SMTP Banner is normally the hostname, and it should be a FQDN in an best case scenario.
Reverse DNS needs to be set normally over the Server Providers Panel or Support

You can check the SMTP Banner with:
Code:
# telnet localhost 25

Here as an example:
Code:
root@mail ~ # telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 mail.example.com ESMTP Postfix
quit
221 2.0.0 Bye
Connection closed by foreign host.
Here the Banner is mail.example.com

The hostname can be changed over Tools & Settings > Server Settings and over CLI
Code:
# hosnamectl set-hostname mail.example.com

the PTR/Reverse DNS can be checked with:
Code:
# host <IP>

Here as an example:
Code:
root@mail ~ # host 203.0.113.2
2.113.0.203.in-addr.arpa domain name pointer mail.example.com.
In my case, I have two records of PTR. Is it okay.
 
The PTR record for a reverse name is expected to resolve to the canonical name of that ip address. That is said 1 name. Why would you want to have multiple PTR records?
 
Back
Top