Dovecot Sieve Trace はログを生成しません。

Dovecot Sieve Trace はログを生成しません。

Dovecot 2.2.33.2とSieve Pigeonhole 0.4.21に問題があります。

メッセージが移動、削除、または拒否されたかどうか、フィルタがメッセージにどのようなアクションを実行しているか、どのフィルタリング規則が使用されているかを追跡したいと思います。

そのため、sieve-trace設定が見つかりましたが、sieveはトレースログファイルを生成しません。

私のトレースデバッグを設定しましたが、/etc/dovecot/conf.d/90-sieve.conf次のようになります。

    ## TRACE DEBUGGING
  # Trace debugging provides detailed insight in the operations performed by
  # the Sieve script. These settings apply to both the LDA Sieve plugin and the
  # IMAPSIEVE plugin.
  #
  # WARNING: On a busy server, this functionality can quickly fill up the trace
  # directory with a lot of trace files. Enable this only temporarily and as
  # selective as possible.

  # The directory where trace files are written. Trace debugging is disabled if
  # this setting is not configured or if the directory does not exist. If the
  # path is relative or it starts with "~/" it is interpreted relative to the
  # current user's home directory.
  sieve_trace_dir = ~/sieve/

  # The verbosity level of the trace messages. Trace debugging is disabled if
  # this setting is not configured. Possible values are:
  #
  #   "actions"        - Only print executed action commands, like keep,
  #                      fileinto, reject and redirect.
  #   "commands"       - Print any executed command, excluding test commands.
  #   "tests"          - Print all executed commands and performed tests.
  #   "matching"       - Print all executed commands, performed tests and the
  #                      values matched in those tests.
  sieve_trace_level = "actions"

  # Enables highly verbose debugging messages that are usually only useful for
  # developers.
  sieve_trace_debug = yes

  # Enables showing byte code addresses in the trace output, rather than only
  # the source line numbers.
  #sieve_trace_addresses = no

すべてを試した後、sieve_trace_levelセミコロンの有無にかかわらずすべてのパラメータを使用しましたが、ユーザーフィルタディレクトリにログは表示されません。

私の仮想ユーザーのユーザーディレクトリがここにあり、以下に/var/mail/vhosts/<domain>/<user>/ログを生成する必要がありますが、/var/mail/vhosts/<domain>/<user>/sieveそうではありません。

私のメールログにフィルタリングエラーは記録されません。どうすればいいのかご存知ですか?メール処理のすべてのステップを見たいです。

ありがとう

ベストアンサー1

私の問題は、表示されたディレクトリが.NETで上書きされたため、設定dovecot -nしたディレクトリとは異なることです。90-sieve.conflocal.conf

ディレクトリが存在しないため、dovecotは何も記録しません。

おすすめ記事