How do I enable sieve trace debugging?
Graham Leggett
minfrin at sharp.fm
Wed Oct 14 19:58:57 EEST 2020
Hi all,
I want to enable trace debugging for sieve. Most specifically, I want to know what sieve scripts are running, and whether they’re doing anything.
I cannot get anything other than dead silence from dovecot with respect to sieve.
I have tried the same as asked in this question: https://unix.stackexchange.com/questions/550618/dovecot-sieve-trace-does-not-create-a-log
In my case, the config looks like this:
## 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 = /tmp/sieve-trace
# 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,command,tests,matching
# Enables highly verbose debugging messages that are usually only useful for
# developers.
sieve_trace_debug = yes
This looks sensible, syslog would be a great place to log, but nothing related to sieve appears.
[root at gatekeeper dovecot]# doveadm log find
Looking for log files from /var/log
Debug: /var/log/maillog
Info: /var/log/maillog
Warning: /var/log/maillog
Error: /var/log/maillog
Fatal: /var/log/maillog
Regards,
Graham
—
More information about the dovecot
mailing list