We have a Postfix SMTP server that's bound to two IP addresses and serves mail for two different domains. We can't change the domains to both use the same, single IP. Both IP addresses have reverse DNS
- 22.214.171.124 reverses to mail.domain1.com
- 126.96.36.199 reverses to mail.domain2.com
In our Postfix config I have
myhostname = mail.domain1.com myhostname = mail.domain2.com inet_interfaces = 188.8.131.52, 184.108.40.206 smtpd_banner = $myhostname Mail Server
(And some other stuff, which I think is irrelevant)
Using MXToolbox, running the smtp test command on mail.domain2.com returns everything as OK, however running it on mail.domain1.com returns an error because Postfix is identifying itself as 'mail.domain2.com' in the SMTP banner, how do I get it to return the correct banner based on the external IP address used?