H+BEDV AntiVir MailGate
インストール
最新情報:AntiVir Mailgate Ver2.0.3-25 2005/09/20
       AntiVir Personal Editionのみ無料になりました。
       AVIRAブランドとして発売
       AntiVir Mailgateはテスト版として有効期限が1ヶ月
 
  1:AntiVir MailGateのインストール
2:Antivir Mailgateの設定
3:postfix等の設定
4:ライセンス取得
5:自動アップデート
6:書籍案内
 
1:AntiVir MailGateのインストール
   以下はpostfixが正常動作している事が条件ですpostfixについてはここ
   H+BEDV AntiVirのここから AntiVir MailGate Linuxをダウンロード
   して下さい。
(ファイル名:antivir-mailgate-prof-2.0.2-**.tar.gz
   ここもとりあえず /usr/local/src 等にダウンロードする。
   # cd /usr/local/src
   
# tar xvzf antivir-mailgate-prof-2.0.2-**.tar.gz
   # cd antivir-mailgate-2.0.2-**   ←ここの数字はバージョンにより変化
   # su
   # ./avinstall.pl

99%までEnterを押し続ける(以下EntはEnter-Keyを示す)
(99%)provided the Licensee has quoted its UST/VAT-ID number.

Do you agree the License (y/n): y ←ここでは必ず「y」を入力する事

Enter the path of init directory
(default is: /etc/rc.d):Ent or /etc/init.d

Enter the path where AntiVir MailGate binaries will be located
(default is: /usr/sbin): Ent

Enter the path where scan engine and virus definition file will be located
  (default is: /usr/lib/AntiVir):
  The directory /usr/lib/AntiVir doesn't exists. Try again!
  Should I create it? (y/n): y

Enter the path where manual pages will be located
(default is: ): Ent

Enter the path to your license file: Ent

The automatic internet updater will check every hour
if a new update is available.
Default is yes. Install the automatic internet updater? (y/n): y


   以上でインストールは完了しました。
 
2:Antivir Mailgateの設定

/etc/avmailgate.conf を以下の様に設定します。
#User uucp
User uucp
#Group uucp
Group uucp

#Postmaster postmaster
Postmaster postmaster

#MyHostName localhost
MyHostName psg.jp  自分のドメインを入力

#SpoolDir /var/spool/avmailgate
SpoolDir /var/spool/avmailgate

#AntiVirDir /usr/lib/AntiVir
AntiVirDir /usr/lib/AntiVir

#TemporaryDir /tmp
TemporaryDir /tmp

#SMTPBanner "AntiVir MailGate"
SMTPBanner "AntiVir MailGate"

# PidDir /var/tmp
PidDir /var/run/antivir

# ListenAddress 0.0.0.0 port 25
ListenAddress localhost port antivir

# ForwardTo SMTP: localhost port 825
ForwardTo SMTP: localhost port smtp-backdoor

# VirusAlertsUser AvMailGate
VirusAlertsUser root


以下は管理者だけでなく
受信者のほうにも検出メールを送りたい場合
(設定しなくても可能です)

# (NO is only available in commercial mode)
# ExposeRecipientAlerts LOCAL
ExposeRecipientAlerts YES
 

  フォルダーの作成とオーナ設定
# mkdir -m 755 /var/run/antivir
# chown uucp:uucp /var/run/antivir

  必要な場合は以下も作成
# mkdir -m 700 /var/spool/avmailgate
# chown uucp:uucp /var/spool/avmailgate

# mkdir -m 700 /var/spool/avmailgate/incoming
# chown uucp:uucp /var/spool/avmailgate/incoming

# mkdir -m 700 /var/spool/avmailgate/outgoing
# chown uucp:uucp /var/spool/avmailgate/outgoing

# mkdir -m 700 /var/spool/avmailgate/rejected
# chown uucp:uucp /var/spool/avmailgate/rejected

  ファイルのコピー
# cd antivir-mailgate-2.0.2-5  ←ここの数字はバージョンにより変化
# cp ./avmailgate/init/rc.avgate.RedHat /etc/init.d/avgate
# cd /etc/init.d
# chmod 755 avgate

  必要な場合
# cd antivir-mailgate-2.0.2-5  ←ここの数字はバージョンにより変化
# cp ./avmailgate/etc/avmailgate.acl /etc/avmailgate.acl

  自動起動の設定
# /sbin/chkconfig --add avgate
# /sbin/chkconfig --list avgate
avgate    0:オフ 1:オフ 2:オン 3:オン 4:オフ 5:オン 6:オフ
#
 
3:postfix等の設定
   /etc/servicesに追加する

# Content Filter for postfix
antivir      10024/tcp     #Port for avgated
smtp-backdoor 10025/tcp     #Port for postfix

 

  /etc/postfix/master.cfに追加する。(スペースで区切る事

localhost:smtp-backdoor inet n - n - - smtpd -o content_filter=
 

  /etc/postfix/main.cfに追加する。

# Antivir Einbindung
content_filter = smtp:127.0.0.1:10024
 

 
 
2:ライセンス取得
   個人利用は無料ですが、ライセンスを取得する必要があります。
   ここにアクセスして入力下さい。(必須項目)

ライセンスを取得画面
  Name 名前
Street 住所
Zip/Postal 郵便番号
City 都市名
National Japanを選択する。
email メールアドレス(ここにライセンスが送られて来る)
Phone 電話・FAX(入力しなくても可)
   当然ですが英語(アルファベット)で入力して下さい。←ローマ字

   全て入力しましたら「send」ボタンをクリックすれば完了です。
   指定したメールアドレスに添付でライセンスファイルが届きます。

   届いた[hbedv.key]を /usr/lib/AntiVir/ にコピーして下さい。
   hbedv.keyを保存したフォルダーに移動して

# cp hbedv.key /usr/lib/AntiVir/
# chown uucp:uucp /usr/lib/AntiVir/hbedv.key

   これでライセンス関係は完了です。
   1年に一回更新が必要です。当サイトは8月に更新しました。
   更新というページはありませんので新規取得という形になります。
 
3 自動アップデート
   最初の1回だけ手動でアップデートプログラムを実行して下さい。
   新しい定義ファイルが有った場合はアップデートします。

# /usr/lib/AntiVir/antivir --update

AntiVir / Linux Version 2.1.0-22
Copyright (C) 1994-2004 by H+BEDV Datentechnik GmbH.
All rights reserved.

checking for updates

06.25.00.46 <=> 06.25.00.46 [vdf, loaded]
06.25.00.03 <=> 06.25.00.03 [engine, running]
02.01.00.22 <=> 02.01.00.22 [program, running]

AntiVir is up-to-date

  ウィルス定義ファイルの更新
  デフォルトでは、毎時55分に定義ファイルの更新を行うように/etc/crontabに
  追加されています。(55分は作業時間等により変化すると思います)

55 * * * * root /usr/sbin/antivirupdater -q

  起動は以下を実行するかパソコンを再起動する事で可能です。
# /etc/rc.d/init.d/avgate start  ←MailGateの起動
# /usr/sbin/postfix reload     ←postfixの再起動

起動したら、自宅サーバで運用しているメールアドレスにメールを送ってみます。
そして受け取ったメールのヘッダに下記のような記述が追加されていれば成功です。
(通常の表示では変化はありませんプロパティや詳細で確認出来ます)

X-AntiVirus: checked by AntiVir MailGate
(version: 2.0.2-5; AVE: 6.25.0.3; VDF: 6.25.0.46; host: psg.jp)

実際に届いたウィルス駆除メールです。↓
* * * * * * * * * * * * * * * AntiVir ALERT * * * * * * * * * * * * * * *
This version of AntiVir is licensed for private and non-commercial use.

AntiVir has detected the following in a mail sent through your server:

        Worm/NetSky.Q worm      

The mail was not delivered.

It has been quarantined with the following queue id:

        18398-42828125

Mail-Info:
--8<--

 Message-Id: <20040509045012.E08B58049@mail.psg.jp>
 From: ******@jeans.ocn.ne.jp
 To: watashi@psg.jp
 Date: Sun, 9 May 2004 13:52:05 +0900
 Subject: Failure (watashi@psg.jp)
 Mail-From: ******@jeans.ocn.ne.jp
 Rcpt: watashi@psg.jp
 Queue-Id: 18398-42828125
 Status: The mail was not delivered!

--8<--


Log-File:
--8<--

checking file "/var/spool/avmailgate/incoming/df-18398-42828125"

--8<--
This version of AntiVir is licensed for private and non-commercial use.

-- 
AntiVir for UNIX
Copyright (c) 1994-2004 by H+BEDV Datentechnik GmbH.
All rights reserved.
For more information see http://www.antivir.de/ or http://www.hbedv.com/
 
更新の必要が無い(企業でも可)Clam Antivirus というのもあります。2004/10
ClamAVのページ
  
4 書籍案内 本を購入すならここでも(1,500円以上は送料無料)
   10日おぼえるLinux9サーバー構築・管理 翔泳社 ¥2,940(税込)
     Linux User’s Guide ソフトバンク ¥2,940(税込)
   はじめてのRedHatLinux ソフトバンク ¥2,520(税込)
   できるLinuxサーバー インプレス ¥2,625(税込)
   RedHat Linux9で作る自宅サーバー ラトルズ ¥2,499(税込)
   はじめてのRed Hat Linux9 サーバ構築編 秀和システム ¥2,730(税込)
   はじめてのRed Hat Linux9 入門編 秀和システム ¥2,310(税込)
   ネットワークサーバー構築ガイド 秀和システム ¥4,515(税込)

Home