Better understand the email spam filter
-
Hello Cloudron Team & Community,
I would like to move other people's email accounts to my server and am currently struggling with the spam filter and have some simple questions about it. It would be great if you could help me, as I am currently still getting a lot of spam.-
classifying email as spam and getting the spam filter to learn means moving the email to the SPAM folder, right?
-
do these emails have to remain in the spam folder? If so, for how long? When is this learning processed?
-
is this learning then applied to all user accounts and all domains or does each user/domain have to build up this learning for themselves?
-
for domains that do not have their own account, but whose emails are forwarded directly to the account of another URL (catch-all to the following mailbox), the spam filter should also work, right?
Thank you very much!
Johannes -
-
Hi @johannesjom,
I'll try answering your questions although please note this is not official support
-
Yes, commonly they are moved to the Spam box
-
While I don't know the time frame I understand that the system needs 50 good and bad messages to start training first. I'd leave spam in the folder for at least 14 days, depending on how much junk you get.
-
It's per account as I understand it
-
See answer to (3), yes as far as I know
Further reading and reference:
https://docs.cloudron.io/email/#marking-spamHope this helps.
Best,
Axel -
-
Thank you @3246 ! I hope the support will also get back to me
-
300 Spam Mails a day, first place in Google and Support not answering
-
We mostly rely on the
spamd
default settings, those are not easy to get right on a generic level. On my personal Cloudron I have tweaked those with great success, but mileage may vary.
In my case I have raised the score for some bayes rules to give the learning more relevance. You can try this on your instance by putting the following content:score BAYES_999 2.0 score BAYES_99 4.5
into the file
/app/data/spamd/custom.cf
in your mail containers data folder, via SSH onto your host server the shell session is:docker exec -ti mail /bin/bash root@e05ce221283c:/app/code/haraka# cat /app/data/spamd/custom.cf score BAYES_999 2.0 score BAYES_99 4.5 root@e05ce221283c:/app/code/haraka#
Then restart the mail container via the services view in your Cloudron dashboard.
As said though this may also result in mails landing in spam which are legit for your cases.