|
ルーティン段階でのコンテキストフィルタモード |
|
メールサーバによって処理されるメッセージは全て、ルーティング段階を通過します。そのため、ルーティング段階の最後はフィルターを接続するのに最も適しています。接続を可能にするには、$MAILBIN/cf/process.cfを以下のように編集します。 以下のラインを探してください。 LOGMSG=() # This is a LIST of files where to log.. #| The LOGMSG variable is used by the intercept facility (in crossbar.cf) #| to make sure only a single copy of a message is saved when required. #| Each sender - recipient address pair can cause an intercept which can #| specify a file to save the message to. This variable is appended to #| elsewhere, and processed at the end of this function. その下に以下の内容を追加します。 ###-> Dr.Web MailD support ch='"DEFAULT_BIN_PATH/drweb-zmailer.sh" --hash __EDIT_THIS__ --file $POSTOFFICE/router/$file' case "$ch" in -1*) #reject or disacrd /bin/rm -f "$file" return ;; 1*) #tempfail /bin/rm -f "$file" return ;; *);; esac ###-> end of Dr.Web MailD support _EDIT_THIS__(--hashパラメータの値)には、Dr.Web MailD設定ファイル[Sender]セクションのSecureHashパラメータと同じ値を設定し、同セクションのUseSecureHashパラメータの値にYesを指定します。 |