spamassasinでメールを学習させる方法

sa-laernコマンドを使って学習させる事が出来る。Maildir形式でメールを扱っていればディレクト単位リもしくはファイルを直接指定することが可能。

sa-learn –spam Maildir/.spam-dir
sa-learn –spam Maildir/cur/spam-mail

スパムじゃないメールは–spamを–hamに変えて実行すればOK。

Learning
--------

SpamAssassin includes a Bayesian learning filter, so it is worthwhile
training SpamAssassin with your collection of non-spam and spam,
if possible.  This will make it more accurate for your incoming mail.
Do this using the "sa-learn" tools, like so:

	sa-learn --spam ~/Mail/saved-spam-folder
	sa-learn --ham ~/Mail/inbox
	sa-learn --ham ~/Mail/other-nonspam-folder

If these are mail folders in mbox format, use the --mbox switch, for
Maildirs use a trailing slash, like Maildir/cur/.

Use as many mailboxes as you like.  Note that SpamAssassin will remember
what mails it has learnt from, so you can re-run this as often as you like.

http://svn.apache.org/repos/asf/spamassassin/branches/3.2/README

コメントを残す