1832593 Members
2790 Online
110043 Solutions
New Discussion

Port 25

 
SOLVED
Go to solution
Gary Yu
Super Advisor

Port 25

Hi experts,

I'm configuring one of my HPUX box(host1) to send out mails(within LAN). When I tried to send mails to user on another host (test01@host2.mydomain.com), it's OK when I verify with "sendmail -bv":
test01@host2.... deliverable: mailer smtp, host, user test01@host2.

but when I really sent it, I got this:
test01@host2... Deferred: Connection timed out with host2.mydomain.com

in host2, sendmail is runing, using ps -ef|grep sendmail, I got "sendmail: accepting connections on port 25"

when I tried port 25 on host2 from host1, using "telnet host2 25" I also got timeout, so why can't host1 talk to host2 through port 25?
6 REPLIES 6
harry d brown jr
Honored Contributor

Re: Port 25

Is sendmail running on host2? Also, do you have a route to host2 (can you ping it or just simply telnet to it)?
Live Free or Die
someone_4
Honored Contributor

Re: Port 25

Hi
First make sure that
both hosts are in your etc/hosts file
and could you please post what you get when you do
sendmail -v test01@host2
try it both my hostname and ip
aslso check
/etc/services for this line
smtp 25/tcp # Simple Mail Transfer Protocol

make sure it is not commented out

Richard
Gary Yu
Super Advisor

Re: Port 25

Thanks Harry and Richard for the prompt respones.

host1 is also a dns server, when I issue nslookup host2 on host1 it's ok.(they are in the same sub-net)
when I issue sendmail -v test01@host2, I got this:
test01@host2... Connecting to host2.mydomain.com. via smtp...
test01@host2... Deferred: Connection timed out with host2.mydomain.com.

The other thing is, I can telnet to port 25 of the host itself(in host1 "telnet host1 25", or in host2 "telnet host2 25" both suceeded), but if "telnet host2 25" on host1, I got timeout.

Sridhar Bhaskarla
Honored Contributor
Solution

Re: Port 25

Gary,

I am hoping that you are able to telnet
from each other.

Make sure your haven't commented out 25/tcp in your /etc/services file.

Make sure you are allowing SMTP in /var/adm/inetd.sec

Make sure you are not using any firewalls in between.

If the sendmail daemon is not active, you will get a connection refused message when telnet at the port 25.

It's most likely a firewall issue or /var/adm/inetd.sec issue (this also gives connection refused)

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
someone_4
Honored Contributor

Re: Port 25

Hey gary
I see you got it going ..
what specifly was the problem.


Richard
Ovidiu D. Raita
Valued Contributor

Re: Port 25

looks like host2 cannot resolve host1's address. Try to ping host1 from host2. Try the same thing with the domain name host1.mydonain.com or try nslookup.

Ovidiu
Simple solutions to complex problems