Issue with .spamassasin file permission since Upgrade to Cloudron 8.0.0
-
Hi @staff,
since upgrade to Cloudron 8.0.0 I discovered some warnings in the logfile of the email service:
Jul 02 22:10:33 [POST] /spam_custom_config Jul 02 22:10:33 Jul 2 20:10:33.867 [5031] warn: config: path "/root/.spamassassin" is inaccessible: Permission denied Jul 02 22:10:33 Jul 2 20:10:33.867 [5031] warn: config: path "/root/.spamassassin/user_prefs" is inaccessible: Permission denied Jul 02 22:10:33 Jul 2 20:10:33.946 [5031] warn: config: registryboundaries: no tlds defined, need to run sa-update Jul 02 22:10:33 Jul 2 20:10:33.957 [5031] warn: config: path "/root/.spamassassin" is inaccessible: Permission denied
Is this somehow specific to my installation or maybe a bug?
Best,
Mike -
-
@joseph thanks, fixing
-
When I drop into the mail container and look at the logs for spamd, I see some more information. I can actually see where it's checking for spam and see that it's indeed not using my rules. It says:
Oct 7 23:09:31.891 [109] info: spamd: using default config for iamthefij@example.com: /app/data/spamd/iamthefij@example.com/user_prefs
That file does not exist. The actual rules are in
/app/data/spamd/custom.cf
.I can see in
/etc/supervisor/conf.d/spamd.conf
thatspamd
is started with:/usr/sbin/spamd --max-children 2 --port 7833 --nouser-config --virtual-config /app/data/spamd/%%u --syslog stderr -u cloudron --allow-tell
This appears to tell it not to try and access
/root/.spamassassin/user_prefs
. When I look at thespamd
logs, I actually don't see the error that I see in the mail logs. So not sure why that would be yet.The thing that does stand out is that it looks like it's telling
spamd
to look at/app/data/spamd/iamthefij@example.com/user_prefs
, as I'm seeing in the logs. This file also does not exist. I don't see it looking for the custom file anywhere. -
I do see some of my local rules present in the logs. Only older ones though. I added a pretty specific one targeting a bunch of spam I've been getting and that doesn't seem to be applied.
Just in case these messages are benign and my rule is breaking things, I'll post it here:
body LOCAL_TINA_EGAN_SPAM_PHISH /Tina Egan/ score LOCAL_TINA_EGAN_SPAM_PHISH 7.0
I've been getting a bunch of spam addressed to "Tina Egan" trying to phish me. Trying to mark them all as junk.
-
@iamthefij I can take a look tomorrow but the repo is at https://git.cloudron.io/cloudron/mail-addon