# aptitude install amavis-postfix
arc の圧縮形式も対応したければ rpm から借りてくる.
$ alien arc-[version]-i386.rpm
# dpkg -i arc-[version]_i386.deb
rar はパッケージで入れる
# aptitude install rar
- AMaViSの設定ファイル /etc/amavisd.conf の修正
# H+BEDV AntiVir $antivir = "antivir";
だけで動作するが,
$unrar = "/usr/bin/rar"; $warnsender = "no";
を追加
$warnsender は ウィルス感染者にメールを送る設定.
- Postfix の設定
/etc/postfix/main.cf
content_filter = vscan:
/etc/postfix/master.cf
vscan unix - n n - 10 pipe flags=q user=amavis argv=/usr/sbin/amavis ${sender} ${recipient}
localhost:10025 inet n - n - - smtpd -o content_filter=
# postfix reload
- Reference
山本 道成のページ - ネットワーク&自宅サーバ - Postfix で ウィルスメール対策
http://nap.dyndns.org/~michi/network/virus_postfix.html