On Wed, Apr 1, 2015 at 8:03 AM, Noel Jones <njo...@megan.vbhcs.org> wrote:

> On 3/31/2015 5:26 PM, 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.
> >
> > This is the line in the log that caused me to take a look:
> >
> > Apr  1 05:07:55 mail postfix/lmtp[15053]: 3055B200083:
> > to=<localemail>, relay=none, delay=172, delays=172/0.02/0/0,
> > dsn=5.4.4, status=bounced (Host or domain name not found. Name
> > service error for name=localhost type=A: Host not found)
> >
> > This error went away once I used ''virtual_transport =
> > lmtp:inet:127.0.0.1'
>
>
> You don't need to change your setup, but this might answer some
> questions.
> http://www.postfix.org/postconf.5.html#lmtp_host_lookup
>
>
I see; got it, thanks! I was expecting that 'localhost' would work
naturally, but thanks...


Using 127.0.0.1 rather than localhost is acceptable, and sometimes
> even preferred.  Use whichever works best for you.
>
>
:) possibly!


thanks,
-jf



>
>   -- Noel Jones
>
>
> >
> > I'm not exactly expecting that lmtp should attempt a dns resolution
> > and ignore /etc/hosts, given the following note in master.cf
> > <http://master.cf>:
> >
> > # ====================================================================
> > #
> > # Recent Cyrus versions can use the existing "lmtp" master.cf
> > <http://master.cf> entry.
> > #
> > # Specify in cyrus.conf:
> > #   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
> > #
> > # Specify in main.cf <http://main.cf> one or more of the following:
> > #  mailbox_transport = lmtp:inet:localhost
> > #  virtual_transport = lmtp:inet:localhost
> > #
> > # ====================================================================
> >
> > This is from a postfix 3.0.0 source install.
> >
> >
> > postconf -n just in case (with 127.0.0.1 in virtual_transport):
> >
> > command_directory = /usr/sbin
> > compatibility_level = 2
> > debug_peer_level = 2
> > debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
> > ddd $daemon_directory/$process_name $process_id & sleep 5
> > html_directory = no
> > inet_interfaces = <IP_ADDR>
> > inet_protocols = ipv4
> > mail_owner = postfix
> > mailq_path = /usr/bin/mailq
> > manpage_directory = /usr/local/man
> > mydestination = $myhostname
> > myhostname = <masked>
> > mynetworks_style = host
> > newaliases_path = /usr/bin/newaliases
> > readme_directory = no
> > sendmail_path = /usr/sbin/sendmail
> > setgid_group = postdrop
> > shlib_directory = no
> > smtpd_sasl_auth_enable = yes
> > smtpd_sasl_path = private/auth
> > smtpd_sasl_type = dovecot
> > smtputf8_enable = no
> > unknown_local_recipient_reject_code = 550
> > virtual_alias_maps = proxy:mysql:/etc/postfix/virtual-aliases.cf
> > <http://virtual-aliases.cf>
> > virtual_mailbox_domains = $mydomain
> > virtual_transport = lmtp:inet:127.0.0.1
> >
> > -jf
> >
> > --
> > He who settles on the idea of the intelligent man as a static entity
> > only shows himself to be a fool.
> >
> > Mensan / Full-Stack Technical Polymath / System Administrator
> > 12 years over the entire web stack: Performance, Sysadmin, Ruby and
> > Frontend
>
>

Reply via email to