On Thu, Sep 29, 2011 at 12:25:07PM -0700, Cameron Smith wrote:

> How can I set a different SMTP hostname greeting for each dedicated
> IP Address on my server?
> 
> domainone.com  192.0.43.11
> domaintwo.com 192.0.43.12
> domainthree.com 192.0.43.13
> 
> How can I make the SMTP hostname greeting for those IPs match the domains?

No need.

> 192.0.43.11:smtp inet n - n - - smtpd -o myhostname=domainone.com
> 192.0.43.12:smtp inet n - n - - smtpd -o myhostname=domaintwo.com
> 192.0.43.13:smtp inet n - n - - smtpd -o myhostname=domainthree.com

This works to a degree, but you don't want this.

> But I am not sure that is correct and wanted to ask here.
> My intention is to remove the unknown [192.0.43.11] in headers
> and make them look like domainone.com [192.0.43.11]

The greeting name of the SMTP server is never recorded in message
headers. Receiving systems will record the DNS name associated with
the outgoing client IP and the EHLO name sent by your Postfix SMTP client.

If your IPs don't resolve (on the public internet) to PTRs that
resolve back to the same names, fix that.

-- 
        Viktor.

Reply via email to