2024-10-17T17:02:09.081202-04:00 neco spamd[1969]: bayes: cannot open bayes databases /var/lib/spamassassin/.spamassassin/bayes_* R/O: tie failed: Permission denied
2024-10-17T17:02:09.096958-04:00 neco spamd[1969]: bayes: cannot open bayes databases /var/lib/spamassassin/.spamassassin/bayes_* R/O: tie failed: Permission denied
2024-10-17T17:03:53.961348-04:00 neco spamd[1969]: bayes: cannot open bayes databases /var/lib/spamassassin/.spamassassin/bayes_* R/O: tie failed: Permission denied
The bayes files are owned by debian-spamd, and that is also the user that is set in SPAMD_USER in the sieve script. I’m just assuming it’s related to spamham based off the post I mentioned being similar. I could be very wrong though.
I don’t know the reason sa-learn changes the owner and group to root instead of debian-spamd for bayes_toks db but if you use the fix it should not happen again… I hope so
That didn’t seem to be the problem and now I see that I get the error any incoming mail, so I don’t think it’s actually an issue with your script after all. I’ll eventually figure it out, thanks for the help @sahsanu !
I had changed it manually, and today I double checked that things seem to be working. I’m still getting spam in my in box but maybe I still haven’t reached 200 yet. It’s still a mystery how it became owned by root, but it seems fine now. Thanks so much for the help @sahsanu !!!