![]() You may get some inspiration, but in general it is better to create some custom rules yourself based on your specific mail behaviour (e.g. For one thing, badly scored custom rules may result in a lot of false positives. I manage some custom rules with the "rule-get" script. The rules included with SpamAssassin should in most cases be enough to block all spam. ![]() A lot of people have written their custom rules for Bayes. For example, HTML has a higher change of being spam, so I mark it as such. In addition to the Bayes rules, SpamAssassin has many other rules. This is a big assumption, so I do not run it automatically, but have to remember to run it manualy every once in a while. ![]() The last line assumes that all mail in the default inbox is non-spam. Sa-learn -ham $HOME/Maildir/cur/ > $HOME/log/spam.log Sa-learn -ham $HOME/Maildir/.Spam.falsepositives/cur/ > $HOME/log/spam.log Sa-learn -spam $HOME/Maildir/.Spam.falsenegatives/cur/ > $HOME/log/spam.log Sa-learn -spam $HOME/Maildir/.Spam.negatives/cur/ > $HOME/log/spam.log PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/home/freek/bin Spam/falsepositives I put here non-spam mails that were accidentilly marked as spam. Spam/falsenegatives I put here spam mail that slipped through. I run a cron job to extract the confirmed spam from the report and store it in here. Spam/negatives The confirmed mail is often stored as an attachment to another mail with the spamassassin report. Spam/confirmed After confirming something is spam, I put it in this box. I will have to check these manually (if it is sure, it simply deletes them). Spam/incoming SpamAssassin will store mail which it suspect is spam, but is not 100% sure. When a new mail arrives, it looks at the word usages, and based on that gives a propability score wether the mail is spam or not. It may learn that a spam mail often contains words like viagra, while ham mails contains your full name. You do so by giving it a large sample set (at least 100 mails), which it examins for word usage. The first step is to learn Spamassassin the difference between spam and non-spam ("ham") mails. SpamAssassin uses Bayesian filtering of email to stop spam. SpamAssassin is technique to block spam, based on multiple rules. 4.3 Verify falsepositives and false negatives.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |