Spamassassin: sa-learn fails in cronjob
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
spamassassin (Ubuntu) |
Incomplete
|
Medium
|
Unassigned |
Bug Description
Running
su amavis -c '/usr/bin/sa-learn -D --ham /tmp/learn_mail'
in a cronjob leads to the output being sent via mail (see text file). Spamassassin complains about a problem on loading plug-ins such like:
plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssass
Note: "Keine Berechtigung" is German and means something like no authorization. But the perl file exists and everyone can read it:
-rw-r--r-- 1 root root 8578 Feb 7 09:36 /usr/share/
The same for all other plug-ins.
Running the command as mentioned above manually from the shell as user root works perfectly, no errors.
I'm using spamassassin version 3.4.0-1ubuntu1 and perl version 5.18.2-2ubuntu1 on Ubuntu 14.04.
Maybe there is relation to:
https:/
?? Don't know.
Regards
Nuesel
Changed in spamassassin (Ubuntu): | |
importance: | Undecided → Medium |
In the meantime, I've got several e-mails indicating problems during some cron jobs:
mail subject: Cron <amavis@gruenbaer> test -e /usr/sbin/ amavisd- new-cronjob && /usr/sbin/ amavisd- new-cronjob sa-sync
refcnt: fd -1 < 0
mail subject: Cron <amavis@gruenbaer> test -e /usr/sbin/ amavisd- new-cronjob && /usr/sbin/ amavisd- new-cronjob sa-sync _ignore_ _(39/:: Plugin: :Check: :run_eval_ tests/1097)
rules: failed to run header tests, skipping some: __alarm_
mail subject: Cron <amavis@gruenbaer> test -e /usr/sbin/ amavisd- new-cronjob && /usr/sbin/ amavisd- new-cronjob sa-sync sin::Plugin: :Check: :_body_ tests_0_ 1, skipping: _ignore_ _(1/::PerMsgSta tus::check/ 1414))
rules: failed to compile Mail::SpamAssas
(__alarm_
I would be happy, if someone can give someone can give me a hint, why amavis fails in cron jobs?
I upgraded the system from an Ubuntu 12.04 installation. Maybe this has something to do with the problem?
Regards
Nuesel