spamassassin training

OSXのspamメール対策にはspamassassin があって、マニュアルによれば自動的に学習するが、学習したメールを廃棄しない となっている。やってられないので Spamtrainer を導入した。
解凍して、素直にインストールした。
spammail notspammail のアカウントははマニュアル通りに作ってあったから、
まず、Spamtrainer のマニュアルにしたがって、root 権限で、spamtrainer -fを実行。
root# /usr/sbin/spamtrainer -f
If necessary, this will create the missing symbolic link in OS X 10.4.x.
It will also fix other configuration issues in the default installation,
which prevent spamassassin from properly working with additional domains.
All files modified by this routine will be first backed up in their
respective directories
Read the ‘Caveats’ chapter in the included documentation for more information.
Would you like to proceed? (yes/no)
yes
Stopping amavisd…
If you use 10.4.7 or 10.4.8, this may produce:
‘Workaround Bonjour: Unknown error: 0’.
It is safe to ignore it.
The symbolic link from
/var/amavisd/.spamassassin to /var/clamav/.spamassassin
has been created
The existing directory /var/amavisd/.spamassassin has been
backed up to /var/amavis/.spamassassin_04132007-130258
The existing file /etc/amavisd.conf has been
backed up to /etc/amavisd.conf_back_04132007-130258
@local_domains_maps = ( 1 ); was added to amavisd.conf
This ensures that additional domains will get processed
by the content filter as well.
The existing file /etc/local.cf has been
backed up to /private/etc/mail/spamassassin/local.cf_back_04132007-130300
local.cf was fixed
This ensures the settings are correct for your system.
Starting amavisd…
If you use 10.4.7 or 10.4.8, this may produce:
‘Workaround Bonjour: Unknown error: 0’.
It is safe to ignore it.
root#Workaround Bonjour: Unknown error: 0
次に、読み込むメールと実施する時間を設定するため
/usr/sbin/spamtrainer -i を実行
root# /usr/sbin/spamtrainer -i
Checking if there is a startup item for ‘learn_junk_mail’ or ‘spamtrainer’
There IS NO plist for learn_junk_mail
There IS a cron job for learn_junk_mail
If you want to use ‘spamtrainer’ it IS RECOMMENDED that this cron be disabled
Would you like me to disable it for you (yes/no)
yes
‘learn_junk_mail’ cron job has been disabled’
There IS NO plist for spamtrainer
There IS NO cron job for spamtrainer
if you want to use ‘spamtrainer’ it is recommended that this be added
Would you like me to enable it for you (yes/no)
yes
What time would you like the job to run (24-hour format)?
Please enter the hour (1)
1
Please enter the minutes (0)
0
Would you like SPAM/HAM messages to be deleted after the learn process? (n)
y
Would you like to log bayes stats into /var/log/spamtrainer.log? (n)
y
Enter name of mail store with SPAM/HAM mailboxes? Enter for default (default)
default
Enter name of mailbox with SPAM? Enter for default (junkmail)
junkmail
Enter name of mailbox with HAM? Enter for default (notjunkmail)
notjunkmail
The following cron job for ‘spamtrainer’ has been prepared
0 1 * * * /usr/sbin/spamtrainer -p default -j junkmail -n notjunkmail -d -l
Would you like to add it? (yes/no)
yes
The following cron job for ‘spamtrainer’ has been enabled’
0 1 * * * /usr/sbin/spamtrainer -p default -j junkmail -n notjunkmail -d -l
root#
これで junkmail, notjunkmail を毎日午前1時に読み込み、消去するはず...

spam mail-その17

4月10日の結果
総メール数50通
迷惑メール数32通
mikeがjunk と判定した迷惑メール8通
positeve failuar0
打率 .250
通算打率 .400
通算三振数 2
11日の結果
総メール数31通
迷惑メール数32通
mikeがjunk と判定した迷惑メール3通
positeve failuar 0
打率 .094
通算打率 .366
通算三振数 2
学習したメール(通算)
spam 1263通
ham 190通
絶不調、立ち直れるか?

spam mail-その12

本日朝7時の時点で
40通のメールがあってspam mail が19通うちmikeが判定したのが8通
打率.421
三振なし
通算打率.463
通算三振1
打率がだんだん下がってくる。なんでじゃ!!
夜8時での学習
spam 通算1061通
ham 通算174通

spam mailその11

4月2日午前7時現在
この週末にきたメール総数73通
spam mail 51通
JUNKmail とmike が判定したメール24通
mike がみのがしたspam mail 27通
positive failuar 1(三振)
週末の打率 .471 三振(junk mail と判定された正常メール)1
3月29日からの通算成績
打率.485 三振1
これまでの学習
junkmail 1039通
notujunkmail 165通
管理者のパソコンではThunderbird を使っている。
ここまでの結論:半分くらいspamと判定しているから、クライアント機のフィルタで***JUNK MAIL*** とsubject にあるものを迷惑メールフォルダに自動的に移動させるように設定(迷惑メールのフィルタを ON にしたら自動的になった)すればいい。さらにThnuderbird の迷惑メール判定で、ほとんどの迷惑メールは迷惑メールフォルダに入っている。
1)迷惑メールフォルダ内の ***JUNK MAIL***  とあるのをソートして、三振があるかないかをチェック 三振があったら notjunkmail@mikeへ転送
2)迷惑メールフォルダ内の***JUNK MAIL*** とついていないメールで三振(Thunderbird が迷惑メールと判断した非迷惑メール)したやつを受信メールフォルダへ移動
3)受信メールフォルダの未読メールからspam mail を選択(選択すると自動的に迷惑メールフォルダに転送される。
3)迷惑メールフォルダにはThuderbird が迷惑メールと判断したメールと、mikeが迷惑メールと判定した***JUNK MAIL***としたメールと、手動で迷惑メールと判定したメールがあることになるから、***JUNK MAIL***以外のメールをjunkmail@mike に転送。、
この手順を踏めばいい。でどんどん迷惑メールフォルダは消去する。
問題は、三振したメールである。まともなメールなのに***JUNK MAIL***がついて消す事ができない。いまのところこういうメールは英語メールで、サーバーから会員へ一括送信んしたメールである。ということはあまり重要性がないということだから、このまま我慢してみる。次回、同じサーバからの配信に***JUNK MAIL***がつかなければいい。

It's alright, I say It's OK. Listen to what I say.