LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   fail to telnet localhost 106 (https://www.linuxquestions.org/questions/linux-server-73/fail-to-telnet-localhost-106-a-607108/)

satimis 12-16-2007 08:03 AM

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. confirmed with ISP port 106 is open


B.R.
satimis

acid_kewpie 12-16-2007 08:06 AM

isp? what has your isp got to do with a localhost connection? what are you even using port 106 for? there is clearly nothing listening on it so i've no idea what you're expecting to happen... maybe you still need to read up on what a tcp actually is and how they function within the linux tcp/ip stack?

satimis 12-16-2007 08:20 AM

Quote:

Originally Posted by acid_kewpie (Post 2992168)
isp? what has your isp got to do with a localhost connection? what are you even using port 106 for? there is clearly nothing listening on it so i've no idea what you're expecting to happen... maybe you still need to read up on what a tcp actually is and how they function within the linux tcp/ip stack?

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.

satimis

digen 12-16-2007 08:39 AM

You need to start the courierpassd daemon. Check the /etc/xinetd.d directory for a configuration file for courierpassd.

satimis 12-16-2007 08:58 AM

Quote:

Originally Posted by digen (Post 2992192)
You need to start the courierpassd daemon. Check the /etc/xinetd.d directory for a configuration file for courierpassd.

I have this problem after running;

$ sudo apt-get remove xinetd


Remark: have "netkit-inetd" reinstalled.


Before I have another problem when xinetd was running;
Code:

$ 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

acid_kewpie 12-16-2007 11:58 AM

this is where your 2,500 posts of troubleshooting experience comes in... what does the logfile say? what if you run it in a foreground mode instead of through (x)inetd?

satimis 12-16-2007 12:31 PM

Quote:

Originally Posted by acid_kewpie
what does the logfile say?

$ telnet localhost 16
Code:

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


$ tail /var/log/mail.log
Code:

Dec 17 02:15:33 mail imapd: LOGOUT, user=satimis, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=491, sent=1035, time=0
Dec 17 02:25:33 mail imapd: Connection, ip=[::ffff:127.0.0.1]
Dec 17 02:25:33 mail imapd: LOGIN, user=satimis, ip=[::ffff:127.0.0.1], protocol=IMAP
Dec 17 02:25:33 mail imapd: LOGOUT, user=satimis, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=491, sent=1035, time=0
Dec 17 02:28:46 mail postfix/smtpd[6046]: warning: 76.187.204.174: hostname cpe-76-187-204-174.tx.res.rr.com verification failed: Name or service not known
Dec 17 02:28:46 mail postfix/smtpd[6046]: connect from unknown[76.187.204.174]
Dec 17 02:28:48 mail postfix/smtpd[6046]: warning: support for restriction "reject_maps_rbl" will be removed from Postfix; use "reject_rbl_client domain-name" instead
Dec 17 02:28:48 mail postfix/smtpd[6046]: NOQUEUE: reject: RCPT from unknown[76.187.204.174]: 554 5.7.1 Service unavailable; Client host [76.187.204.174] blocked using bl.spamcop.net; Blocked - see http://www.spamcop.net/bl.shtml?76.187.204.174; from=<seisin@gdzilla.com> to=<satimis@satimis.com> proto=SMTP helo=<mhrdbc>
Dec 17 02:28:48 mail postfix/smtpd[6046]: lost connection after RCPT from unknown[76.187.204.174]
Dec 17 02:28:48 mail postfix/smtpd[6046]: disconnect from unknown[76.187.204.174]


Quote:

what if you run it in a foreground mode instead of through (x)inetd?
Started SM with;
https://localhost/squirrelmail

login and change password. It popup a warning;
Code:

ERROR:Connection refused (111)

acid_kewpie 12-16-2007 12:53 PM

ok, well that's the wrong log, or you've not set the poppassd daemon to log. and running squirellmail isn't runnign poppassd in a foreground mode in any way. note that (x)inetd opens the tcp socjet regardless of the successful invocation of the backend process, so an incorrect config on inetd will still give you that open connection, and then close it whn your config fails.


All times are GMT -5. The time now is 10:10 PM.