Completely disable sendmail

Scott Mitchell scott+lists.freebsd at
Thu Dec 15 02:36:11 PST 2005

On Thu, Dec 15, 2005 at 09:30:07AM +0100, Pietro Cerutti wrote:
> Same thing with "NONE" instead of "NO", moreover `man sendmail.rc` says
> sendmail_enable
>              (str) If set to ``YES'', run the sendmail(8) daemon at system
>              boot time.  If set to ``NO'', do not run a sendmail(8) daemon to
>              listen for incoming network mail.  This does not preclude a
>              sendmail(8) daemon listening on the SMTP port of the loopback
>              interface.  The ``NONE'' option is deprecated and should not be
>              used.  It will be removed in a future release.

Hi Pietro,

Setting the 4 sendmail*_enable variables to NO as you've done will prevent
any sendmail daemons from running.  However, it doesn't stop anything from
directly invoking /usr/sbin/sendmail - which is what cron does when it
wants to send some mail.  When sendmail is invoked this way it will try to
deliver the mail according to its configuration file.

You should be able to disable any email sending from cron by adding a
line to your crontab file.  It might still be a good idea to fix your
sendmail configuration so you can actually send mail from this system.



Scott Mitchell           | PGP Key ID | "Eagles may soar, but weasels
Cambridge, England       | 0x54B171B9 |  don't get sucked into jet engines"
scott at | 0xAA775B8B |      -- Anon

More information about the freebsd-questions mailing list