Lorenzo Bernardi:
> I setup dovecot to handle SASL and listen on port 12345.
> When I use the hostname in postfix configuration, I receive the 
> following error:
> postfix/smtpd[141]: fatal: host/service dovecot/12345 not found: No 
> address associated with hostname

The getaddrinfo() SYSTEM LIBRARY routine, given hostname 'dovecot',
found no IP address. Postfix does not use gethostbyname() except
on systems that are more than 10 years old.

> Everything also works correctly if I add the following entry in 
> /var/spool/postfix/etc/hosts:
> 172.20.0.5 dovecot

There should be no need to do that.

According to Docker documentation, "If you want containers to be
able to resolve IP addresses by container name, you should use
user-defined networks instead [of using the default bridge network]".

docs.docker.com/engine/userguide/networking/#the-default-bridge-network

        Wietse

Reply via email to