Postfix Multiple IP Address, Individual SMTP Hostname Greeting
If your Postfix mail server has multiple IP addresses, it will use the same SMTP hostname greeting on every IP Address. This may cause a problem since some mail servers check the SMTP hostname banner to see if the hostname points to the same mail server. If not, any mail you send may be rejected or handled as spam. You can confirm if you have this problem by getting a DNS report on your domain name.
1. Edit the file /etc/postfix/master.cf and change the line below from
smtp inet n - n - - smtpd
to this
localhost:smtp inet n - n - - smtpd ipaddress1:smtp inet n - n - - smtpd ipaddress2:smtp inet n - n - - smtpd -o myhostname=hostname2 . . . ipaddressn:smtp inet n - n - - smtpd -o myhostname=hostnamen
The new settings above binds each ip address to a new hostname except for localhost and ipaddress1 which uses the regular hostname.














