summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-10-24 08:46:57 +0200
committerErich Eckner <git@eckner.net>2019-10-24 08:46:57 +0200
commit4f23e84425958c2462c70d7aa30046562760f7a5 (patch)
tree433392ca5617adfbac1fb140d69f434fb0c33000
parent1369245b9cf0cda468636c2853d26980b632c67e (diff)
downloadlogwatch-overrides-4f23e84425958c2462c70d7aa30046562760f7a5.tar.xz
courier: ignore cpu time accountings for zdkim and second lines of spamassassin and greylisting
-rw-r--r--courier6
1 files changed, 6 insertions, 0 deletions
diff --git a/courier b/courier
index e2549d2..4870fea 100644
--- a/courier
+++ b/courier
@@ -403,6 +403,9 @@ while (defined($ThisLine = <STDIN>)) {
($ThisLine =~ /^Purging /) or
($ThisLine =~ /^completed,id=/) or
($ThisLine =~ /^queuelo=.*, queuehi=.*/) or
+ # These emit a second line which gets mangled below
+ ($ThisLine =~ /^CPU TIME ACCOUNTING: \S+ processed with \S+ seconds: /) or
+ ($ThisLine =~ /^pythonfilter spamassassin reject\S+: 554 Mail rejected - spam detected: Yes,/) or
# Do we really want to ignore these?
# currently i'm too lazy to include this
($ThisLine =~ /^started,ip=.*/) or ##courieresmtpd
@@ -448,6 +451,9 @@ while (defined($ThisLine = <STDIN>)) {
$ThisLine = $';
}
if (( $Msg ) = ( $ThisLine =~ /^msg=(.*)/ )) { }
+ if (( $Msg ) = ($ThisLine =~ /451 4.7.1 Greylisting in action, please come back in /)) {
+ next;
+ }
$ThisLine =~ s/^: //;