Package: amavisd-new
Version: 2.10.1-2~deb8u1
Severity: normal
Tags: patch

Dear Maintainer,

In going through the output of CRON scripts, it appears a syntax error in the
amavisd-new-cronjob script that runs daily generates spurious e-mails because
output is not properly redirected to /dev/null. I adjusted the syntax of the
script (patch included) which stopped the spurious e-mails.

Cheers,
J. Russell Woodman

*** amavisd-new-cronjob.old     2016-05-11 12:38:51.007754913 -0500
--- amavisd-new-cronjob 2016-05-11 11:42:16.836862896 -0500
***************
*** 29,38 ****

  case $1 in
        sa-sync)
!               /usr/bin/sa-learn --sync 2>&1 >/dev/null
                ;;
        sa-clean)
!               /usr/bin/sa-learn --sync --force-expire 2>&1 >/dev/null
                ;;
        *)
                echo "$0: unknown cron routine $1" >&2
--- 29,38 ----

  case $1 in
        sa-sync)
!               /usr/bin/sa-learn --sync >/dev/null 2>&1
                ;;
        sa-clean)
!               /usr/bin/sa-learn --sync --force-expire >/dev/null 2>&1
                ;;
        *)
                echo "$0: unknown cron routine $1" >&2

Reply via email to