How can I configure Procmail and SpamAssassin to catch spam?

link|improve this question

39% accept rate
Am I understanding this correctly? If I translate this, you want people to give you examples of spam that will get through a spam filter and/or cause said filter to develop false positives, score skewing, or other undesirable phenomena? – Avery Payne Jul 25 '09 at 7:27
I think he's just asking how to configure them to catch spam. – Ward Jul 25 '09 at 7:53
No!!! Sorry I'm not native english speaker. I wanna delete all spam mail with procmail. – freddiefujiwra Jul 25 '09 at 7:54
Yes how to configure them to catch spam. – freddiefujiwra Jul 25 '09 at 7:57
feedback

1 Answer

#spam assain
:0fw
| spamassassin 2>> ~/logs/spam_log
:0:
* ^X-Spam-Status: Yes
     .spam/

Is the bit of my .procmailrc that actually catches spam. My spam assassin user_prefs then looks something like this.

ok_locales en
use_bayes 1
bayes_min_ham_num 100
bayes_min_spam_num 100
bayes_ignore_header X-Bogosity
bayes_ignore_header X-Spam-Flag
bayes_ignore_header X-Spam-Status

You'll probably want to toggle ok_locales for where you live, and this relies heavily on bayesian filtering, so you'll need to feed your filters regularly with something along the lines of

 sa-learn --showdots --spam --file ~/Maildir/.spam/cur
 sa-learn --showdots --spam --file ~/Maildir/.inbox/cur
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.