Showing results for 
Search instead for 
Did you mean: 

regarging smtp

Uma Maheswar
Occasional Contributor

regarging smtp


I am trying to configure sendmail, when I do telnet localhost 25 its goes through, I do telnte 25, the domain is able to resolve . I am able to do telnet but I con't telnet 25 what could be the reson and How I can trouble shoot.


Uma Maheswar
Ivan Ferreira
Honored Contributor

Re: regarging smtp

1- Configuration, check and verify that DAEMON_OPTIONS is commented, like this:

dnl DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')

the "dnl" keyword is used to comment a line in sendmail configuration macro files. Recreate the configuration file:

m4 >

Restart the service

2- Firewall:

service iptables stop

3- Selinux?
setenforce 0
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Honored Contributor

Re: regarging smtp

here is what i did when i was not able to connect to port 25 or use smtp file coming with RH7.2 only listens on loopback interface. u can see that in netstat -an

it looks like this

tcp 0 0* LISTEN

I Commented following option and restarted the sendmail daemon.

O DaemonPortOptions=Port=smtp,Addr=, Name=MTA

Then after restarting the daemon using netstat -an.
the output changed to

tcp 0 0* LISTEN

My mail now works