ドキュメントセンター よくある質問 文書資料
はじめに - ドキュメントセンターについて 使用条件 ご意見・ご感想は公開会議室へ 著作権表示
ホーム ドキュメントセンター 新着文書 よくある質問 FAQ 問答集 ビジネス 事業計画 概況 デベロッパー 技術資料 仕様書 ガイドライン 想定された使い方 ヘルプ 利用方法や一般的な操作方法 その他の文書

はじめに
ドキュメントセンターを初めてご利用する方や運営方針についての基本的な姿勢をご覧になりたい方へ。

ドキュメントセンター 新着情報
GetCurrentImage failedと出て、画像の保存ができないのですが? (FAQ) 2007.08.23
clamavをclamav-0.90以降に更新すると、clamdが起動しなくなりましたが? (FAQ) 2007.07.31
make.confにX11BASEを設定するように言われましたが? (FAQ) 2007.07.30
serial型の次に挿入すべき値を変更するにはどうしますか? (FAQ) 2007.06.01
次のSERIAL型で用いられる値を得るにはどうしますか? (FAQ) 2007.05.31
WindowsXPを入れた端末にPINGが通りませんが? (FAQ) 2007.05.21
vmware3上でWindowsXPを導入すると途中で待たされ、失敗しますが? (FAQ) 2007.05.19
vmware3のインストールがうまくいきませんが? (FAQ) 2007.05.18
gnome上で解像度の変更ができないのですが? (FAQ) 2007.05.17
gnome上で解像度の変更をするにはどうしますか? (FAQ) 2007.05.17

よくある質問
ご利用の皆様から多く寄せられる質問にお答えしています。
ディーエーオフィス
サーバ
アプリケーション

語解説
ディーエーオフィスなどが利用する用語に関する解説を行います。

ディーエーオフィスホームページ
メッセージセンター
ディーエーオフィスサポートターミナル
トピックスセンター
リレーショナルナレッジベース
amavisd-new
 本文書では、Postfix、ClamAVと組み合わせて使うことを前提としている。詳しくは、「[[docs link 6951]]」を参照のこと。

! インストール

 amavisd-newをインストールする前に、Perlのバージョンを確認する。必要に応じて最新版を導入しておく。

cd /usr/ports/lang/perl5.8
make install

cd /usr/ports/security/amavisd-new/
make install

! オプションの選択

 特に何も選択しなくとも良い。

Options for amavisd-new 2.4.1_1,1
[X] MYSQL MySQL support
[ ] PGSQL PgSQL support
[ ] LDAP LDAP support
[ ] MILTER sendmail milter support

! ログ領域を確保

cd /var/log
mkdir amavis
chown vscan:vscan amavis
cd amavis
touch amavis.log
chown vscan amavis.log
cd /var
chown -R vscan:clamav amavis

! 設定ファイルを確認する

 「amavisd.conf-dist」が用意されているので控えとして参照しつつ、amavisd.confを設定していく。特に変更しなくとも、とりあえずは起動できる。

cd /usr/local/etc
ee /usr/local/etc/amavisd.conf

 修正したいところで目立ったところはドメイン名。ヘッダーに記入される。

$mydomain = 'test.com';

! 自動起動を有効にする

/usr/local/etc/rc.d/amavisd.sh

 起動スクリプトが立ち上げ時に有効となるよう調整する。rc.confを開き、追記する。

ee /etc/rc.conf

amavisd_enable="YES"

! postfix側master.cfへ設定を追記

 設定は修正するのではなく、新しく一番下あたりに追加する。

ee /usr/local/etc/postfix/master.cf

smtp-amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1200
-o disable_dns_lookups=yes
127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000

! postfix側main.cfへ設定を追記

 設定は修正するのではなく、新しく一番下あたりに追加する。

ee /usr/local/etc/postfix/main.cf

content_filter = smtp-amavis:[127.0.0.1]:10024

! 起動する

 amavisd-newを起動するだけで良い。

/usr/local/etc/rc.d/amavisd.sh start

! telnetで確認する

 10024ポートへ接続して反応があれば問題ない。ログイン後は、すぐに「quit」コマンドで終了すれば良い。

--> $ telnet 127.0.0.1 10024
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

220 [127.0.0.1] ESMTP amavisd-new service ready

--> quit

221 Bye
Connection closed by foreign host.

! インストール後のメッセージ

To use amavisd-new, you need to install at least one virus scanner.
The following virus scanners are available in the FreeBSD ports
collection:

/usr/ports/security/vscan McAfee VirusScan
/usr/ports/security/clamav Clam Antivirus
/usr/ports/security/f-prot F-Prot Antivirus
/usr/ports/security/drweb DrWeb antivirus suite

Enable amavisd-new in /etc/rc.conf with the following line:

amavisd_enable="YES"

If you want to use the amavis sendmail milter interface,
you need the following additional line in /etc/rc.conf

amavis_milter_enable="YES"

Configuration templates are available in /usr/local/etc
as amavisd.conf-dist, amavisd.conf-sample and amavisd.conf-default.
Documentation is available in /usr/local/share/doc/amavisd-new.

===> Installing rc.d startup script(s)
===> Registering installation for amavisd-new-2.4.1_1,1


文書番号 06956
日付 2006.06.11
参照数 535

ドキュメントセンター
  はじめに 新着ドキュメント 使用条件 著作権 お問い合せ
Copyright 2003 daoffice design and management company. all rights reserved.