/usr/sbin/amavisd-new-cronjob could be changed to check if use_bayes is
set to 0:

        sa-clean) 
                grep -q "use_bayes 0" /etc/spamassassin/local.cf  || 
do_amavis_cmd "/usr/bin/sa-learn --sync --force-expire"
                ;;

Or it can be checked for in cron.daily/amavisd-new in a similar way.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to amavisd-new in Ubuntu.
https://bugs.launchpad.net/bugs/165184

Title:
  amavisd-new + spamassassin: cronjob spams root user

To manage notifications about this bug go to:
https://bugs.launchpad.net/server-papercuts/+bug/165184/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to