LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-20-2004, 03:15 PM   #1
turbo_acura
Member
 
Registered: Sep 2004
Location: London, UK
Posts: 95

Rep: Reputation: 15
telnet connection refused


I've just installed Slackware 10. I wanted to install sendmail from scratch and when i try 'telnet localhost 25'. It says:

Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused


I'm trying this to make sure sendmail is up and running. I added 'sendmail: ALL' to /etc/hosts.allow, i've uncommented telnet from /etc/inetd.conf and restarted inetd 'pkill -HUP inetd'. It still didn't work so i rebooted just to make sure and it still won't work. I've seen some other posts about possibly ipchains and flushing the records, but I can't see if its installed though, i tried 'find / -name ipchains'. I do know that iptables is installed but not sure if that has any effect on this problem. I don't have to get this working, I just thought this might be a requirement for sendmail to run properly. Which reminds me, when i try '/usr/sbin/sendmail start', it doesn't go back to a prompt, so I tried '/usr/sbin/sendmail &' and I"m not so sure that worked cuz the process is running, but its not set to 'accept incoming connections'. Any help at all is a step in the right direction I can try.

Thanks!
 
Old 11-20-2004, 03:38 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Perhaps it is only listening to the loopback - can you post the output from:
netstat -nlp
 
Old 11-20-2004, 03:43 PM   #3
turbo_acura
Member
 
Registered: Sep 2004
Location: London, UK
Posts: 95

Original Poster
Rep: Reputation: 15
here's one example of the output, they're all basically the same...

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 123/inetd


All the tcp ports are set to LISTEN. Let me know if you need any more info.
 
Old 11-20-2004, 03:48 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I know they are all basically the same but they are all different.
 
Old 11-20-2004, 03:58 PM   #5
turbo_acura
Member
 
Registered: Sep 2004
Location: London, UK
Posts: 95

Original Poster
Rep: Reputation: 15
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:37 0.0.0.0:* LISTEN 123/inetd
tcp 0 0 0.0.0.0:113 0.0.0.0:* LISTEN 123/inetd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 126/sshd
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 123/inetd
udp 0 0 0.0.0.0:512 0.0.0.0:* 123/inetd
udp 0 0 0.0.0.0:37 0.0.0.0:* 123/inetd
udp 0 0 0.0.0.0:68 0.0.0.0:* 97/dhcpcd
 
Old 11-20-2004, 03:59 PM   #6
turbo_acura
Member
 
Registered: Sep 2004
Location: London, UK
Posts: 95

Original Poster
Rep: Reputation: 15
the table didnt come out right..formatting is out of whack..u should be able to follow it though
 
Old 11-21-2004, 07:42 AM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
That shows that there is nothing listening on port 25. Try starting sendmail with:
chmod 755 /etc/rc.d/rc.sendmail
/etc/rc.d/rc.sendmail start
 
Old 11-21-2004, 07:56 AM   #8
turbo_acura
Member
 
Registered: Sep 2004
Location: London, UK
Posts: 95

Original Poster
Rep: Reputation: 15
YOUR THE MAN! Thanks a lot for that. Its now showing its listening on Port 25 when I do a netstat. I'm not clear on what that did. I know it changed the attributes of the rc.sendmail script, but I don't see how that connects with having it start to listen on port 25??

thanks again...cheers!
 
Old 11-21-2004, 09:07 AM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If you look at the startup scripts for slack - mainly rc.M - they check to see if the script it execuable, if it is then the script is run and the service started, if it is not executable then the script is just ignored.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
telnet connection refused Marcusj2 Linux - Networking 22 09-07-2006 10:35 PM
telnet connection refused hcmk Linux - Networking 13 09-02-2006 02:31 PM
Telnet connection refused naveenpn Linux - Networking 2 02-17-2004 07:16 AM
telnet: Connection refused hnash53 Linux - Networking 2 01-23-2004 02:12 PM
Telnet: Connection Refused Erice60rng Linux - Security 7 01-20-2003 06:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration