Univention Bugzilla – Bug 52132
spamassassin sa-learn complains nightly about missing files
Last modified: 2020-09-24 11:36:24 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.
When at it, start sa-learn with a low I/O priority, for example: "ionice -c3".