From 84f4509b48a2482c56ce30bfd2bb1916b1734dd3 Mon Sep 17 00:00:00 2001 From: yodax Date: Sun, 20 Mar 2016 05:55:58 +0100 Subject: [PATCH 1/2] Configure bayes_file_mode in spamassassin/local.cf --- setup/spamassassin.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup/spamassassin.sh b/setup/spamassassin.sh index 2757676..ca264c0 100755 --- a/setup/spamassassin.sh +++ b/setup/spamassassin.sh @@ -78,9 +78,13 @@ tools/editconf.py /etc/spamassassin/local.cf -s \ # * Writable by the debian-spamd user, which runs /etc/cron.daily/spamassassin. # # We'll have these files owned by spampd and grant access to the other two processes. +# +# Spamassassin will change the access rights back to the defaults, so we must also configure +# the filemode in the config file. tools/editconf.py /etc/spamassassin/local.cf -s \ - bayes_path=$STORAGE_ROOT/mail/spamassassin/bayes + bayes_path=$STORAGE_ROOT/mail/spamassassin/bayes \ + bayes_file_mode=0660 mkdir -p $STORAGE_ROOT/mail/spamassassin chown -R spampd:spampd $STORAGE_ROOT/mail/spamassassin From 313a86d0fa3f66eed1ab7d7c0cb1b14d8cb7fbde Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Wed, 23 Mar 2016 17:16:50 -0400 Subject: [PATCH 2/2] add changelog entry for bayes file permissions --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c99020..a91dbf8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ CHANGELOG ========= +* Fixed a long-standing issue with training the spam filter not working (because of a file permissions issue). + v0.17b (March 1, 2016) ----------------------