On Tue, Sep 23, 2008 at 04:23:56PM +0200, Peter Rabbitson wrote: > I encountered a weird behavior with Postfix when specifying > smtp:localhost as a transport destination. After long debugging, tcpdump > revealed that postfix directly asks for 'localhost.<local dns suffix>', > as specified in /etc/hosts:search without first asking for 'localhost'. > Is this intended behavior, or is this an omission? I am using stock > Debian Postfix 2.5.5-1.1
Postfix passes "localhost" to the DNS library. RES_DNSRCH is off, but RES_DEFNAMES is on. So unqualified names will be qualified with the default domain. If "smtp_host_lookup" is set to "native", you get whatever behaviour the C library (per nsswitch.conf) provides. -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:[EMAIL PROTECTED]> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.