From: Michael Orlitzky Date: Tue, 18 Nov 2025 14:18:09 +0000 (-0500) Subject: postfix-logwatch: ignore "removed (canceled)" lines from cleanup X-Git-Tag: 1.40.06~2 X-Git-Url: http://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=c81a8aec64e41898b49913ac1383744890679036;p=postfix-logwatch.git postfix-logwatch: ignore "removed (canceled)" lines from cleanup Postfix 3.10.0 and later log the removal of the associated queue entry when a connection terminates abnormally: https://www.postfix.org/announcements/postfix-3.10.0.html We don't need to do anything with this information, so we add the pattern to the ignore list. --- diff --git a/postfix-logwatch b/postfix-logwatch index d7a363b..283fe31 100755 --- a/postfix-logwatch +++ b/postfix-logwatch @@ -3935,6 +3935,9 @@ sub create_ignore_list() { push @ignore_list, qr/ old session$/; push @ignore_list, qr/fingerprint=/; push @ignore_list, qr/TLS cipher list "/; + + # Added in postfix-3.10.0 + push @ignore_list, qr/^removed \(canceled\)$/; } # Evaluates a given line against the list of ignore patterns.