On Sep 29, 2011, at 12:36 PM, Viktor Dukhovni wrote:

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

Thank you for your reply Viktor!

I am probably calling my question the wrong thing so I will give real world 
examples.

In the email I am replying to one of the headers was:

Received:       from mournblade.imrryr.org (mournblade.imrryr.org 
[208.77.212.107]) by russian-caravan.cloud9.net 

See how mournblade.imrryr.org is listed in front of the IP?

For my system would like the domain name listed there to be the domain that 
lives on that IP but the headers show:
Received:       from www.alwaysbuywholesale.com (unknown [74.63.3.132]) by 
vps.velvetpixel.net 

Is this a DNS issue or a Postfix configuration issue?

For my real world example I will give you my details to confirm if it DNS or 
not.

server
vps.velvetpixel.net
74.63.2.190

domain with dedicated IP
alwaysbuywholesale.com
74.63.3.132

The A record I control and it is set correctly:
alwaysbuywholesale.com. 300     IN      A       74.63.3.132

The PTR is controlled my my provider and it returns:
132.3.63.74.in-addr.arpa domain name pointer alwaysbuywholesale.com.

My IP for the domain in question is resolving so why is unknown listed in the 
header?

Cameron

Reply via email to