fix(sa-learn): amavis can't do bayes check if not mask 777

Service amavis even though part of group vmail who has mark 770
on '/var/spool/spamassassin', can't write lockfile to do a bayes
check.

Set '/var/spool/spamassassin' mask to be `777` with owner
`debian-spamd:vmail` recursive. so that amavis bayes check works.

MR !9
This commit is contained in:
2022-02-19 11:21:04 +09:30
parent e9fb4123e9
commit 43f6a356bd

View File

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