Operating System - Linux
1827811 Members
2093 Online
109969 Solutions
New Discussion

Re: Need to disable sendmail

 
SOLVED
Go to solution
KPS
Super Advisor

Need to disable sendmail

I'm trying to configure my RHES 3.0 Linux System to have the sendmail daemon disabled on reboot and point it to our Mail Relay server in /etc/mail/sendmail.cf. What files do I want to target to prevent the sendmail daemon from starting up?

Could someone help me out with what I want to do for this?
4 REPLIES 4
Jeff_Traigle
Honored Contributor
Solution

Re: Need to disable sendmail

I assume RH still uses chkconfig... see the man page for options.

To see which run states sendmail is enabled, run:

chkconfig --list sendmail

Then to disable it in the run states it's enabled for:

chkconfig --level 345 sendmail off

(Replacing the 345 with the list of run state numbers reported on your system.)
--
Jeff Traigle
Ivan Ferreira
Honored Contributor

Re: Need to disable sendmail

To disable sendmail use:

service sendmail stop
chkconfig sendmail off

By default, the sendmail server listens only in the loopback interface, so probably there is no need to completly disable the service.

If you shut down sendmail, and you try to send a message, you will get "Connection Refused". So, your Mail Relay server configuration won't work.
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: Need to disable sendmail

Shalom KPS,

All disabling sendmail from starting at boot will do is prevent the collection of inbound mail. This also prevents the manipulation of sendmail to send outbound mail, which is a good thing if your server is exposed to the Internet.

The excellent, solution quality posts above (hint, hint) will permit your server to send outbound mail messages as expected.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
KPS
Super Advisor

Re: Need to disable sendmail

Thanks everyone for your help