Topic: How to disable reverse DNS check for specific IP
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with the downloadable installer
- Linux/BSD distribution name and version: Debian 9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? NO
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
I'm migrating an iRedMail server to a new one with the same hostname.
During migrations I usually relay incoming from the old server to the new one between the mailbox migration and the MX modification to avoid lost of e-mail.
I have added the old server's IP 22.214.171.124 to the mynetworks parameters in postfix and iRedAPD but the mail is still bounced.
In this case, my mail is bounced by Postfix with an error like "postfix/smtpd: warning: hostname mail.example.com does not resolve to address 126.96.36.199". the old server's IP 188.8.131.52 have a PTR record mail.example.com and from the new mail.example.com is the localhost and the reverse DNS verification doesn't match.
I have edited in Postfix settings "smtpd_sender_restrictions" and "smtpd_recipient_restrictions" to put "permit_mynetworks" in first position but it's still doesn't work.
How can I accept e-mail from the old server in this context?