I have Debian 10 (Buster) installed with dovecot, sieve and logwatch.
In my sieve file I have rules with discard. As a consequence I get plenty of the following lines in my syslog file.
Nov 2 19:46:17 xxxxx dovecot: lda(xxxxx)<12473><IOa9OvlToF+5MAAAwswyaQ>: sieve: msgid=<[email protected]>: marked message to be discarded if not explicitly delivered (discard action)
In the logwatch report I see this
**Unmatched Entries**
dovecot: lda(xxxxx)<1003><RUjQJX2GoV/rAwAAwswyaQ>: sieve: msgid=<[email protected]>: marked message to be discarded if not explicitly delivered (discard action): 1 Time(s)
...
I checked the dovecot filter code of logwatch in /usr/share/logwatch/scripts/services/dovecot and a rule to ignore these messages is present, but is apparently not working.
This is what I find in the script file:
} elsif ( $ThisLine =~ /^$dovecottag (?:lda|deliver|lmtp)\(.*\): .*sieve: msgid=.* marked message to be discarded if not explicitly delivered/ ) {
# dovecot: lda(joe): sieve: msgid=<m$01$@com>: marked message to be discarded if not explicitly delivered (discard action)
# IGNORE
}
My dovecot version is 2.3.4.1. My logwatch version is 7.4.3.