tcpserver won't start smtp


Subject: tcpserver won't start smtp
From: Patrick Callahan (pac1@tiac.net)
Date: Tue Jan 25 2000 - 21:42:01 MST


My earlier post from this morning described a problem I'm having with
tcpserver.

The call se = getservbyname(portname,"tcp"); in tcpserver.c is
returning null, and I am getting the message:

    if (!se) {
      if (verbosity) strerr_warn3(FATAL,"unable to figure out port
number for ",portname,0);
      _exit(111);
    }

Someone suggested I check /etc/nsswitch. I did and found services and
protocols were defaulted to nisplus with [NOTFOUND=return] followed by
files. At some point in the recent past, I had to change the order of
the hosts line so that files were searched first. I think I did this in
response to something in the faq for qmail.

Since the current problem is with services and a particular protocol,
SMTP, I decided to try changing the order of those two in this
configuration file. It didn't work. I'm still getting kicked out of
tcpserver each time it retries. What would you read next if you were
me?

ls /lib/libnss* gives:

/lib/libnss_compat-2.1.1.so /lib/libnss_files.so.2
/lib/libnss_compat.so.2 /lib/libnss_hesiod-2.1.1.so
/lib/libnss_db-2.1.1.so /lib/libnss_hesiod.so.2
/lib/libnss_db.so.2 /lib/libnss_nis-2.1.1.so
/lib/libnss_dns-2.1.1.so /lib/libnss_nis.so.2
/lib/libnss_dns.so.2 /lib/libnss_nisplus-2.1.1.so
/lib/libnss_files-2.1.1.so /lib/libnss_nisplus.so.2

/etc/nsswitch.conf

passwd: files nisplus nis
shadow: files nisplus nis
group: files nisplus nis

#hosts: db files nisplus nis dns
hosts: files nisplus nis dns

services: files nisplus [NOTFOUND=return]
networks: nisplus [NOTFOUND=return] files
protocols: files nisplus [NOTFOUND=return]
rpc: nisplus [NOTFOUND=return] files
ethers: nisplus [NOTFOUND=return] files
netmasks: nisplus [NOTFOUND=return] files
bootparams: nisplus [NOTFOUND=return] files

netgroup: nisplus

publickey: nisplus

automount: files nisplus
aliases: files nisplus
                            \
just for kicks here's a chunk of /etc/services too. [insert your
favorite generic admission of cluelessness here]

tcpmux 1/tcp # TCP port service
multiplexer
echo 7/tcp
echo 7/udp
discard 9/tcp sink null
discard 9/udp sink null
systat 11/tcp users
daytime 13/tcp
daytime 13/udp
netstat 15/tcp
qotd 17/tcp quote
msp 18/tcp # message send protocol
msp 18/udp # message send protocol
chargen 19/tcp ttytst source
chargen 19/udp ttytst source
ftp-data 20/tcp
ftp 21/tcp
fsp 21/udp fspd
ssh 22/tcp # SSH Remote Login
Protocol
ssh 22/udp # SSH Remote Login
Protocol
telnet 23/tcp
# 24 - private
smtp 25/tcp mail
# 26 - unassigned

--
Pat Callahan
Acton Ma USA
Programmer and Kohlrabi Rancher




This archive was generated by hypermail 2a24 : Tue Feb 01 2000 - 17:50:59 MST