fail to telnet localhost 106

$ tail /var/log/syslog

Dec 17 09:50:27 mail inetd[5457]: <off>/stream: unknown service
Dec 17 09:51:14 mail inetd[5475]: <off>/stream: unknown service
Dec 17 09:51:59 mail inetd[5493]: <off>/stream: unknown service
Dec 17 09:52:54 mail inetd[5515]: execv /usr/sbin/tcpd: No such file or directory
Dec 17 09:54:50 mail inetd[5535]: execv /usr/sbin/poppassd: No such file or directory
Dec 17 09:55:41 mail inetd[5537]: execv /usr/sbin/poppassd: No such file or directory
Dec 17 10:07:54 mail postfix/smtpd[5550]: connect from 125-27-165-208.adsl.totbb.net[125.27.165.208]
Dec 17 10:07:55 mail postfix/smtpd[5550]: warning: support for restriction "reject_maps_rbl" will be removed from Postfix; use "reject_rbl_client domain-name" instead
Dec 17 10:07:55 mail postfix/smtpd[5550]: NOQUEUE: reject: RCPT from 125-27-165-208.adsl.totbb.net[125.27.165.208]: 554 5.7.1 Service unavailable; Client host [125.27.165.208] blocked using bl.spamcop.net; Blocked - see http://www.spamcop.net/bl.shtml?125.27.165.208; from=<steven@xerox.m0.net> to=<satimis@satimis.com> proto=ESMTP helo=<125-27-161-107.adsl.totbb.net>
Dec 17 10:07:56 mail postfix/smtpd[5550]: disconnect from 125-27-165-208.adsl.totbb.net[125.27.165.208]

Sorry I don't follow.

I executed all commands on console of the same machine.

satimis

This is your inetd.conf line

poppassd stream tcp nowait root /usr/sbin/tcpd /usr/sbin/poppassd

then this is what inetd is complaining about...


Dec 17 09:50:27 mail inetd[5457]: <off>/stream: unknown service
Dec 17 09:52:54 mail inetd[5515]: execv /usr/sbin/tcpd: No such file or directory
Dec 17 09:54:50 mail inetd[5535]: execv /usr/sbin/poppassd: No such file or directory
Dec 17 09:55:41 mail inetd[5537]: execv /usr/sbin/poppassd: No such file or directory

[/quote]

So "inetd" can't execute what it's been told to run, I was asking if you can run them from the command line.

Do you have a "/usr/sbin/poppassd" or "/usr/sbin/tcpd"?

That "<off>/stream" looks very wrong.

Re-performed following steps to further confirm;

$ cat /etc/inetd.conf

poppassd stream tcp nowait root /usr/sbin/poppassd

$ telnet localhost 106

Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
Connection closed by foreign host.

$ tail /var/log/syslog

Dec 17 10:11:16 mail postfix/anvil[5553]: statistics: max connection rate 1/60s 
for (smtp:125.27.165.208) at Dec 17 10:07:54
Dec 17 10:11:16 mail postfix/anvil[5553]: statistics: max connection count 1 for
 (smtp:125.27.165.208) at Dec 17 10:07:54
Dec 17 10:11:16 mail postfix/anvil[5553]: statistics: max cache size 1 at Dec 17
 10:07:54
Dec 17 10:12:07 mail inetd[5589]: execv /usr/sbin/poppassd: No such file or dire
ctory
Dec 17 10:17:01 mail /USR/SBIN/CRON[5597]: (root) CMD (   cd / && run-parts --re
port /etc/cron.hourly)
Dec 17 10:33:17 mail -- MARK --
Dec 17 10:33:28 mail named[4527]: listening on IPv4 interface vmnet8, 192.168.21
3.1#53
Dec 17 10:33:28 mail named[4527]: listening on IPv4 interface vmnet1, 172.16.77.
1#53
Dec 17 10:39:01 mail /USR/SBIN/CRON[5605]: (root) CMD (  [ -d /var/lib/php5 ] &&
 find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs
 -r -0 rm)
Dec 17 10:47:29 mail inetd[5633]: execv /usr/sbin/poppassd: No such file or dire
ctory

$ cat /etc/inetd.conf

#<off># ftp     stream  tcp     nowait  root    /usr/sbin/tcpd /usr/sbin/proftpd
poppassd stream tcp nowait root /usr/sbin/tcpd /usr/sbin/poppassd

$ sudo /etc/init.d/inetd restart

 * Restarting internet superserver...                                                                    [ OK ] 

$ telnet localhost 106

Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
Connection closed by foreign host.

$ tail /var/log/syslog

Dec 17 10:11:16 mail postfix/anvil[5553]: statistics: max connection count 1 for (smtp:125.27.165.208) at Dec 17 10:07:54
Dec 17 10:11:16 mail postfix/anvil[5553]: statistics: max cache size 1 at Dec 17 10:07:54
Dec 17 10:12:07 mail inetd[5589]: execv /usr/sbin/poppassd: No such file or directory
Dec 17 10:17:01 mail /USR/SBIN/CRON[5597]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Dec 17 10:33:17 mail -- MARK --
Dec 17 10:33:28 mail named[4527]: listening on IPv4 interface vmnet8, 192.168.213.1#53
Dec 17 10:33:28 mail named[4527]: listening on IPv4 interface vmnet1, 172.16.77.1#53
Dec 17 10:39:01 mail /USR/SBIN/CRON[5605]: (root) CMD (  [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -r -0 rm)
Dec 17 10:47:29 mail inetd[5633]: execv /usr/sbin/poppassd: No such file or directory
Dec 17 10:51:03 mail inetd[5656]: execv /usr/sbin/tcpd: No such file or directory

$ locate poppassd

/etc/pam.d/poppassd
/etc/xinetd.d/poppassd
/usr/sbin/poppassd
/usr/share/doc/poppassd
/usr/share/doc/poppassd/changelog.Debian.gz
/usr/share/doc/poppassd/copyright
/usr/share/doc/poppassd/README.gz
/usr/share/man/man8/poppassd.8.gz
/var/cache/apt/archives/poppassd_1.8.5-3.1ubuntu1_amd64.deb
/var/lib/dpkg/info/poppassd.conffiles
/var/lib/dpkg/info/poppassd.list
/var/lib/dpkg/info/poppassd.md5sums
/var/lib/dpkg/info/poppassd.postinst
/var/lib/dpkg/info/poppassd.postrm

$ locate tcpd

/usr/sbin/couriertcpd
/usr/sbin/tcpdump
/usr/share/doc/tcpdump
/usr/share/doc/tcpdump/changelog.Debian.gz
/usr/share/doc/tcpdump/changelog.gz
/usr/share/doc/tcpdump/copyright
/usr/share/doc/tcpdump/examples
/usr/share/doc/tcpdump/examples/atime.awk
/usr/share/doc/tcpdump/examples/packetdat.awk
/usr/share/doc/tcpdump/examples/send-ack.awk
/usr/share/doc/tcpdump/examples/stime.awk
/usr/share/doc/tcpdump/README.gz
/usr/share/man/man1/couriertcpd.1.gz
/usr/share/man/man8/tcpdump.8.gz
/usr/share/webmin/caldera/tcpd
/usr/share/webmin/caldera/tcpd/images
/var/cache/apt/archives/tcpdump_3.9.5-2ubuntu1_amd64.deb
/var/lib/dpkg/info/tcpdump.list
/var/lib/dpkg/info/tcpdump.md5sums

$ ls -l /usr/sbin/poppassd

ls: /usr/sbin/poppassd: No such file or directory

$ ls -al /usr/sbin | grep poppassd
No printout

The file /usr/sbin/poppassd seems missing.

Edit:

Further discovery;

$ apt-cache policy poppassd

poppassd:
  Installed: (none)
  Candidate: 1.8.5-3.1ubuntu1
  Version table:
     1.8.5-3.1ubuntu1 0
        500 http://us.archive.ubuntu.com feisty/universe Packages
        100 /var/lib/dpkg/status

$ apt-cache policy openbsd-inetd

openbsd-inetd:
  Installed: (none)
  Candidate: 0.20050402-3
  Version table:
     0.20050402-3 0
        500 http://us.archive.ubuntu.com feisty/main Packages

They are not installed.

I have no idea when poppassd was removed. Previously I manually installed it on repo.

Shall I reinstall these packages? How about those old files? Any action to be taken?

TIA

satimis