วันพุธที่ 29 พฤศจิกายน พ.ศ. 2549

Train SpamAssassin

Why Train?

SpamAssassin comes with a large set of rules for likely spam behavior. This is somewhat effective, but not very smart. Training allows SA to learn what kind of spam you get over time, and adjust its results accordingly.

How To Train

First, file all your mail into folders which only contain spam or non-spam ("ham"), but not both.
Then, run the commands listed below, based on the format your mail server uses to store mail. Most unix systems use "mbox" format folders. Some use "mbx" folders, while others use Maildir format.

Training with mbox format
sa-learn --no-sync [--spam or --ham] --mbox [folder]

Training with Maildir format
sa-learn --no-sync [--spam or --ham] [folder/{cur,new}]

For example:
sa-learn --no-sync --spam ~/Maildir/.INBOX.Spam/{cur,new}
or
sa-learn --no-sync --ham ~/Maildir/.INBOX/{cur,new}

ที่มา

ไม่มีความคิดเห็น: