How to disable Sendmail
-
Open
/etc/rc.conf:$ ee /etc/rc.conf -
Edit/Add these options:
# NO SENDMAIL sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO"Note: on old fbsd versions, it was used “NONE” instead of “NO” for
sendmail_enable -
Stop the
sendmailservice:service sendmail stop
The main reason why someone would disable the sendmail service are usually:
- If you’re using a crappy vps, it will take some hard disk usage.
- For better alternatives
- For minimal OSes
By default sendmail should work only locally.