PROBLEM
I am having trouble with the Spam Filter. Mails that should be marked as spam are receiving scores like -100.
ENVIRONMENT
- On-Premise Server + WebMail Installations: Version 6.0 > Current Version
CAUSE
SpamAssassin SHORTCIRCUIT.
RESOLUTION
If you are having trouble with the Spam Filter not working, you may need to turn off the Short Circuit for the whitelist. To do this you will need to locate the local.cf file which can be found in the following directory.
cd /usr/local/atmail/spamassassin/etc/mail/spamassassin
Once you have navigated to the directory, you will need to search for WHITELIST in the local.cf file. When you search for WHITELIST, you should find the following block of text:
shortcircuit USER_IN_WHITELIST on
shortcircuit USER_IN_DEF_WHITELIST on
shortcircuit USER_IN_ALL_SPAM_TO on
shortcircuit SUBJECT_IN_WHITELIST on
Now you will need to comment those lines out, you can do this by adding a # at the start. Once you have commented the previous lines out, the block should look like this:
#shortcircuit USER_IN_WHITELIST on
#shortcircuit USER_IN_DEF_WHITELIST on
#shortcircuit USER_IN_ALL_SPAM_TO on
#shortcircuit SUBJECT_IN_WHITELIST on
You will now need to search for TRUSTED until you see the following line:
shortcircuit ALL_TRUSTED on
Once you have found the previous line, you will need to comment it out by adding the # at the start of the line like so:
#shortcircuit ALL_TRUSTED on
Now you can search for ham, when you search you should see the following block of text:
shortcircuit BAYES_99 spam
shortcircuit BAYES_00 ham
Now you need to comment out the second line shortcircuit BAYES 00 ham. It should now look like this:
shortcircuit BAYES_99 spam
#shortcircuit BAYES_00 ham
After you have commented all of the lines listed, you can save the file and restart Atmail with the following command:
/etc/init.d/atmailserver restart
Comments