spamassassinのルール更新

| | コメント(0) | トラックバック(0)
自宅で使っているspamassassinには、ルール更新の為の「sa-update」ってスクリプトがある。

理由はよく調べていないけど、このスクリプトを使ってもルールが更新されていない事に気づいた。

とりあえず以下の方法で手動でルールの更新を行った。

#作業ディレクトリ移動
cd /etc/mail/spamassassin

#最新のルールファイルを取得
wget http://tlec.linux.or.jp/docs/user_prefs

#既存のルールファイルのバックアップ
cp /etc/mail/spamassassin/local.cf /etc/mail/spamassassin/local.cf.20090913

#最新のルールファイルと、ユーザーのホワイトリストを読み込むようにlocal.cfを修正

-----
include user_prefs

#スパムの閾値
required_score 6.2

report_safe 0
rewrite_header Subject *****SPAM*****

whitelist_from hogehoge.net
whitelist_from mogemoge.co.jp

-----

ついでに、svscanの設定も変更する。

-----

#!/bin/sh
MAX=10
exec spamd -c /etc/mail/spamassassin/local.cf -i -m ${MAX} --username=qscand --syslog=stderr 2>&1

-----

※今まで「-cオプション」を付け忘れてた為、「-c /etc/mail/spamassassin/local.cf」と、読み込む設定ファイルのパスを指定。

トラックバック(0)

このブログ記事を参照しているブログ一覧: spamassassinのルール更新

このブログ記事に対するトラックバックURL: http://jhh-style.homelinux.com/cgi-bin/mt/mt-tb.cgi/333

コメントする

2009年11月

1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          

アーカイブ