fail to telnet localhost 106

Hi folks,

Ubuntu 7.04 server amd64

On running;

$ telnet localhost 106

Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

$ netstat -an | grep 106
$ sudo netstat -an | grep 106
both no printout

Pls advise where shall I check and how to fix the problem. TIA

P.S.
1)
confirmed with ISP port 106 is open

2)
I'm adding "change password" plugin on SquirrelMail. After installing poppassd on repo I tested it whether works according to /usr/local/squirrelmail/www/plugins/change_pass/INSTALL

Be sure to test and make certain your poppass daemon is working properly.
To test, try telneting into the daemon and changing a password:

$ telnet localhost 106
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
200 poppassd v1.8.1 hello, who are you?
user <username>
200 Your password please.
pass <oldpassword>
200 Your new password please.
newpass <newpassword>
200 Password changed, thank-you.
quit
200 Bye.
Connection closed by foreign host.

B.R.
satimis

It seems that you poppass daemon is not started, or not installed. Make sure that you have all the dependencies for the plugin installed, including the poppass(d) package for your underlying mail server.

For eample fout courier:

#apt-cache search courierpassd
courierpassd - Change courier user passwords using poppassd interface

I have this package installed;

$ apt-cache policy courierpassd

courierpassd:
  Installed: 1.1.2-1
  Candidate: 1.1.2-1
  Version table:
 *** 1.1.2-1 0
        500 http://us.archive.ubuntu.com feisty/universe Packages
        100 /var/lib/dpkg/status

The problem is caused after removeing xinitd.

$ sudo apt-get remove xinetd

Remark: have "netkit-inetd" reinstalled.

Before I have another problem when xinetd was running;

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

I can't proceed further. Please help

satimis

try reconfiguring the poppassd package

sudo dpkg-reconfigure courierpassd

You would need to go through all the services that were previously managed by xinetd, check if they are still needed and support them by some other mechanism, or reenable xinetd.

What was the problem with xinetd?

There is no problem having both xinetd and inetd active as long as they are each managing different ports/services.

$ sudo dpkg-reconfigure courierpassd
No response

satimis

I failed to make "change password" work on SM. Therefore I removed xinetd to check whether it is its problem. I did not find problem on running xinetd other thand "change password" on SM. I can reinstall this package.

satimis

Have you tried to connect again?

If the package is aware of the *inetd running, it may have added a configuration to work with that package now that it is installed.

Sorry, I'm not very clear whether "that package" meant xinetd? I haven't reinstalled it yet.

On starting SM with "localhost/squirrelmail'

Options - > Change Password

old passwd/new passwd/reconfirm new passwd

it popup "ERROR:Connection refused (111)"

satimis

I think reborg thinks it may detect netkit-inetd.

$ telnet localhost 106

Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

Still the same.

$ apt-cache policy netkit-inetd

netkit-inetd:
  Installed: 0.10-10.3ubuntu4
  Candidate: 0.10-10.3ubuntu4
  Version table:
 *** 0.10-10.3ubuntu4 0
        500 http://us.archive.ubuntu.com feisty/universe Packages
        100 /var/lib/dpkg/status

satimis

Porter was rightm there was a possibility that the package might have been built to detect the inetd in use.

Have you added the appropriate configuration to /etc/inetd.conf ?

I haven't added anything manually on /etc/inetd.conf.

$ cat /etc/inetd.conf

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

I manually added following line;

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

at the bottom of /etc/xinetd.conf

now it has been commented out.

satimis

If you are using netkit-inetd the you need to add:

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

to /etc/inetd.conf assuming you are actually using tcp wappers.

If you are using xinted, you don't add any configuration to xinetd.conf, you create a control file in /etc/xinetd.d (I think that is the correct directory, but since I don't have it I cannot check).

Edit /etc/inetd.conf
adding following line on the file;

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.

It comes back to the original problem before deleting xinetd.

I already deleted xinetd. I won't use it unless necessary.

B.R.
satimis

Note that it said "Connection closed" not "Connection refused".

Does netstat say anyone is listening on 106?

netstat -an | grep LISTEN

Also try without tcp wrappers first:

poppassd stream tcp nowait root /usr/sbin/poppassd in.poppassd

$ sudo netstat -an | grep LISTEN

Password:
tcp        0      0 0.0.0.0:20000           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:106             0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:8333            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:10000           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN     
tcp        0      0 192.168.0.10:53         0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN     
tcp        0      0 192.168.0.10:22         0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:8222            0.0.0.0:*               LISTEN     
tcp6       0      0 :::993                  :::*                    LISTEN     
tcp6       0      0 :::995                  :::*                    LISTEN     
tcp6       0      0 :::110                  :::*                    LISTEN     
tcp6       0      0 :::143                  :::*                    LISTEN     
tcp6       0      0 :::53                   :::*                    LISTEN     
tcp6       0      0 :::25                   :::*                    LISTEN     
tcp6       0      0 ::1:953                 :::*                    LISTEN     
unix  2      [ ACC ]     STREAM     LISTENING     16523    /tmp/.font-unix/fs710
0
unix  2      [ ACC ]     STREAM     LISTENING     17107    /tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     17213    /tmp/scim-socket-fron
tend-satimis
unix  2      [ ACC ]     STREAM     LISTENING     17232    /tmp/scim-helper-mana
ger-socket-satimis
unix  2      [ ACC ]     STREAM     LISTENING     17236    /tmp/scim-panel-socke
t:0-satimis
unix  2      [ ACC ]     STREAM     LISTENING     14504    @/var/run/hald/dbus-B
dDEyHDCHn
unix  2      [ ACC ]     STREAM     LISTENING     16673    /var/run/vmnat.5114
unix  2      [ ACC ]     STREAM     LISTENING     16359    public/cleanup
unix  2      [ ACC ]     STREAM     LISTENING     16366    private/tlsmgr
unix  2      [ ACC ]     STREAM     LISTENING     16704    /var/run/vmware/root/
5119/server-fd
unix  2      [ ACC ]     STREAM     LISTENING     16370    private/rewrite
unix  2      [ ACC ]     STREAM     LISTENING     16374    private/bounce
unix  2      [ ACC ]     STREAM     LISTENING     16706    /var/run/vmware/root/
5119/vmx-fd
unix  2      [ ACC ]     STREAM     LISTENING     16378    private/defer
unix  2      [ ACC ]     STREAM     LISTENING     16382    private/trace
unix  2      [ ACC ]     STREAM     LISTENING     16708    /var/run/vmware/root/
5119/server-vcvmdb-fd
unix  2      [ ACC ]     STREAM     LISTENING     16386    private/verify
unix  2      [ ACC ]     STREAM     LISTENING     16390    public/flush
unix  2      [ ACC ]     STREAM     LISTENING     16710    /var/run/vmware/root/
5119/server-vmdb-fd
unix  2      [ ACC ]     STREAM     LISTENING     16394    private/proxymap
unix  2      [ ACC ]     STREAM     LISTENING     16398    private/smtp
unix  2      [ ACC ]     STREAM     LISTENING     16712    /var/run/vmware/root/
5119/server-vmxvmdb-fd
unix  2      [ ACC ]     STREAM     LISTENING     16402    private/relay
unix  2      [ ACC ]     STREAM     LISTENING     14505    @/var/run/hald/dbus-g
t3yconfNt
unix  2      [ ACC ]     STREAM     LISTENING     16406    public/showq
unix  2      [ ACC ]     STREAM     LISTENING     16714    /var/run/vmware/root/
5119/nfc-fd
unix  2      [ ACC ]     STREAM     LISTENING     16410    private/error
unix  2      [ ACC ]     STREAM     LISTENING     16414    private/discard
unix  2      [ ACC ]     STREAM     LISTENING     16716    /var/run/vmware/root/
5119/fsserver-fd
unix  2      [ ACC ]     STREAM     LISTENING     16418    private/local
unix  2      [ ACC ]     STREAM     LISTENING     16422    private/virtual
unix  2      [ ACC ]     STREAM     LISTENING     16426    private/lmtp
unix  2      [ ACC ]     STREAM     LISTENING     16430    private/anvil
unix  2      [ ACC ]     STREAM     LISTENING     16434    private/scache
unix  2      [ ACC ]     STREAM     LISTENING     16438    private/maildrop
unix  2      [ ACC ]     STREAM     LISTENING     16442    private/uucp
unix  2      [ ACC ]     STREAM     LISTENING     16446    private/ifmail
unix  2      [ ACC ]     STREAM     LISTENING     16450    private/bsmtp
unix  2      [ ACC ]     STREAM     LISTENING     16454    private/scalemail-bac
kend
unix  2      [ ACC ]     STREAM     LISTENING     16458    private/mailman
unix  2      [ ACC ]     STREAM     LISTENING     16490    /var/spool/postfix/va
r/run/saslauthd/mux
unix  2      [ ACC ]     STREAM     LISTENING     15755    /var/run/cups/cups.so
ck
unix  2      [ ACC ]     STREAM     LISTENING     16012    /var/run/courier/auth
daemon/socket.tmp
unix  2      [ ACC ]     STREAM     LISTENING     14486    /var/run/dbus/system_
bus_socket
unix  2      [ ACC ]     STREAM     LISTENING     16575    /var/run/proftpd/prof
tpd.sock
unix  2      [ ACC ]     STREAM     LISTENING     15841    /var/run/mysqld/mysql
d.sock

Yup, something's there. All you need to find out is what it is.

Is there anything in the syslog?

Can you confirm you can execute the command line indicated in /etc/inetd.conf for port 106 from the command prompt?

Sorry I don't follow.

$ cat /etc/pam.d/poppassd

#
# The PAM configuration file for the `poppassd' daemon
#

@include common-auth
@include common-password

Whether putting the line

poppassd stream tcp nowait root /usr/sbin/poppassd

on the file /etc/pam.d/poppassd ?

Performed following steps;
$ cat /etc/inetd.conf

poppassd stream tcp nowait root /usr/sbin/poppassd

$ sudo nano /etc/inetd.conf

satimis@mail:~$ 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.

same result

satimis