> \On Aug 26, 2019, at 7:33 AM, postfix-user-l...@cas.cat wrote:
> 
> When you install avahi-daemon, hosts line in /etc/nsswitch.conf looks like
> 
>     hosts:          files mdns4_minimal [NOTFOUND=return] dns myhostname
> 
> so it first tries to do "nsswitch resolution" with mDNS before
> contacting dns thing
> 
> you can check it with command getent (getent - get entries from Name
> Service Switch libraries), and I think this is equivalent to calling
> getaddrinfo:
> 
>     $ getent hosts host1.local
>     192.168.1.124  host1.local
> 
> from a default debian 10 stable postfix server version 3.4.5, in file
> /etc/postfix/main.cf I added: (1) ability to run IPs (that works fine,
> but is not as interesting as mDNS!) and (2) ability to query nsswitch.conf:
> 
>     # allow raw IPs -> src
> https://serverfault.com/questions/373350/postfix-allow-sending-to-raw-ip-address
>     resolve_numeric_domain = yes
>    
>     # http://www.postfix.org/postconf.5.html#smtp_host_lookup
>     smtp_host_lookup = dns, native

Is smtp(8) using "chroot" in your master.cf file?  If so, the relevant
nsswitch.conf is likely the one in the chroot jail, and the jail would
also need to contain the relevant nss plugin modules.  Simpler may be
to disable chroot.

-- 
        Viktor.

Reply via email to