You are on page 1of 2

Disable service NFS LINUX ------------------------/sbin/chkconfig /sbin/chkconfig /sbin/chkconfig /sbin/chkconfig /sbin/chkconfig sm-client nfslock off rpcgssd off rpcidmapd

off portmap off nfs off

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 -

# location of alias file O AliasFile=/etc/aliases - Snip -

# queue directory O QueueDirectory=/var/spool/clientmqueue - Snip -

# status file O StatusFile=/var/spool/clientmqueue/sm-client.st - 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 chkconfig chkconfig chkconfig

rpcgssd offdddsds rpcidmapd off portmap off nfs off

+chkconfig --levels 2345 sendmail off+ chkconfig --levels 345 sendmail off dfdthghfdddv ddddnnnccddfdfffrgfrgr

You might also like