From owner-freebsd-questions@FreeBSD.ORG Wed Mar 18 06:59:48 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 898B9106566B for ; Wed, 18 Mar 2009 06:59:48 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 072858FC19 for ; Wed, 18 Mar 2009 06:59:47 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n2I6xfUQ062382; Wed, 18 Mar 2009 06:59:42 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.2 smtp.infracaninophile.co.uk n2I6xfUQ062382 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1237359583; bh=4cybiglUTD6qUiHuc5pY4cTBCelIiZWUgjUd2XDtXNY=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<49C09BD6.7040303@infracaninophile.co.uk>|Date:=20W ed,=2018=20Mar=202009=2006:59:34=20+0000|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.19=20(X11/20090218)|MIME-Vers ion:=201.0|To:=20Chuck=20Swiger=20|CC:=20Steve=20 Bertrand=20,=20=0D=0A=20"freebsd-questions@freeb sd.org=20Questions"=20|Subject:=20R e:=20Stop=20all=20manner=20of=20periodic=20scripts=20from=20runnin g|References:=20<49C03BB7.1040009@ibctech.ca>=20|In-Reply-To:=20|X-Enigmail-Version:=200.95.6|Content-Type :=20multipart/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol= 3D"application/pgp-signature"=3B=0D=0A=20boundary=3D"------------e nig2F869E432ED50A28D898D08A"; b=XO33C3Clazh6x/LwElaffPMH2tBDTQYv1HZPNZJX9+fGRxXDlj5xSm0ycPqxXcBUF 9q/Xh2/3wzK88dr7zFONxFraCcwn4pBzywQ/LLTd/wtKdUxy3Amv3Ya3Ac2kOgL0aU kqgIQtIWJmn7yDyRhBy1ZPSjHRI8hCUAHg6FFGVg= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <49C09BD6.7040303@infracaninophile.co.uk> Date: Wed, 18 Mar 2009 06:59:34 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.19 (X11/20090218) MIME-Version: 1.0 To: Chuck Swiger References: <49C03BB7.1040009@ibctech.ca> In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig2F869E432ED50A28D898D08A" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (smtp.infracaninophile.co.uk [IPv6:::1]); Wed, 18 Mar 2009 06:59:43 +0000 (GMT) X-Virus-Scanned: ClamAV 0.94.2/9127/Wed Mar 18 04:30:26 2009 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: Steve Bertrand , "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 06:59:48 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2F869E432ED50A28D898D08A Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable 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? >=20 > Besides the answer to disable sendmail listening on localhost, consider= =20 > the following to /etc/periodic.conf: >=20 > daily_clean_hoststat_enable=3D"NO" > daily_status_mail_rejects_enable=3D"NO" > daily_status_include_submit_mailq=3D"NO" > daily_submit_queuerun=3D"NO" In answer to the principal question: just divert the periodic script output to a log file: daily_output=3D"/var/log/daily.log" daily_status_security_output=3D"/var/log/daily.log" weekly_output=3D"/var/log/weekly.log" monthly_output=3D"/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. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig2F869E432ED50A28D898D08A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAknAm90ACgkQ8Mjk52CukIyU5wCfQ3+Wq8ZTdqrERTM7q5kRk2ZP YiwAnRvfYITPmoerVX7N3ZoJIiJSuB6K =tRQ/ -----END PGP SIGNATURE----- --------------enig2F869E432ED50A28D898D08A--