From owner-freebsd-questions@FreeBSD.ORG Wed Mar 18 12:13:28 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25B3F1065868 for ; Wed, 18 Mar 2009 12:13:28 +0000 (UTC) (envelope-from steve@ibctech.ca) Received: from ibctech.ca (v6.ibctech.ca [IPv6:2607:f118::b6]) by mx1.freebsd.org (Postfix) with SMTP id CFE228FC18 for ; Wed, 18 Mar 2009 12:13:27 +0000 (UTC) (envelope-from steve@ibctech.ca) Received: (qmail 52213 invoked by uid 89); 18 Mar 2009 12:18:15 -0000 Received: from unknown (HELO ?IPv6:2607:f118::5?) (steve@ibctech.ca@2607:f118::5) by v6.ibctech.ca with ESMTPA; 18 Mar 2009 12:18:15 -0000 Message-ID: <49C0E55A.5070700@ibctech.ca> Date: Wed, 18 Mar 2009 08:13:14 -0400 From: Steve Bertrand User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Matthew Seaman References: <49C03BB7.1040009@ibctech.ca> <49C09BD6.7040303@infracaninophile.co.uk> In-Reply-To: <49C09BD6.7040303@infracaninophile.co.uk> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org Questions" Subject: Re: Stop all manner of periodic scripts from running 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: Wed, 18 Mar 2009 12:13:31 -0000 Matthew Seaman wrote: > Chuck Swiger wrote: >> On Mar 17, 2009, at 5:09 PM, Steve Bertrand wrote: >>> Although SMTP is denied, I just realized that there are numerous >>> messages from periodic scripts that are queued up that can't be sent. >>> >>> Can someone advise how to find out each and every periodic script that >>> tries to send out email (given a standard install), and/or how to >>> disable this? >> >> Besides the answer to disable sendmail listening on localhost, >> consider the following to /etc/periodic.conf: >> >> daily_clean_hoststat_enable="NO" >> daily_status_mail_rejects_enable="NO" >> daily_status_include_submit_mailq="NO" >> daily_submit_queuerun="NO" > > In answer to the principal question: just divert the periodic script > output to a log file: > > daily_output="/var/log/daily.log" > daily_status_security_output="/var/log/daily.log" > weekly_output="/var/log/weekly.log" > monthly_output="/var/log/monthly.log" > > You'll find those file names are already setup for appropriate log > rotations in /etc/newsyslog.conf > > In the default install, the only things that generate e-mail are the > periodic cron jobs, so this change should be all that is necessary. If > you have set up your own cron jobs, then you'll have to be careful to > redirect all output >/dev/null 2>&1 or else set a MAILTO variable in > each crontab directing any output to an address that won't send mail > outside the specific box. Perhaps something aliased to /dev/null even. Thanks to all who responded. Not only do the methods do what I wanted, I also have quite a bit of flexibility. Cheers! Steve