
| ・ |
ドキュメントセンターを初めてご利用する方や運営方針についての基本的な姿勢をご覧になりたい方へ。
|
| ご利用の皆様から多く寄せられる質問にお答えしています。 |
|
| ・ |
ディーエーオフィスなどが利用する用語に関する解説を行います。
|
|
|
 |
 |  |
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 |
|