Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Dec 2005 10:35:56 +0000
From:      Scott Mitchell <scott+lists.freebsd@fishballoon.org>
To:        Pietro Cerutti <pietro.cerutti@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Completely disable sendmail
Message-ID:  <20051215103556.GA904@tuatara.fishballoon.org>
In-Reply-To: <e572718c0512150030u79fa3e8dhf02cf56113755fd9@mail.gmail.com>
References:  <e572718c0512141659i54aeabd7sd0d8b63edfc5ff7c@mail.gmail.com> <43A116DB.8090608@russellmeek.net> <e572718c0512150030u79fa3e8dhf02cf56113755fd9@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 submit.cf configuration file.

You should be able to disable any email sending from cron by adding a
MAILTO=""
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.

Cheers,

	Scott

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051215103556.GA904>