On Sep 29, 2011, at 3:16 PM, Viktor Dukhovni wrote: > On Thu, Sep 29, 2011 at 02:29:16PM -0700, Cameron Smith wrote: > >>>> 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. >>> >>> 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. > >> Received: from mournblade.imrryr.org (mournblade.imrryr.org >> [208.77.212.107]) by russian-caravan.cloud9.net > > The host "russian-caravan.cloud9.net" was able to resolve the IP address to > a hostname which matched 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 > > The host "vps.velvetpixel.net" was unable to resolve the IP address > "74.63.3.132" to a hostname which matched the IP. > >> Is this a DNS issue or a Postfix configuration issue? > > DNS. You may want to set "smtp_helo_name=alwaysbuywholesale.com" since that's > your system's name, but this has no effect on the "unknown" issue. > > Since the DNS data in question looks good to me, the issue is perhaps > on the vps client, but perhaps things were different at the time message > was sent, or not all your DNS servers return the same answer. >
Thanks Viktor :) What you said made me troubleshoot a little deeper and I found that the "unknown" was caused by not having the correct entry for that domain and it's dedicated IP in my /etc/hosts file so that part is fixed! I am still running into the SMTP banner mismatch issue though. alwaysbuywholesale.com is not my system name. It is just a virtual host with a dedicated IP on my system. My system hostname is vps.velvetpixel.net and it's IP is 74.63.2.190 When I run the test at mxtoolbox for the virtual host domain dedicated IP 74.63.3.132 I get the "Warning - Reverse DNS does not match SMTP Banner" error It displays the server's hostname: 220 vps.velvetpixel.net ESMTP Postfix which is fine for all mail associated with the IP of the server but I still want to change the SMTP banners so that they match reverse for each different IP on the server. It seems like I am in a catch 22 for domains on additional dedicated IPs on my server where DNS A and PTR match but then I can't make the SMTP banner match the info for that vhost as it's stuck on the server hostname. All I want is general mail from domains without a dedicated IP to stay as: 220 vps.velvetpixel.net ESMTP Postfix and domains with a dedicated IP such as alwaysbuywholesale.com to have this style: 220 alwaysbuywholesale.com ESMTP Postfix Where alwaysbuywholesale.com is what matches PTR for that dedicated IP. Is this not possible? Thanks, Cameron