spamassassin:train_spamassassin_with_ham_and_spam
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
spamassassin:train_spamassassin_with_ham_and_spam [2019/12/04 21:16] – removed peter | spamassassin:train_spamassassin_with_ham_and_spam [2020/07/23 03:17] (current) – old revision restored (2017/03/31 16:11) 92.220.10.100 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== SpamAssassin - Train SpamAssassin with Ham and Spam ====== | ||
+ | Train with Spam. | ||
+ | |||
+ | <code bash> | ||
+ | sa-learn --showdots --mbox --spam spamfolder | ||
+ | </ | ||
+ | |||
+ | |||
+ | Train with Ham. | ||
+ | |||
+ | <code bash> | ||
+ | sa-learn --showdots --mbox --ham hamfolder | ||
+ | </ | ||
+ | |||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Automate learning ===== | ||
+ | |||
+ | This learning can be automated by: | ||
+ | |||
+ | * Create a dedicated email account for Spam and another dedicated account for Ham. | ||
+ | * When a user receives any Spam they should forward this onto the inbox of the Spam email account. | ||
+ | * Users can also copy non-spam email to the inbox of the Ham email account. | ||
+ | * Run a cron job to train against the Spam in the Spam email account. | ||
+ | |||
+ | The script for the Spam can be something like: | ||
+ | |||
+ | <code bash> | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | <WRAP warning> | ||
+ | **WARNING: | ||
+ | |||
+ | This should instead point to the the email account that holds the spam. | ||
+ | </ | ||
+ | |||
+ | Have ham learning be done as: | ||
+ | |||
+ | <code bash> | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | <WRAP warning> | ||
+ | **WARNING: | ||
+ | |||
+ | This should instead point to the the email account that holds the Ham. | ||
+ | </ |
spamassassin/train_spamassassin_with_ham_and_spam.1575494216.txt.gz · Last modified: 2020/07/15 09:30 (external edit)