Help pay for xds lawyer fees.
LR

[FreeBSD 8.2 And below INFOZ]: Removing/disabling sendmail properly !

Posted on 6th December 2011 in Papers

OK, so lets make this painless ok… this is the fastest and easiest way to switch the rubbish OFF without a reboot!
Here we go…

killall sendmail ## to stop all sendmail processes

mv /usr/sbin/sendmail /usr/sbin/sendmail.old
mv /usr/lib/sendmail /usr/lib/sendmail.old #this may not apply if there is no sendmail binary in this location

chmod 0 /usr/lib/sendmail.old /usr/sbin/sendmail.old

##Now we will need to instruct FreeBSD not to attempt to start Sendmail upon
##startup. This is done by make the following modification to the /etc/rc.conf file:

CHANGE:
sendmail_enable="YES" #-> to -> sendmail_enable="NONE"
##OR do this command:
echo 'sendmail_enable="NONE"' >> /etc/rc.conf

# Finally symlink so shits backed the fk up..
ln -s /var/bin/sendmail /usr/lib/sendmail
ln -s /var/bin/sendmail /usr/sbin/sendmail

## Thats it, fast, simple and dead easy!

xd // admin