Clamassassinでメールが届いたとき自動処理させる
(CentOS3.5)Modified: 1 August 2005
ダウンロードしてインストールする
以下からダウンロードします。
http://drivel.com/clamassassin/
2005年8月1日に、"clamassassin-1.2.2.tar.gz"がダウンロードできました。
以下の手順でインストールします。
# tar xvf clamassassin-1.2.2.tar.gz # cd clamassassin-1.2.2 # ./configure # make install"make"は要りません。
Procmailの設定
"/etc/procmailrc"を以下の内容で作成します。
:0fw | /usr/local/bin/clamassassin
Postfixの設定
"/etc/postfix/main.cf"を以下のように変更します。cd
: mailbox_command = /usr/bin/procmail :Postfixを再起動する。
# service postfix restart
メールを出してみる
受け取ったメールに、以下のようなヘッダーがついておればOKです。
X-Virus-Status: No X-Virus-Checker-Version: clamassassin 1.2.2 with clamdscan / ClamAV 0.86.2/1000/Mon Aug 1 04:28:06 2005