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 am still new at this so be gentle.

I have setup a server with postfix, dovecot, apachce2, PHP5, PHPmyadmin, spamassassin, clamav, amavis.

Now to train spamassassin apperently I need to use IMAP.

  • But can I use POP3 saved emails in any way?
  • Is it possible to copy mails from Thunderbird to the server and train spamassassin

Its because my spam folder on my thundird email client has alot of "good" examples of spam.

share|improve this question
up vote 4 down vote accepted

Thunderbird stores its mail folders as mbox files (see the Thunderbird FAQ). If you locate the file for the spam folder, you can train from it using the --mbox switch:

sa-learn --spam --mbox /path/to/spam_mbox
share|improve this answer
So I upload the contents of my spam folder in thunder bird to e.g. /tmp/spam folder an execute above command? – Cudos Nov 22 '09 at 18:38
@Cudos Yes, copy the Spam folder mbox file from your Thunderbird profile and then run the above command. You can find further documentation for sa-learn at – Phil Ross Nov 23 '09 at 10:10

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.