sendmail 8.6.12, nsswitch.conf, and /etc/hosts

sendmail 8.6.12, nsswitch.conf, and /etc/hosts

Post by Jhon Hon » Tue, 19 Sep 1995 04:00:00



I've searched the FAQ's that I can find and haven't found a solution to this
problem.  Maybe someone else has already solved it...

1) solaris 2.4 and Sun's C compiler
2) sendmail 8.6.12
3) nsswitch.conf with "hosts: files dns"
4) /etc/hosts with
    "xx.xx.xx.xx lachesis.gsfc.nasa.gov lachesis"
    "xx.xx.xx.xx clotho.gsfc.nasa.gov clotho (not in dns)"

All of Sun's utilities, telnet and rlogin, can find clotho from
lachesis no problem.  But 8.6.12 sendmail fails with "Host unknown
(Name server:  clotho: host not found)".  Any ideas?  Thanks for any help or
information you can provide.

--

NASA/GSFC; Code 520.9 B23 W351     vox: 301.286.1074
Greenbelt, MD 20771                fax: 301.286.1768

 
 
 

sendmail 8.6.12, nsswitch.conf, and /etc/hosts

Post by Bill Pa » Wed, 20 Sep 1995 04:00:00


Daring to challenge the will of the almighty Leviam00se,

: I've searched the FAQ's that I can find and haven't found a solution to this
: problem.  Maybe someone else has already solved it...

: 1) solaris 2.4 and Sun's C compiler
: 2) sendmail 8.6.12
: 3) nsswitch.conf with "hosts: files dns"
: 4) /etc/hosts with
:     "xx.xx.xx.xx lachesis.gsfc.nasa.gov lachesis"
:     "xx.xx.xx.xx clotho.gsfc.nasa.gov clotho (not in dns)"

: All of Sun's utilities, telnet and rlogin, can find clotho from
: lachesis no problem.  But 8.6.12 sendmail fails with "Host unknown
: (Name server:  clotho: host not found)".  Any ideas?  Thanks for any help or
: information you can provide.

Just a hunch, but check your sendmail.cf file for an option with
a comment that says something like: "Insist that the BIND name server
be running to resolve hostnames." (I think the option says 'OITrue'.)
When you find that option, comment it out and restart sendmail.
Having this there will force sendmail to do DNS lookups for all
hostnames no matter how nsswitch.conf is set up. Since clotho is
not in the DNS, the lookup will always fail unless you disable
this option.

-Bill

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~T~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Bill Paul            (212) 854-6020 | System Manager


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The M??se Illuminati: ignore it and be confused, or join it and be confusing!
~~~~~~ "Welcome to All Things BSDish! If it's not BSDish, it's crap!" ~~~~~~~

 
 
 

1. Sendmail 8.6.12: using /etc/hosts to send to domainless hosts

This may be a dumb question, but here goes anyway....

I have a situation where I need to send mail to another net (over an ISDN
link) which is not under my control.  This other network is using the
/etc/hosts file, and is not using DNS or NIS at all.  So they have no
domain of any kind, just hostnames and IP addresses.

The network I am helping with, on which I have installed the latest BIND
and sendmail v8.6.12, is running Solaris 2.4 on the mailhost and the
backup, and the DNS has MX records for all other hosts to these two
systems.  The Sun-supplied sendmail has no problem finding the other net's
domain-less hosts in /etc/hosts, and I do have /etc/nsswitch.conf setup
correctly, and all other applications but sendmail v8 can find those
domainless hosts.  What have I missed?  I didn't compile sendmail v8 with
NIS enabled, since we don't use it.  Do I need to do this, or is there
some other trick I don't know about?

--

"Supporting Windows is like buying a puppy.  The dog only cost $100, but
we spent another $500 cleaning the carpet."
 - Marc Dodge, "Reality Check", _Open Computing_, December 1994

2. HELP: monitor Samsung

3. /etc/host.conf and /etc/nsswitch.conf

4. interfacing a stream to a file descriptor

5. Pre-compiled Sendmail 8.6.12 for Linux?

6. Scrolling Editor ?

7. Linux 2.0.0 and sendmail 8.6.12/8.7.5...HELP!!!

8. Dial in to NT callback server

9. Sendmail 8.6.12 config

10. Problem compiling sendmail (8.6.12) on Solaris 2.4

11. Trouble compiling sendmail 8.6.12 for Solaris 2.4

12. Sendmail 8.6.12,makemap,Solaris 2.3,remaping Names HELP

13. 'unknown user' on numeric usernames (sendmail 8.6.12 and linux 1.3.20)