On Wed, Apr 01, 2015 at 07:30:11PM +0800, Jeffrey 'jf' Lim wrote:

> > > Not too sure what the problem is, but I had to use '127.0.0.1' in place
> > of
> > > 'localhost' for my virtual_transport setting to work. 'localhost' is in
> > > /etc/hosts ('127.0.0.1               localhost.localdomain localhost'),
> > and
> > > a 'ping localhost' at the command line works.
> >
> > Don't chroot transports in master.cf, but if you must, ensure that
> > /etc/hosts, /etc/services, /etc/resolv.conf, ... are correct in
> > the chroot jail.
> 
> 
> Thanks. Definitely will take note if I do a chroot, but I believe my
> transports aren't? At least not that I'm aware of. I'm doing an install
> from source (which I assume doesn't chroot anything?) of postfix 3.0.0

The other reason why localhost might fail to resolve is that when
looking up nexthop hostnames for SMTP or LMTP in DNS, Postfix does
not use default suffixes (the resolver default domain and search
list are turned off).

If you don't have a "localhost." in your local resolver (you should
have a local resolver and it should have a "localhost" TLD), you'll
have better luck with:

    lmtp_host_lookup = dns, native

but I don't recommend this.  Instead either fix your resolver,
or use:

        lmtp:inet:localhost.example.com:24

(the main "advantage" of which over [127.0.0.1], is that it can use
IPv6).

-- 
        Viktor.

Reply via email to