Package: amavisd-new Version: 1:2.5.2-2 Severity: normal Tags: patch
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. -- Kiko -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.23 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages amavisd-new depends on: ii adduser 3.105 add and remove users and groups ii debconf [debconf-2.0] 1.5.14 Debian configuration management sy ii file 4.21-3 Determines file type using "magic" ii libarchive-tar-perl 1.36-1 Archive::Tar - manipulate tar file ii libarchive-zip-perl 1.18-1 Module for manipulation of ZIP arc ii libberkeleydb-perl 0.31-1 use Berkeley DB 4 databases from P ii libcompress-zlib-perl 2.007-1 Perl module for creation and manip ii libconvert-tnef-perl 0.17-5 Perl module to read TNEF files ii libconvert-uulib-perl 1.09-1 Perl interface to the uulib librar pn libdigest-md5-perl <none> (no description available) ii libio-stringy-perl 2.110-2 Perl5 modules for IO from scalars ii libmailtools-perl 1.77-1 Manipulate email in perl programs pn libmime-base64-perl <none> (no description available) ii libmime-perl 5.420-2 Perl5 modules for MIME-compliant m ii libnet-server-perl 0.94-1 An extensible, general perl server ii libunix-syslog-perl 1.0-1 Perl interface to the UNIX syslog( ii perl [libtime-hires-perl] 5.8.8-11 Larry Wall's Practical Extraction amavisd-new recommends no packages. -- debconf information: amavisd-new/outdated_config_style_warning: