Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I'd like to train my Spam Assassin with some spam that it's missed, however I'm confused. With sa-learn I could target:

  • raw message
  • text-message (body)
  • html (body)

What one of those options is this best. I'd like to pull the message right out of my E-mail box. Is it of any concern if the raw-message has in the header's destination my e-mail address? Will that perhaps confuse its ability to learn spam from ham?

Any other suggestions about sa-learning

share|improve this question

I use the raw message. There's no need to trim the messages before running sa-learn.

share|improve this answer
An advantage of using the raw message is that sa-learn can also process the headers, which may be more useful than the body itself. – John Gardeniers Jul 29 '12 at 0:44
As long as you give it separate --ham and --spam runs, it's all good. – Avery Payne Jul 3 '14 at 20:40

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.