Topic: SMTP Reverse DNS Mismatch
==== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Apache
- Linux/BSD distribution name and version: Debian 7
- Related log if you're reporting an issue:
====
Hello,
I believe others have asked this question before but sometimes OPs did not respond to suggestions or further questions from the community, so no resolution was found.
I have a single server set up to serve multiple domains, email delivery for these is working but when I test with mxtoolbox, I receive this message:
"SMTP Reverse DNS Mismatch Warning - Reverse DNS does not match SMTP Banner
Connecting to <public IP address>
220 <internalhostname.domainAAA.com> ESMTP Postfix (Debian/GNU) [1310 ms]
EHLO MXTB-PWS3.mxtoolbox.com
250-<internalhostname.domainAAA.com>
250-PIPELINING
250-SIZE 15728640
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN [749 ms]
MAIL FROM: <supertool@mxtoolbox.com>
250 2.1.0 Ok [749 ms]
RCPT TO: <test@example.com>
554 5.7.1 <test@example.com>: Relay access denied [1482 ms]
MXTB-PWS3v2 5210ms"
My server's hostname is equivalent to internalhostname.domainAAA.com.
Each domain has a record for mail.domainXXX.com and each domain has a dedicated IP address.
PTR entries exist for "mail.domainXXX.com." to each public IP.
Each domain has MX records to point to mail.domainXXX.com, ie mail.domainBBB.com, mail.domainCCC.com
If I run the test against these domains, each responds with internalhostname.domainAAA.com which is incorrect even for domainAAA.com as it should be mail.domainAAA.com.
If I understand correctly, when a mail server delivers mail to another server which serves multiple domains, it should specify the domain it is delivering for (example domainGGG.com), and the receiving server should reply to each connection as mail.domainGGG.com. If the email was for domainHHH.com, the response would be mail.domainHHH.com, etc.
Could anyone advise how I might achieve this in iRedMail? Thank you.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.