2002年12月 9日

Antivirus

天気:晴れ
体重:90.0Kg

久々の更新である。
いろいろあるのだが、ちょっと忙しかったので更新をさぼっていた。
今回、メールサーバーのpostfixにAntivirusを設定したので、防備録として書
いておこう。

Antivirus engineとしてはpersonal Useは無料という H+BEDV のAntiVirを使う
ことにする。
AntiVir MailGate and AntiVir for Linux and FreeBSD is also free of
charge for private (individual, non-commercial) use. If you will
register under http://www.hbedv.com/private, you will then receive a
licence file for AntiVir for Linux vaild for 12 months. Support is
provided exclusively by e-mail via linux_support@antivir.de.
と書かれている。
AntiVir for Linux - Private User Registration を書き、
personal license key を送ってもらう。

AntiVir for FreeBSD avfbsrv.tgzをいただいてきて、解凍。
./installで/usr/lib/AntiVir/以下にinstallされる。
いろいろ質問されるが/etc/antivir.confに保存されるようだ。

registするとbedv.keyが送られてくるので/usr/lib/AntiVirに入れておく。
Virusデータを自動更新するための/usr/lib/AntiVir/avupdaterから
/usr/local/etc/rc.d/avupdater.shにsympolic link作成。
/usr/local/etc/rc.d/avupdater.sh start
で起動しておく。

AMaViS perl

mailをスキャンするためにAMaViS perlを使うことにする。
cd /usr/ports/security/amavis-perl
defaultでは有料のMacAfeeのvscanをエンジンとして使うようになっているの
でMakefileを書き換える。
#BUILD_DEPENDS= ${LOCALBASE}/bin/uvscan:${PORTSDIR}/security/vscan \
BUILD_DEPENDS=  ${LOCALBASE}/bin/lha:${PORTSDIR}/archivers/lha \
                ${LOCALBASE}/bin/unarj:${PORTSDIR}/archivers/unarj \
            (略)
でpostfixをMTAとして使っているので
make MTA=postfix
 Use virus scanner(s):       H+BEDV AntiVir/X
ときちんと認識していることを確認。

make install
Please read documentation on http://www.amavis.org/ before you start using it.
  To configure postfix, you have to do later:
  * add
    content_filter = vscan:
    to /usr/local/etc/postfix/main.cf
  * add
    vscan  unix -       n       n       -       10      pipe    user=vscan
        argv=/usr/local/sbin/amavis ${sender} ${recipient}
    localhost:10025 inet n -    n       -       -       smtpd
        -o content_filter=
    to /etc/postfix/master.cf.
Please read /usr/local/share/doc/amavis/README.postfix for further information
と表示されるのでその通りに修正し、
/usr/local/sbin/postfix reload
でおしまい。
送信も受信もAntivirでスキャンされる。

trackbacks

trackbackURL:

comments

comment form
comment form