我的 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
我的问题是dovecot -n
显示的目录与我在 中配置的目录不同90-sieve.conf
,因为我在 中覆盖了它local.conf
。
该目录不存在,因此 dovecot 没有记录任何内容。