after-queue 統合を使用し、メッセージを Kaspersky Security 8 for Linux Mail Server に転送してスキャンし Postfix メールサーバーに戻す場合、次の条件を満たす必要があります:
socket-in を使用して傍受する必要があります。このソケットは、以下の手順のステップ 9 で、製品の設定ファイルに指定されます。scanner ソケット経由で Scan Logic に転送する必要があります。このソケットは、初期設定スクリプトの実行中に指定されます。socket-out 経由でメッセージを Postfix メールサーバーに戻す必要があります。このソケットは、以下の手順のステップ 9 で、製品の設定ファイルに指定されます。Kaspersky Security 8 for Linux Mail Server が Postfix メールサーバーと連携している時、socket-in はネットワークソケットのみを参照することができます。scanner と socket-out はネットワークソケットまたはローカルソケットを参照できます。
Kaspersky Security 8 for Linux Mail Server と Postfix の after-queue 統合を実行するには:
#klms-begin-afterqueue-filter
content_filter = klms_postfix-afterqueue:$sock_postfix_format
#klms-end-afterqueue-filter
ここで、$sock_postfix_format は、フィルターが受信接続の待ち受けに使用する IP アドレスとポート番号であり、<IP アドレス>:<ポート> の形式(ネットワークソケットの場合)で指定します。
例:
|
#klms-begin-afterqueue-filter
klms_postfix-afterqueue unix - - n - - smtp
-o smtp_send_xforward_command=yes
127.0.0.1:$forward_port inet n - n - - smtpd
-o content_filter=
-o receive_override_options=no_unknown_recipient_checks, no_header_body_checks,no_address_mappings
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8,[::1]/128
-o smtpd_authorized_xforward_hosts=127.0.0.0/8,[::1]/128
-o smtpd_tls_security_level=none
-o message_size_limit=0
#klms-end-afterqueue-filter
ここで、文字列 127.0.0.1:$forward_port inet n - n - - smtpd は、Postfix がフィルタから処理されたメッセージを受け取り、$forward_port でデータをリッスンできるようにするために必要です。
例:
|
#klms-begin-afterqueue-filter
klms_postfix-afterqueue unix - - n - - smtp
-o smtp_send_xforward_command=yes
$unix_socket_name unix n - n - - smtpd
-o receive_override_options=no_unknown_recipient_checks, no_header_body_checks,no_address_mappings
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8,[::1]/128
-o smtpd_authorized_xforward_hosts=127.0.0.0/8,[::1]/128
-o smtpd_tls_security_level=none
-o message_size_limit=0
#klms-end
ここで、文字列 $unix_socket_name unix n - n - - smtpd は、Postfix がフィルターから処理されたメッセージを受け入れ、$unix_socket_name unix ソケットでデータをリッスンできるようにするために必要です。
例:
|
POSTFIX_INTEGRATION_TYPE=afterqueue
START_SMTP_PROXY=1
[global] セクションの header-guard 設定で値 true を指定します。[smtp_proxy] セクションで、次の設定を指定します:socket-in=<IP アドレスとポート番号>(ウィザードのステップ 2 で $sock_postfix_format のために指定した値)
socket-out=<IP アドレスまたはポート番号> または <UNIX ソケット>($forward_port or $unix_socket_name の手順のステップ 4 で指定した値。形式は、inet:<ポート>@<IP アドレス>(ネットワークソケットの場合)または unix:<UNIX ソケット>(ローカルソケットの場合))。
integration=afterqueue
例 1:
例 2:
|