On Wed, 17 Oct 2007, Kiko Piris wrote: > When `/usr/sbin/amavisd-new-cronjob sa-sync' is executed (from > `/etc/cron.d/amavisd-new'), it???s output gets mailed everytime to root. > > Below is a patch (adapted from sarge's script to make it silent. > > ---8<--- > --- /usr/sbin/amavisd-new-cronjob~ 2007-10-15 14:21:47.000000000 +0200 > +++ /usr/sbin/amavisd-new-cronjob 2007-10-17 18:41:22.000000000 +0200 > @@ -29,10 +29,10 @@ > > case $1 in > sa-sync) > - do_amavis_cmd "/usr/bin/sa-learn --sync >/dev/null" > + do_amavis_cmd "/usr/bin/sa-learn --sync" '>/dev/null' > ;; > sa-clean) > - do_amavis_cmd "/usr/bin/sa-learn --sync --force-expire > >/dev/null" > + do_amavis_cmd "/usr/bin/sa-learn --sync --force-expire" > '>/dev/null' > ;; > *) > echo "$0: unknown cron routine $1" >&2 > --->8--- > > Cheers.
Watch out, it might not work well depending on what do_amavis_cmd has to run. -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

