MEPIS This forum is for the discussion of MEPIS Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-26-2008, 04:52 PM
|
#1
|
Member
Registered: Jan 2003
Location: Texas
Distribution: Ubuntu
Posts: 66
Rep:
|
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
|
|
|
08-26-2008, 06:41 PM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Rep:
|
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".
|
|
|
08-26-2008, 08:09 PM
|
#3
|
Senior Member
Registered: Jun 2008
Posts: 2,529
Rep:
|
Last I checked, netstat does not require privileged access to run.
|
|
|
08-26-2008, 08:23 PM
|
#4
|
Member
Registered: Jan 2006
Distribution: debian
Posts: 63
Rep:
|
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.
|
|
|
08-26-2008, 09:47 PM
|
#5
|
Senior Member
Registered: Jun 2008
Posts: 2,529
Rep:
|
Ok, good to know.
|
|
|
08-27-2008, 06:19 AM
|
#6
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Rep:
|
...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.
|
|
|
08-27-2008, 02:45 PM
|
#7
|
Member
Registered: Jan 2003
Location: Texas
Distribution: Ubuntu
Posts: 66
Original Poster
Rep:
|
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!
|
|
|
08-27-2008, 02:58 PM
|
#8
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Rep:
|
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.
|
|
|
08-27-2008, 04:02 PM
|
#9
|
Member
Registered: Jan 2003
Location: Texas
Distribution: Ubuntu
Posts: 66
Original Poster
Rep:
|
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?
|
|
|
08-30-2008, 12:52 PM
|
#10
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Rep:
|
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.....
|
|
|
All times are GMT -5. The time now is 01:56 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|