LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-08-2006, 08:25 PM   #1
thunderkt
LQ Newbie
 
Registered: May 2003
Posts: 11

Rep: Reputation: 0
Port 25 Does not work?


Dear All

My Linux PC port 25 is failed even I have start my "sendmail". When I telnet to port 25 using
... telnet localhost 25
... telnet ip_address 25

it also says me connection failed!

why this problem occur?
 
Old 03-08-2006, 08:28 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Do you have a firewall in place? Many times a firewall will block this port by default.
 
Old 03-08-2006, 08:48 PM   #3
thunderkt
LQ Newbie
 
Registered: May 2003
Posts: 11

Original Poster
Rep: Reputation: 0
May be it is blocked by ISP's firewall.... I am checking with it.
 
Old 03-08-2006, 08:53 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Try going to www.auditmypc.com and seeing if it shows your ports open or closed.
 
Old 03-08-2006, 08:54 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Excuse the title of this thread...
 
Old 03-08-2006, 09:05 PM   #6
thunderkt
LQ Newbie
 
Registered: May 2003
Posts: 11

Original Poster
Rep: Reputation: 0
[root@host01 log]# telnet localhost 25
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
[root@host01 log]# telnet 127.0.0.1 25
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
[root@host01 log]#


Does the telnet of localhost related to firewall?
 
Old 03-08-2006, 09:11 PM   #7
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
It can be related to the firewall on your desktop. Your firewall might block localhost access to port 25. Don't know....
 
Old 03-08-2006, 09:31 PM   #8
thunderkt
LQ Newbie
 
Registered: May 2003
Posts: 11

Original Poster
Rep: Reputation: 0
This is a problem from the server.
However, the following is the screen captured from the server:
[root@host01 log]# netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:mysql *:* LISTEN
tcp 0 0 localhost.localdoma:783 *:* LISTEN
tcp 0 0 *:http *:* LISTEN
tcp 0 0 *:4755 *:* LISTEN
tcp 0 0 localhost.locald:domain *:* LISTEN
tcp 0 0 *:ftp *:* LISTEN
tcp 0 0 *:smtp *:* LISTEN
tcp 0 0 localhost.localdom:rndc *:* LISTEN
tcp 0 0 *:https *:* LISTEN
udp 0 0 *:56323 *:*
udp 0 0 *:683 *:*
udp 0 0 localhost.locald:domain *:*
raw 0 0 *:icmp *:*

see from the above screen, :smtp service is listened and running.
also, the servers are located at data center. but my other server in the data center can telnet to port 25.... so strange.
 
Old 03-08-2006, 09:32 PM   #9
thunderkt
LQ Newbie
 
Registered: May 2003
Posts: 11

Original Poster
Rep: Reputation: 0
what can I have to do further to let it worked?
 
Old 03-08-2006, 09:35 PM   #10
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Could your sendmail have failed to start properly? Are you able to send email? if you can send mail have you tried to port scan your locahost with nmap -sV -p 25 localhost

Last edited by gilead; 03-08-2006 at 09:38 PM.
 
Old 03-08-2006, 09:46 PM   #11
thunderkt
LQ Newbie
 
Registered: May 2003
Posts: 11

Original Poster
Rep: Reputation: 0
[root@host01 log]# nmap -p 25 localhost

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
The 1 scanned port on localhost.localdomain (127.0.0.1) is: closed

Nmap run completed -- 1 IP address (1 host up) scanned in 0 seconds
 
Old 03-08-2006, 09:46 PM   #12
thunderkt
LQ Newbie
 
Registered: May 2003
Posts: 11

Original Poster
Rep: Reputation: 0
[root@host01 log]# nmap -p 25 localhost

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
The 1 scanned port on localhost.localdomain (127.0.0.1) is: closed

Nmap run completed -- 1 IP address (1 host up) scanned in 0 seconds
[root@host01 log]# service sendmail status
sendmail (pid 15801 15611 15603 15602) is running...
[root@host01 log]# service sendmail status
 
Old 03-08-2006, 09:47 PM   #13
thunderkt
LQ Newbie
 
Registered: May 2003
Posts: 11

Original Poster
Rep: Reputation: 0
[root@host01 log]# nmap -p 25 localhost

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
The 1 scanned port on localhost.localdomain (127.0.0.1) is: closed

Nmap run completed -- 1 IP address (1 host up) scanned in 0 seconds
[root@host01 log]# service sendmail status
sendmail (pid 15801 15611 15603 15602) is running...
[root@host01 log]# service sendmail status
sendmail (pid 15801 15611 15603 15602) is running...
[root@host01 log]# service sendmail restart
Shutting down sendmail: [ OK ]
Shutting down sm-client: [ OK ]
Starting sendmail: [ OK ]
Starting sm-client: [ OK ]
[root@host01 log]# nmap -p 25 localhost

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
The 1 scanned port on localhost.localdomain (127.0.0.1) is: closed

Nmap run completed -- 1 IP address (1 host up) scanned in 0 seconds
[root@host01 log]#
 
Old 03-08-2006, 10:10 PM   #14
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It looks as though sendmail is starting up OK but the port is still closed. If you're using iptables for your firewall, can you post the output of iptables -L -v please?
 
Old 03-08-2006, 10:23 PM   #15
thunderkt
LQ Newbie
 
Registered: May 2003
Posts: 11

Original Poster
Rep: Reputation: 0
[root@host01 log]# iptables -L -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
[root@host01 log]#
 
  


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
Openning a port...doesn't work?! vous Linux - Networking 10 04-10-2005 12:29 AM
Port Forwarding does NOT work! The Pentium Guy Linux - Networking 4 10-31-2004 08:40 PM
Port forwarding does not work! philipina Linux - Networking 2 03-03-2004 03:15 AM
vsftpd won't work with port 21 corpus_delicti Linux - Networking 5 10-14-2003 04:37 PM
getting serial port to work with c jonfa Programming 1 07-29-2002 02:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:28 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
Open Source Consulting | Domain Registration