John Forest wrote: > > On Thu, Sep 24, 1998 at 08:33:42AM +0530, Saisanthosh B wrote: > > How do I prevent Sendmail (8.8.8) from doing a DNS lookup when sending an > > e-mail. The Sendmail FAQ states that : > > > > With version 8.8, you change the service switch file to omit > > "DNS" and use only NIS, files, and other map types as appropriate. > > > > I tried omitting DNS in "hosts" of /etc/nsswitch.conf, but this does not > > seem > > to work. Temporarily, I have commented out the DNS lookup in sendmail.cf > > file. > > Am I doing the right thing my commenting the DNS lookup in cf file or is > > there > > any other solution for this (apart from recompiling sendmail source by > > undefining NAMED_BIND) > > > The /etc/nsswitch.conf does work. [...]
I had the problem that sendmail used /etc/service.switch as default service switch. I forced it to use /etc/nsswitch.conf with the following entry in sendmail.mc: define(`confSERVICE_SWITCH_FILE', `/etc/nsswitch.conf')dnl Hope this helps, Thomas