]> gitweb.michael.orlitzky.com - postfix-logwatch.git/commitdiff
postfix-logwatch: ignore "removed (canceled)" lines from cleanup
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 18 Nov 2025 14:18:09 +0000 (09:18 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 18 Nov 2025 14:24:39 +0000 (09:24 -0500)
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.

postfix-logwatch

index d7a363b8ecb63d9fc493470994846770377979ea..283fe31d27a601dd7d189b4e3b688386f93ba58a 100755 (executable)
@@ -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.