
It will be usefull for me it these scores could be logged too. I know that summary includes the same flags with scores. Spamassassin is sendind the report with the original message attached to the recipients. My question: It is possible to change some config on Spamassassin to add individual flag scores to the log? It will then search for the description of each of the rules that were used to evaluate the message of interest and print the file where the description was found along with the description its self. I understand that spam was marked because reach 11.3 points on second line, I know that there are de FLAGS/RULES which the spam was marked. This script will use the Message ID to locate the SpamAssassin score results in /var/log/maillog.

Jul 14 17:32:36 mail spamd: spamd: result: Y 11 - BAYES_00,DCC_CHECK,DIGEST_MULTIPLE,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HELO_DYNAMIC_DHCP,HTML_IMAGE_ONLY_24,HTML_IMAGE_RATIO_02,HTML_MESSAGE,MPART_ALT_DIFF,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E8_51_100,RAZOR2_CHECK,RCVD_IN_BRBL_LASTEXT,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn_force=no Readind the spamd log (mail.log for me), I grep these lines: Jul 14 17:32:36 mail spamd: spamd: identified spam (11.3/7.0) for in 1.9 seconds, 5217 bytes.

When a SPAM is detected, it is marked as and delivered to recipients. Make use of your spam folder to teach SpamAssassin what you consider spam emails. As it learns more about what you consider to be spam that it might have missed, it'll get better at filtering out spam for you.I have the Spamassassin 3.4 + Ubuntu 14 + Qmail + Clamav. Adjust the SpamAssassin filter and delete settings down to lower scores.Ģ. If you're finding that a lot of spam is still making it to your inbox, you can do 2 things.ġ. Spammers are always adjusting their tactics to get better at getting past spam filters. You Can Teach Spam Assassin To be Better at Filtering Spam If the email scores above 5, SpamAssassin will just delete the email and you never have to see or deal with it.If the email scores between 2 and 5 per the above settings, the email will be flagged as spam and delivered to your spam folder.If the email is scored below 2 per the above settings, it will be delivered to your inbox.With the score assigned, SpamAssassin now has to decide what to do with the email based on the criteria you set. The higher the score, the more likely the email is spam.Ģ. The more variables that the email meets, the higher the score assigned to the email. When an email hits the server, SpamAssassin checks it against hundreds of variables and assigns it a score. With the above settings, the following happens.ġ. 2 or 3 is fairly safe here, you can monitor your spam emails for a while and if you find there are a lot of false positive, you can go back and increase the number here so that SpamAssassin will be less aggressive. Again, the lower the number, the more aggressive SpamAssassin will be.

Set the score that SpamAssassin will use to flag emails as spam. This will allow you to view emails sorted as spam to recover any that might have mistakenly been marked as spam, and you can also use the spam box to train spam assassin to better filter out spam for you.Ħ. If you go to aggressive, you might get legitimate emails filtered out as spam.Ĥ. 5 is a pretty safe number to start at, you can always go lower later. The lower the number you choose, the more aggressive spam assassin will be in automatically deleting emails it believes are spam. Enable Spam Assassin if it is not yet enabled.ģ. Below is a quick walkthrough of the various settings, what they do, and what we recommend.Ģ.

We recommend you always use SpamAssassin to help minimize spam in your email, however, the settings can be a bit daunting.
