Stopping Starting Sendmail in FreeBSD

Here’s a quick reference for Sendmail users. The commands below are to start, stop, restart, and rebuild aliases for the Sendmail Daemon.

Stopping Sendmail
# cd /etc/mail
# make stop

Starting Sendmail
# cd /etc/mail
# make start

Restarting Sendmail
# cd /etc/mail
# make restart

Rebuild Aliases
# cd /etc/mail
# make

Enable Sendmail on startup
# echo ‘sendmail_enable=”YES”‘ >> /etc/rc.conf
# echo ‘sendmail_submit_enable=”YES”‘ >> /etc/rc.conf

Disable Sendmail on startup
# echo ‘sendmail_enable=”NO”‘ >> /etc/rc.conf
# echo ‘sendmail_submit_enable=”NO”‘ >> /etc/rc.conf

Done!!

原文链接:,转发请注明来源!

发表评论