nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

fail to telnet localhost 106

This is a discussion on fail to telnet localhost 106 within the Mail Servers forums, part of the Mastering Servers category; Hi folks, Ubuntu 7.04 server amd64 On running; $ telnet localhost 106 Code: Trying 127.0.0.1... telnet: Unable to connect to ...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > Mastering Servers > Mail Servers

Linux answers from nixCraft.


Mail Servers Discussion on Postfix/Sendmail Mail servers and related program such as IMAP/POP3, Anti-Spam technologies.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-16-2007, 07:03 PM
Senior Member
User
 
Join Date: Sep 2007
OS: Debian
Posts: 112
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 3
satimis is on a distinguished road
Default fail to telnet localhost 106

Hi folks,


Ubuntu 7.04 server amd64


On running;

$ telnet localhost 106
Code:
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
Code:
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
Reply With Quote
  #2 (permalink)  
Old 12-16-2007, 08:49 PM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 703
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
Default output of netstat -tulpn?

Can you paste output of the following command?
Code:
sudo netstat -tulpn
Are you sure all mail server related services are running? If not start service /etc/init.d/openbsd-inetd service to open port 106:
Code:
sudo /etc/init.d/openbsd-inetd restart
Make sure Iptables is not blocking access:
Code:
sudo iptables -L -n
Try out and let me know
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
  #3 (permalink)  
Old 12-16-2007, 08:58 PM
Senior Member
User
 
Join Date: Sep 2007
OS: Debian
Posts: 112
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 3
satimis is on a distinguished road
Default

Quote:
Originally Posted by rockdalinux View Post
Can you paste output of the following command?
Code:
sudo netstat -tulpn
$ sudo netstat -tulpn
Password:
Code:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Progra
m name   
tcp        0      0 0.0.0.0:20000           0.0.0.0:*               LISTEN     5226/perl  
         
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN     4652/mysqld
         
tcp        0      0 0.0.0.0:8333            0.0.0.0:*               LISTEN     5136/httpd.
vmware   
tcp        0      0 0.0.0.0:10000           0.0.0.0:*               LISTEN     5230/perl  
         
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     5128/apache
2        
tcp        0      0 192.168.213.1:53        0.0.0.0:*               LISTEN     4507/named 
         
tcp        0      0 172.16.77.1:53          0.0.0.0:*               LISTEN     4507/named 
         
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN     5018/proftp
d: (acce 
tcp        0      0 192.168.0.10:53         0.0.0.0:*               LISTEN     4507/named 
         
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN     4507/named 
         
tcp        0      0 192.168.0.10:22         0.0.0.0:*               LISTEN     4941/sshd  
         
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     4569/cupsd 
         
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN     4900/master
         
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN     4507/named 
         
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN     5128/apache
2        
tcp        0      0 0.0.0.0:8222            0.0.0.0:*               LISTEN     5136/httpd.
vmware   
tcp6       0      0 :::993                  :::*                    LISTEN     4761/courie
rtcpd    
tcp6       0      0 :::995                  :::*                    LISTEN     4796/courie
rtcpd    
tcp6       0      0 :::110                  :::*                    LISTEN     4774/courie
rtcpd    
tcp6       0      0 :::143                  :::*                    LISTEN     4741/courie
rtcpd    
tcp6       0      0 :::53                   :::*                    LISTEN     4507/named 
         
tcp6       0      0 :::25                   :::*                    LISTEN     4900/master
         
tcp6       0      0 ::1:953                 :::*                    LISTEN     4507/named 
         
udp        0      0 0.0.0.0:32768           0.0.0.0:*                          4507/named 
         
udp        0      0 0.0.0.0:514             0.0.0.0:*                          4372/syslog
d        
udp        0      0 0.0.0.0:10000           0.0.0.0:*                          5230/perl  
         
udp        0      0 0.0.0.0:20000           0.0.0.0:*                          5226/perl  
         
udp        0      0 192.168.213.1:53        0.0.0.0:*                          4507/named 
         
udp        0      0 172.16.77.1:53          0.0.0.0:*                          4507/named 
         
udp        0      0 192.168.0.10:53         0.0.0.0:*                          4507/named 
         
udp        0      0 127.0.0.1:53            0.0.0.0:*                          4507/named 
         
udp6       0      0 :::32769                :::*                               4507/named 
         
udp6       0      0 :::53                   :::*                               4507/named
Quote:
Are you sure all mail server related services are running? If not start service /etc/init.d/openbsd-inetd service to open port 106:
Code:
sudo /etc/init.d/openbsd-inetd restart
sudo /etc/init.d/openbsd-inetd restart
Code:
sudo: /etc/init.d/openbsd-inetd: command not found
Quote:
Make sure Iptables is not blocking access:
Code:
sudo iptables -L -n
Try out and let me know
~$ sudo iptables -L -n
Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     0    --  0.0.0.0/0            220.232.213.178     state RELATED,ESTABLISHED 
ACCEPT     tcp  --  0.0.0.0/0            220.232.213.178     tcp dpt:22 
ACCEPT     tcp  --  0.0.0.0/0            220.232.213.178     tcp dpt:8222 
ACCEPT     tcp  --  0.0.0.0/0            220.232.213.178     tcp dpt:8333 
ACCEPT     tcp  --  0.0.0.0/0            220.232.213.178     tcp dpt:902 
REJECT     0    --  0.0.0.0/0            220.232.213.178     reject-with icmp-port-unreachable 

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     0    --  220.232.213.178      0.0.0.0/0           state RELATED,ESTABLISHED 
ACCEPT     udp  --  220.232.213.178      0.0.0.0/0           udp dpt:53 
REJECT     0    --  220.232.213.178      0.0.0.0/0           reject-with icmp-port-unreachable
Thanks


satimis
Reply With Quote
  #4 (permalink)  
Old 12-17-2007, 09:49 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
OS: Debian GNU/Linux
Posts: 506
Thanks: 0
Thanked 8 Times in 6 Posts
Rep Power: 7
monk has a spectacular aura about monk has a spectacular aura about
Default

Do you have poppassd installed? I don't think so:
Code:
sudo apt-get install poppassd openbsd-inetd
sudo /etc/init.d/openbsd-inetd restart
Make sure you open port 106
__________________
May the force with you!
Reply With Quote
  #5 (permalink)  
Old 12-17-2007, 11:06 AM
Senior Member
User
 
Join Date: Sep 2007
OS: Debian
Posts: 112
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 3
satimis is on a distinguished road
Default

Quote:
Originally Posted by monk View Post
Do you have poppassd installed? I don't think so:
Code:
sudo apt-get install poppassd openbsd-inetd
sudo /etc/init.d/openbsd-inetd restart
Make sure you open port 106
Thanks for your advice.


Something I can't understand;

$ locate poppassd
Code:
/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
Code:
/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
both poppassd and tcpd are there.


However running;
$ apt-cache policy poppassd
Code:
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
Code:
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 yet.

Do I need to remove them before running;
Code:
sudo apt-get install poppassd openbsd-inetd
sudo /etc/init.d/openbsd-inetd restart
???

Thanks


$ sudo netstat -tulpn | grep 106
Code:
Password:
tcp        0      0 0.0.0.0:106             0.0.0.0:*               LISTEN     5652/inetd
port 106 is open


B.R.
satimis
Reply With Quote
  #6 (permalink)  
Old 12-17-2007, 04:24 PM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 703
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
Default

Hmm not sure, it looks like port is open now. Can you just stop firewall and try it again?
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
  #7 (permalink)  
Old 12-17-2007, 07:17 PM
Senior Member
User
 
Join Date: Sep 2007
OS: Debian
Posts: 112
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 3
satimis is on a distinguished road
Default

Quote:
Originally Posted by rockdalinux View Post
Hmm not sure, it looks like port is open now. Can you just stop firewall and try it again?
$ sudo iptables -F
Code:
Password:
$ telnet localhost 106
Code:
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
Connection closed by foreign host.
$ telnet 192.168.0.10 106
Code:
Trying 192.168.0.10...
Connected to 192.168.0.10.
Escape character is '^]'.
Connection closed by foreign host.
$ sudo netstat -tulpn | grep 106
Code:
tcp        0      0 0.0.0.0:106             0.0.0.0:*               LISTEN     4881/inetd
Situation remains the same.


satimis
Reply With Quote
  #8 (permalink)  
Old 12-17-2007, 11:07 PM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 703
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
Default

To stop iptables you need to provide few more commands:
Code:
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
After all of the above, it should work.
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
  #9 (permalink)  
Old 12-18-2007, 05:16 AM
Senior Member
User
 
Join Date: Sep 2007
OS: Debian
Posts: 112
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 3
satimis is on a distinguished road
Default

Quote:
Originally Posted by rockdalinux View Post
To stop iptables you need to provide few more commands:
Code:
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
After all of the above, it should work.
Thanks for your advice.


Performed following steps;

$ sudo iptables -F
Password:
$ sudo iptables -X
$ sudo iptables -t nat -F
$ sudo iptables -t nat -X
$ sudo iptables -t mangle -F
$ sudo iptables -t mangle -X
$ sudo iptables -P INPUT ACCEPT
$ sudo iptables -P FORWARD ACCEPT
$ sudo iptables -P OUTPUT ACCEPT
all without complaint


$ telnet localhost 106
Code:
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
Connection closed by foreign host.
$ telnet 192.168.0.10 106
Code:
Trying 192.168.0.10...
Connected to 192.168.0.10.
Escape character is '^]'.
Connection closed by foreign host.
Still the same.


B.R.
satimis
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Fail to mount remote NFS server satimis Web servers 0 04-19-2008 08:06 PM
F8 - fail to load amd pata driver satimis CentOS / RHEL / Fedora 0 01-25-2008 11:31 AM
Telnet Problem kasimani Databases servers 3 03-05-2007 07:02 PM
Server monitoring (samba,NFS,telnet,ssh,ftp) warren Linux software 11 06-26-2006 07:10 PM
Login fail message ricc Shell scripting 4 08-13-2005 12:43 AM


All times are GMT +5.5. The time now is 10:09 PM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38