Solved

cannot telnet to port 25 from another machine

Posted on 2013-05-29
2
1,247 Views
Last Modified: 2013-05-29
I have done the following but can sendmail from local but cannot send email&telnet port 25 from anther machine:

- disabled firewall
[root@officemail xinetd.d]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
[root@officemail xinetd.d]#


add in /etc/mail/access:
10.128                          RELAY
10.129                          RELAY


makemap hash /etc/mail/access < /etc/mail/access



vi /etc/mail/sendmail.mc
changed to DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')dnl

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
service sendmail stop
killall -HUP sendmail
service sendmail start


[root@officemail ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 officemail ESMTP Sendmail 8.13.1/8.13.1; Wed, 29 May 2013 16:59:55 +0800
quit
221 2.0.0 officemail closing connection
Connection closed by foreign host.
[root@officemail ~]# netstat -vat
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State
tcp        0      0 *:936                       *:*                         LISTEN
tcp        0      0 *:sunrpc                    *:*                         LISTEN
tcp        0      0 *:auth                      *:*                         LISTEN
tcp        0      0 *:smtp                      *:*                         LISTEN
tcp        0      0 *:ssh                       *:*                         LISTEN
tcp        0     52 ::ffff:10.129.146.253:ssh   ::ffff:10.129.146.98:3458   ESTABLISHED
tcp        0      0 ::ffff:10.129.146.253:ssh   ::ffff:10.129.146.98:2058   ESTABLISHED
...
[root@officemail ~]#



=============

but from another pc in the same subnet:

G:\>telnet 10.129.146.253 25
Connecting To 10.129.146.253...Could not open connection to the host, on port 25
: Connect failed

G:\>


how come?

Thanks!
0
Comment
Question by:Hoboly
2 Comments
 
LVL 37

Accepted Solution

by:
Gerwin Jansen earned 500 total points
ID: 39203996
Any firewall / antivirus software installed on that PC?

Have a look in the antivirus log file, it could be blocking port 25.
0
 

Author Closing Comment

by:Hoboly
ID: 39204016
Great! haha
you're right
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now