LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-25-2004, 02:38 AM   #1
jgnasser
Member
 
Registered: Feb 2004
Location: Kenya
Distribution: Red Hat
Posts: 57

Rep: Reputation: 15
Connection refused error for port 25


I have just installed RH Linux 7.3 and trying to get services working. I have a problem with the email. When I telnet the server port 25 (using its IP) I get a connection refused error. However, I can successfully connect to port 110. However, when I telnet localhost port 25 it works ok. What could be the problem? Seems port 25 is locked, how do I unlock it?

I also got a similar message when I try to access apache webserver on localhost using mozilla or from other hosts using IE.

Help appreciated.
 
Old 08-25-2004, 03:22 AM   #2
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
On linux 0-1024 are relegated to system services only. Nothing like a separate http server should be there- webmin for example. If it's blocked for a mailserver service at 25, then the service isn't allowing connections due to misconfiguration or a firewall ruleset defaults is blocking it- and it is, unless you specified that when you installed. Redhat asks to allow those services on install as I recall, due to their firewall setup.
 
Old 08-25-2004, 05:17 AM   #3
jgnasser
Member
 
Registered: Feb 2004
Location: Kenya
Distribution: Red Hat
Posts: 57

Original Poster
Rep: Reputation: 15
Yes I got apache to work by ensuring the httpd service is running. However the mail service is still not
accepting connections. So my question then is how to get the service running. Should there be a separate
service in xinetd.d?

Does the fact that using "telnet 192.168.0.5 25" and "telnet localhost 25" makes a difference (latter works) show
that its a problem with network configuration?
 
Old 08-25-2004, 07:09 AM   #4
jgnasser
Member
 
Registered: Feb 2004
Location: Kenya
Distribution: Red Hat
Posts: 57

Original Poster
Rep: Reputation: 15
I found an answer to this. Sendmail was only listening on 127.0.0.1 so when I changed that in sendmail.cf, I was able to connect to port 25.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Squid - Connection refused on port 3128 Deep13 Linux - Software 12 12-02-2009 03:49 AM
port 25 connection refused even from localhost?? Ed1952 Red Hat 2 11-15-2005 08:24 AM
SSH port...Connection....refused?? Miyamoto Mandriva 6 08-26-2003 04:03 PM
port 22: connection refused lkalman Linux - Networking 13 06-17-2003 07:55 PM
Connection Refused on port 9240 Rustiy Linux - Networking 2 04-22-2003 09:48 AM

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

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration