LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS
User Name
Password
MEPIS This forum is for the discussion of MEPIS Linux.

Notices


Reply
  Search this Thread
Old 08-26-2008, 04:52 PM   #1
rastavideo
Member
 
Registered: Jan 2003
Location: Texas
Distribution: Ubuntu
Posts: 66

Rep: Reputation: 15
how do I check ports 25 and 110?


How do I check to see if ports 25 [pop] and 110 [smtp] are open and listening? Suddenly have no email connectivity on my machine -- Thunderbird times out trying to connect to the ISP email server. Clueless ISP couldn't help.

thx
 
Old 08-26-2008, 06:41 PM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Blog Entries: 2

Rep: Reputation: 68
If you have root access to the pop/smtp server, run "netstat -tlpn" and check if the ports 25 and 110 are listed in the netstat output.

If you don't have access, (the server are in a ISP or whatever) you can use a network scanner like nmap: "nmap -p 25,110 ip_email_server".
 
Old 08-26-2008, 08:09 PM   #3
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Last I checked, netstat does not require privileged access to run.
 
Old 08-26-2008, 08:23 PM   #4
twlilinux
Member
 
Registered: Jan 2006
Distribution: debian
Posts: 63

Rep: Reputation: 15
when I run netstat -lnp as a normal user, it returns everything except PID/Program name (as root, it returns everything). I'm using Debian, may be other distros are different.
 
Old 08-26-2008, 09:47 PM   #5
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Ok, good to know.
 
Old 08-27-2008, 06:19 AM   #6
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Blog Entries: 2

Rep: Reputation: 68
...yes, the netstat's "program listing" option requires root access
anyway, did you figure out why you don't get your e-mails ?
if netstat shows the ports in listing state and the associated programs are fine, but the nmap does not shown the ports 25 and 110 in open state, then a firewall may be the problem. This firewall could be between the 2 machines or even running on the e-mail server.
 
Old 08-27-2008, 02:45 PM   #7
rastavideo
Member
 
Registered: Jan 2003
Location: Texas
Distribution: Ubuntu
Posts: 66

Original Poster
Rep: Reputation: 15
Got the email to send and receive again by using the network assistant to stop then restart the network.

But shouldn;t netstat show the ports 25 and 110?

Output of netstat as root [ FYI: same output as user ] :

root@1[nuvu]# netstat -tlpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN 4169/hpiod
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 4285/smbd
tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN 28501/cupsd
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 4285/smbd
tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN 4186/python
tcp6 0 0 :::631 :::* LISTEN 28501/cupsd
tcp6 0 0 ::1:4539 :::* LISTEN 6103/java
tcp6 0 0 :::24444 :::* LISTEN 6103/java

thanks for the help!
 
Old 08-27-2008, 02:58 PM   #8
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Blog Entries: 2

Rep: Reputation: 68
The ports must be showed as open on the machine where the e-mail server is running, not at client machine.

Is "nuvu" the SMTP/POP server or just a workstation where you are reading/sending e-mails ? If it is just a workstation, a client, then there is no SMTP/POP programs running as servers.
 
Old 08-27-2008, 04:02 PM   #9
rastavideo
Member
 
Registered: Jan 2003
Location: Texas
Distribution: Ubuntu
Posts: 66

Original Poster
Rep: Reputation: 15
nuvu is a directory on my workstation. What would I use to find out what ports are open on a workstation not acting as server?
 
Old 08-30-2008, 12:52 PM   #10
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Blog Entries: 2

Rep: Reputation: 68
I´m sorry, I missed your last post....

netstat is the program to inspect what ports are open in your computer as you did in a previous post.
When your computer start a conetion with a remove server on port 25 to send e-mails or to ports 110/143 to get e-mail using POP/IMAP protocols, it uses a temporary, randomic local port. Your firewall keeps tracks of this port and when the server answer to that port the firewall allows the communication, even this local port is not configured in anywhere.

Are you behinf a wireless router, or another firewall ?
May be other device is blocking you.....
 
  


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
Cannot Open Mail Server Ports 25, 110, and 220. Other Ports will open. Binxter Linux - Newbie 9 11-29-2007 02:03 AM
How to open ports 25 and port 110 on proxy server SQUID? fdavid Linux - Newbie 1 03-16-2005 11:31 PM
(HelpMe!!!) Cant telnet ports(25&110) vgulch Linux - Software 7 11-30-2004 07:24 AM
Can't close ports 25 and 110 CoVeNaNt_ReIn Linux - Security 6 08-27-2004 05:16 AM
iptables -> Having a problem just allowing ports 25,110,22 ForumKid Linux - Security 6 01-03-2002 10:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS

All times are GMT -5. The time now is 01:56 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