Stop all manner of periodic scripts from running
m.seaman at infracaninophile.co.uk
Tue Mar 17 23:59:48 PDT 2009
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:
In answer to the principal question: just divert the periodic script
output to a log file:
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.
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 259 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090318/0b19199c/signature-0001.pgp
More information about the freebsd-questions