Professional Documents
Culture Documents
Stop the daemon with /sbin/service sendmail stop Ensure no other processes are running with ps aux | grep -i send Disable it from startup with /sbin/chkconfig sendmail off Edit /etc/sysconfig/sendmail to say DAEMON=no Add your mail relay host to /etc/hosts. Create /etc/mail/service.switch to look like this: hosts aliases files files
Back up your /etc/mail/submit.cf and overwrite it with /etc/mail/sendmail.cf Make these modifications to the new /etc/mail/submit.cf: # Smart relay host (may be null) DS<mail relay host you added in /etc/hosts> - Snip -
# what user id do we assume for the majority of the processing? O RunAsUser=smmsp - Snip -
# Trusted user for file ownership and starting the daemon. O TrustedUser=smmsp This doesn t instantly make your system secure or anything, but it closes one of t he simple methods of entry. The less services running and accepting connections on the external interfaces the better. zdzdzcdcxcssdsd# chkconfig nfslock off
# # # #
+chkconfig --levels 2345 sendmail off+ chkconfig --levels 345 sendmail off dfdthghfdddv ddddnnnccddfdfffrgfrgr