Package: logwatch
Version: 7.5.0-1
Severity: normal
Tags: patch

In Dovecot 2.3.4.1 (as shipped in buster), LMTP deliverly log lines have
subtly changed such that the Dovecot service script for logwatch no
longer recognizes them. See diff below for illustrative example and fix.

Hope this helps!
-jo


--- /usr/share/logwatch/scripts/services/dovecot        2018-12-30 
04:17:30.000000000 -0500
+++ /etc/logwatch/scripts/services/dovecot      2019-09-23 13:12:40.938216046 
-0400
@@ -242,6 +242,11 @@
     # dovecot: lmtp(u...@domain.com): 
msgid=<0.0.b.b83.1d385668207af0...@b12.mta01.sendsmaily.info>: saved mail to 
INBOX
       $Deliver{$User}{$Mailbox}++;
 
+# LMTP-based delivery Dovecot 2.3
+    } elsif ( ($User, $Mailbox) = ( $ThisLine =~ /^$dovecottag 
lmtp\((.*)\)<.*><.*>: msgid=.*: saved mail to (.*)/ ) ) {
+    # dovecot: lmtp(u...@domain.com)<2844><lzDeDC72hF0cCwAAcYS8Zw>: 
msgid=<20987363.1159.374...@wordpress.com>: saved mail to INBOX
+      $Deliver{$User}{$Mailbox}++;
+
 # LMTP-based Sieve delivery
    } elsif (my ($User, $Mailbox) = ( $ThisLine =~ /^$dovecottag lmtp\((?:\d+, 
)?(.*?)\)(?:<[^>]+><[^>]+>)?: .*: sieve: msgid=.*: stored mail into mailbox 
'(.*)'/ ) ) {
       $Deliver{$User}{$Mailbox}++;



-- System Information:
Debian Release: 10.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 4.19.0-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages logwatch depends on:
ii  exim4-daemon-heavy [mail-transport-agent]  4.92-8+deb10u1
ii  perl                                       5.28.1-6

Versions of packages logwatch recommends:
ii  libdate-manip-perl   6.76-1
ii  libsys-cpu-perl      0.61-2+b4
ii  libsys-meminfo-perl  0.99-1+b3

logwatch suggests no packages.

-- no debconf information

Reply via email to