• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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