Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I configure Procmail and SpamAssassin to catch spam?

share|improve this question
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
#spam assain
| spamassassin 2>> ~/logs/spam_log
* ^X-Spam-Status: Yes

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
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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