Re: Cron Job errors after installing Debian 11

Damian <[email protected]> Mon, 12 Feb 2024 13:26:24 +0100
Newsgroups gmane.mail.virus.amavis.user
Message-ID <[email protected]>
> I'm guessing it has something to do with the interaction of 
> Spamassassin and Amavis? Unsure if anything is 'broken' but everything 
> else seems to be working as expected.
>
> Cron <amavis@NZ-Akl> test -e /usr/sbin/amavisd-new-cronjob && 
> /usr/sbin/amavisd-new-cronjob sa-sync
>
> Number found where operator expected at (eval 1908) line 1, near "0 0"
>     (Missing operator before  0?) 

The only non-silenced perl invocation in amavisd-new-cronjob on Debian 
11 seems to be the use_bayes check. Try if you can reproduce the error 
message with

> sudo -u amavis perl -MMail::SpamAssassin -e 
> "Mail::SpamAssassin->new->compile_now"

If you can reproduce, try with enabled debugging:

> sudo -u amavis perl -MMail::SpamAssassin -e 
> "Mail::SpamAssassin->new({debug => 'all'})->compile_now"