From owner-freebsd-questions@FreeBSD.ORG Thu Dec 15 10:36:11 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B65F16A41F for ; Thu, 15 Dec 2005 10:36:11 +0000 (GMT) (envelope-from scott@fishballoon.org) Received: from mta09-winn.ispmail.ntl.com (mta09-winn.ispmail.ntl.com [81.103.221.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A39A43D8C for ; Thu, 15 Dec 2005 10:36:01 +0000 (GMT) (envelope-from scott@fishballoon.org) Received: from aamta11-winn.ispmail.ntl.com ([81.103.221.35]) by mta09-winn.ispmail.ntl.com with ESMTP id <20051215103559.XWLE8609.mta09-winn.ispmail.ntl.com@aamta11-winn.ispmail.ntl.com>; Thu, 15 Dec 2005 10:35:59 +0000 Received: from llama.fishballoon.org ([81.104.195.171]) by aamta11-winn.ispmail.ntl.com with ESMTP id <20051215103559.WROU16192.aamta11-winn.ispmail.ntl.com@llama.fishballoon.org>; Thu, 15 Dec 2005 10:35:59 +0000 Received: from tuatara.fishballoon.org ([192.168.1.6]) by llama.fishballoon.org with esmtp (Exim 4.52 (FreeBSD)) id 1EmqSr-0006Kf-Az; Thu, 15 Dec 2005 10:35:57 +0000 Received: (from scott@localhost) by tuatara.fishballoon.org (8.13.3/8.13.3/Submit) id jBFAZuFn029070; Thu, 15 Dec 2005 10:35:56 GMT (envelope-from scott) Date: Thu, 15 Dec 2005 10:35:56 +0000 From: Scott Mitchell To: Pietro Cerutti Message-ID: <20051215103556.GA904@tuatara.fishballoon.org> References: <43A116DB.8090608@russellmeek.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE i386 Cc: freebsd-questions@freebsd.org Subject: Re: Completely disable sendmail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 10:36:11 -0000 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