I have a mail server that relays e-mails for two different domains. I want the
smtp_helo_name to be different based on the domain. I'm assuming there is no way to do this via checking the mail headers, so I was wondering if there was a way to do it by sending mail for one domain to one IP address, and mail for the other to another.
I tried modified master.cf to do this:
localhost:smtp inet n - n - - smtpd ip1:smtp inet n - n - - smtpd ip2:smtp inet n - n - - smtpd -o myhostnamee=example2.com
$myhostname in main.cf.
I also tried doing
-o smtp_helo_name instead, neither work. Any suggestions would be great.