Showing results for 
Search instead for 
Did you mean: 

sendmail problem

Frequent Advisor

sendmail problem

I have newly setup a server , and started the sendmail service , I have config the as below and then restart it

"Smart" relay host (may be null)

But now still can't sendmail mail out , I have other server that have the same setting can do , so I wonder is there other config file that I need to change to make it work ? please advise thx
Ivan Krastev
Honored Contributor

Re: sendmail problem

Check if you relay host is accessible:

telnet relay_host 25

Ivan Ferreira
Honored Contributor

Re: sendmail problem

Post the output of /var/log/maillog. Ensure that mail-server can be resolved.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: sendmail problem


In you should set a relay server


The relay server must be explicitly set up to relay your systems mail.

Most Corporate LAN environments won't let you send mail directly, the spam risk is too high.

Steven E Protter
Owner of ISN Corporation
Court Campbell
Honored Contributor

Re: sendmail problem

I would suggest installing the sendmail-cf rpm. Then edit the mc file and restart sendmail. This will run m4 for you, etc. This may not resolve your issue, but it is the red hat recommended way of modifying sendmail.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Honored Contributor

Re: sendmail problem

see if this helps file coming with some RH 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