fix(cron): sa-learn must run as spamd user

MR !9
This commit is contained in:
2022-02-19 10:12:26 +09:30
parent 967fd04fe7
commit e9718c97a6
2 changed files with 3 additions and 1 deletions

View File

@ -33,6 +33,8 @@ done
mkdir -p /var/lock/fetchmail
chown debian-spamd:vmail -R /var/spool/spamassassin
if [ "$1" == "setup" ]; then

View File

@ -2,5 +2,5 @@
# SpamAssassin Bayes learning from mailboxes
#
# m h dom mon dow user command
30 0,3,6,9,12,15,18,21 * * * root /bin/spam-learn.sh >/dev/null 2>&1
30 0,3,6,9,12,15,18,21 * * * debian-spamd /bin/spam-learn.sh >/dev/null 2>&1