• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Plesk Postfix Multiple rDNS - change myhostname

ImmDev

New Pleskian
Hi,

We have a dedicated sever with Plesk, from the panel that gave us our server farm we set 3 rDNS:
  • main-server.mymaindomain.com with ip 100.136.213.102
  • main-server2.mymaindomain.com with ip 200.157.203.115
  • main-server3.mymaindomain.com with ip 155.121.234.100
In Postfix main.cf there this setting:
  • myhostname = main-server.mymaindomainmain.com
This work fine when we send eamil from a domain that use 100.136.213.102, but when we use domains that have as ip 200.157.203.115 or 155.121.234.100 MX Lookup Tool - Check your DNS MX Records online - MxToolbox return this error:

"Reverse DNS does not match SMTP Banner"

Because the email is always sent with main-server.mymaindomainmain.com and not with main-server2.mydomainmain.com if sender domain has 200.157.203.115 or with main-server3.mydomainmain.com if sender domain has 155.121.234.100


Our question is:


How do we set Plesk or Postfix in such a way as to change the "myhostname" variable of the config file according to the ip of the domain that is sending the mail? therefore:
  • main-server.mymaindomain.com if domain sender ip is 100.136.213.102
  • main-server2.mymaindomain.com with ip 200.157.203.115
  • main-server3.mymaindomain.com with ip 155.121.234.100

We have full access to the server both from SSH with root access and to the Plesk panel and we can change all file like Poestfix "main.cf", "master.cf" etc.


Thank you in advance for your availability


Sincerely
ImmDev
 
Back
Top