Visit Our UNIX and Linux User Community


ports


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers ports
# 1  
Old 10-25-2001
ports

how can i check to see if my mail ports are open (port 110 for incoming and 25 for outgoing)? I want to do this because i am having a problem sending email out. If one of the ports has a problem, how can i open it? Thanks in advance!
# 2  
Old 10-25-2001
Try telneting to those ports and see if you get any responses. If the daemons are there, you should get some kind of response.
# 3  
Old 10-25-2001
how do you do it? is it xxx.xxx.xxx.xxx:25
# 4  
Old 10-26-2001
Try

netstat -a | more

ur gonna see all the ports on your host,
those ones with LISTENT are currently with open connection and waiting for client to connect. ESTABLISHED then connection is established. Do "man netstat", you're gonna get lots of useful info.

Regards
Smilie
# 5  
Old 10-26-2001
djatwork has raised a very interesting problem here. Is it true that you need port 110(POP3) to be open for sending email out ??
I can send email out fine but when I check my port 110 is not open. The problem I have is that I can not receive email at all or can not send email locally (between my users).

Here is what I get using the netstat command :

<pre>

% netstat -a |grep 25
*.1225 Idle
isgsi01.32925 isgsi01.32917 32768 0 32768 0 ESTABLISHED
isgsi01.32917 isgsi01.32925 32768 0 32768 0 ESTABLISHED

% netstat -a |grep 110
isgsi01.1521 10.153.6.198.1108 16210 0 8760 0 ESTABLISHED

% netstat -a |grep mail
%
I get nothing here.

</pre>

It seems like I get nothing relevant here about ports 25 and 110. I still can send email out to the outside world, any ideas at all please guys?

Also trying the 'newaliases' command I get :

<pre>

% newaliases
WARNING: World writable directory /var
WARNING: World writable directory /etc
dbm map "Alias0": unsafe map file /etc/mail/aliases: No such file or directory
Cannot create database for alias file /etc/mail/aliases

</pre>

Anyone played around with sendmail before?

Any help will be appreciated.
Thanks
# 6  
Old 10-26-2001
No, you do not need port 110 "open" to send mail. If you are operating a POP3 server process normally listens on port 110. However, you do not need a POP3 server to send mail.

You do not need port 25 "open" to send mail. If you are receiving mail an SMTP server process normally listens on port 25. However, you do not need an SMTP listening process to send mail (only receive).
# 7  
Old 10-26-2001
Quote:
WARNING: World writable directory /etc
uhm... that's not good...
You (or your admin) should change that. Since Unix will check the directory permissions first, it may be possible for you to clobber a file... example:
( I almost put in something to do with /etc/passwd or /etc/shadow, but decided against it... don't want to contribute TOO much to delinquency...)

Code:
$ cd /etc
$ cat > resolv.conf.me
#Haha! I'm so evul! Now you can't resolve anything!
^D
$ mv resolv.conf.me resolv.conf

Like I said above, anything in /etc or /var can be overwritten... That's bad news.
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #321
Difficulty: Medium
DHCP stands for Dynamic Host Configuration Port.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Ports

** forum admins: Before you come down on my like a wrath of something, I can get no decent answers so I have to come to these Gurus' court *** I am by no means Unix expert. However, none of our unix admin (aix & hpux) can give me an answer that makes sense. My Issue: Assigned ports in 8601,... (7 Replies)
Discussion started by: rsheikh
7 Replies

2. UNIX for Dummies Questions & Answers

ports

When the netstat -an command is run on current unix machine, it seems that there's an excessive amount of ports established (roughly 600). How can I tell what each of these ports are being used for? (1 Reply)
Discussion started by: lastchance551
1 Replies

3. Solaris

ports

Hi, If for example i try to start tomcat in a solaris server and get errors related to address already in use, how can I know if this port is really used for another process? If someone can point any documentation it will be very helpfull. Thanks! :rolleyes: (9 Replies)
Discussion started by: ffpradella
9 Replies

4. Solaris

regarding ports

Hi , I need one help... Is there any command on solaris 10 to free the ports. For e.g I used netstat -na| grep 8080 it displays either it is listening or established.. i want to free the ports... Anyone please help me on this... Thanks, Shanmuga (2 Replies)
Discussion started by: shanshine
2 Replies

5. HP-UX

Ports

Can any one tell the command for which process are running on a perticular port (1 Reply)
Discussion started by: zsujith
1 Replies

6. UNIX for Dummies Questions & Answers

Ports...

Hello UNIX people... This is my first foray into the UNIX world so go easy on me... I have a client who has hired me to do some work on his windows stuff, BUT it just so happens his UNIX server started giving him problems... He is running SCO Open Server 5.0.6 The TTY ports won't... (5 Replies)
Discussion started by: TechKnow
5 Replies

7. IP Networking

Ports

What are some good sites that list all TPC/UDP ports? ~thanks (3 Replies)
Discussion started by: ireeneek
3 Replies

8. IP Networking

ports???

Ok, I've been working in the IT field for about 3 years now and I never fully understood the concept of ip ports. I just started a new job that uses Solaris and today it kinda clicked in my head and I want to know if I'm right or wrong. Does each ip address have multiple ports. because we... (4 Replies)
Discussion started by: eloquent99
4 Replies

9. UNIX for Dummies Questions & Answers

Ports

I know i can look in the /etc/services file to look at referenced port numbers, but is there a command that will list the current ports being used? (i.e. what is the application does not have an entry in the services files :confused: ) (2 Replies)
Discussion started by: Ralf
2 Replies

10. UNIX for Dummies Questions & Answers

Ports

How To Close ports,for example finger port 79?? :confused: :confused: :confused: 10x (6 Replies)
Discussion started by: Yaki
6 Replies

Featured Tech Videos