Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Mar 2009 06:59:34 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Chuck Swiger <cswiger@mac.com>
Cc:        Steve Bertrand <steve@ibctech.ca>, "freebsd-questions@freebsd.org Questions" <freebsd-questions@freebsd.org>
Subject:   Re: Stop all manner of periodic scripts from running
Message-ID:  <49C09BD6.7040303@infracaninophile.co.uk>
In-Reply-To: <A6706B94-774C-4AD2-AEB8-210A111A49BA@mac.com>
References:  <49C03BB7.1040009@ibctech.ca> <A6706B94-774C-4AD2-AEB8-210A111A49BA@mac.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?49C09BD6.7040303>