Postfix dynamic smtp_helo_name

Posted by William on Server Fault See other posts from Server Fault or by William
Published on 2010-03-11T18:51:55Z Indexed on 2010/03/11 18:55 UTC
Read the original article Hit count: 411

Filed under:
|
|
|

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, 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

And setting smtp_helo_name to $myhostname in main.cf

I also tried doing -o smtp_helo_name instead, neither work. Any suggestions would be great.

Thanks

© Server Fault or respective owner

Related posts about postfix

Related posts about smtp