Bug 52132 - spamassassin sa-learn complains nightly about missing files
spamassassin sa-learn complains nightly about missing files
Status: NEW
Product: UCS
Classification: Unclassified
Component: Spamassassin
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: Mail maintainers
Mail maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-09-24 11:02 CEST by Daniel Tröder
Modified: 2020-09-24 11:36 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.046
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Tröder univentionstaff 2020-09-24 11:02:35 CEST
The cron job /etc/cron.daily/univention-spamassassin can fail and send an email if sa-learn cannot find a file.
That happens, because univention-sa-learn starts sa-learn with a list of files to scan. But those files can disappear (renamed/moved) in the time between starting sa-learn and it scanning them.
The cron jobn then fails and sends an email:
-----------------------------------------------------------------
Cron <root@ucs04> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )  /etc/cron.daily/univention-spamassassin:
find: '/var/spool/dovecot/private/DOMAIN/USER/Maildir/cur/1597119.......,S': No such file or directory
run-parts: /etc/cron.daily/univention-spamassassin exited with return code 1
-----------------------------------------------------------------

Modify univention-sa-learn to start sa-learn with a list of directories and not files.
Comment 1 Daniel Tröder univentionstaff 2020-09-24 11:36:24 CEST
When at it, start sa-learn with a low I/O priority, for example: "ionice -c3".