tcpserver won't start smtp

Subject: tcpserver won't start smtp
From: Patrick Callahan (
Date: Tue Jan 25 2000 - 21:42:01 MST

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

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);

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

ls /lib/libnss* gives:

/lib/ /lib/
/lib/ /lib/
/lib/ /lib/
/lib/ /lib/
/lib/ /lib/
/lib/ /lib/
/lib/ /lib/


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
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
ssh 22/udp # SSH Remote Login
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