• 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.

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