IMSS インストール時に master.cf を編集する
InterScan Messaging Security Suite 5.11-Build_1079 Linux 版をインストールする際、以下のようなメッセージが表示される。
Manually change the Postfix configuration to enable the content filter interface to the InterScan MSS for Unix scanning daemon in the following fashion: Insert or modify the following settings to /etc/postfix/main.cf mydomain = your.domain.name myhostname = your.hostname.domainname mydestination = $myhostname, localhost.$mydomain, $mydomain default_process_limit=200 imss_timeout=10m imss_connect_timeout=1s content_filter = imss:localhost:10025 imss_destination_recipient_limit=200 imss_destination_concurrency_limit=20 Insert the following settings to /etc/postfix/master.cf #InterScan MSS: content filter smtp transport imss for InterScan MSS imss unix - - n - - smtp -o disable_dns_lookups=yes -o smtp_connect_timeout=$imss_connect_timeout -o smtp_data_done_timeout=$imss_timeout #InterScan MSS: content filter loop back smtpd localhost:10026 inet n - n - 20 smtpd -o content_filter= -o smtpd_timeout=$imss_timeout -o local_recipient_maps= -o myhostname=localhost.$mydomain
IMSS は既定では Postfix と連携するようになっているが、連携をさせるためには main.cf と master.cf に設定を追加する必要がある。上のメッセージはそれぞれのファイルに対して追加すべき項目を示している。
しかし、master.cf に追加すべき項目については、上記をそのまま貼り付けると Postfix が正常に動作しない。正常に動作させるためには「-o」から始まる行の先頭にスペースかタブを挿入する必要がある。
#InterScan MSS: content filter smtp transport imss for InterScan MSS imss unix - - n - - smtp -o disable_dns_lookups=yes -o smtp_connect_timeout=$imss_connect_timeout -o smtp_data_done_timeout=$imss_timeout #InterScan MSS: content filter loop back smtpd localhost:10026 inet n - n - 20 smtpd -o content_filter= -o smtpd_timeout=$imss_timeout -o local_recipient_maps= -o myhostname=localhost.$mydomain
なお、インストール中のメッセージでは先頭にスペースやタブが挿入されていないが、「InterScan Messaging Security Suite for UNIX 操作マニュアル」の該当箇所には先頭にタブが挿入されているように見える。