On 23/02/16 08:57, Curtis Maurand wrote: > The problem was in the /etc/nsswitch.conf. > > I changed the line > > hosts: files dns > > to > > hosts: dns files > > and that solved the trouble.
You likely want this to be, "files dns", otherwise with dns listed first you will find that you can't override DNS entries from /etc/hosts. The real issue is twofold: 1. As already pointed out you had the problematic domain (incorrectly?) listed in /etc/hosts. 2. You have smtp_host_lookup explicitly set to "native" in your main.cf. This is likely best left at the default of "dns" unless you have a specific reason to want postfix to check the /etc/hosts file before doing dns lookups. Peter