My sendmail does not accord to the hosts order in solaris nsswitch.conf. Please let me elaborate in details. Thank you.
solaris 9 /etc/nsswitch.conf
hosts: file [notfound=continue] ldap dns
sendmail 8.13.4 /etc/mail/sendmail.cf
hosts in /etc/hosts
hosts in ldap
/usr/lib/sendmail can sendmail to user@host1 and user@host2, but it cannot email to user@host3. It complains that hosts unknown.
Setting 2: Then I remove 'dns' from /etc/nsswitch.conf:
hosts: files ldap
/usr/lib/sendmail can sendmail to user@host1 and user@host2, and also to user@host3. But sendmail cannot send email to external domain, such as email@example.com, because dns is removed from nsswitch.conf file.
Setting 3: I change the order of files, ldap, dns in nsswitch.conf, but it is no luck.
I also test this in Redhat Linux AS 4, it is the same problem.
Do you ever meet the problem? I have been in the trouble for several weeks. Any hints are deeply appreciated!
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!