diff options
author | Erich Eckner <git@eckner.net> | 2019-02-07 06:50:56 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-02-07 06:50:56 +0100 |
commit | e66fe8ffe3f862b82085468cff0d6cce87de2bef (patch) | |
tree | d542fd3e112e0dc284896167b408ce401b1bd226 | |
parent | 1b6ee6762f1678f10122a2f590d1fea62e988de1 (diff) | |
download | logwatch-overrides-e66fe8ffe3f862b82085468cff0d6cce87de2bef.tar.xz |
courier: courierfilter lines
-rw-r--r-- | courier | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -354,6 +354,7 @@ my %ErrorTbl2; my %Failed; my %FailRe; my $From; +my $GreylistReject = 0; my $Host; my $ID; my $LastSMTPErrCode; @@ -553,10 +554,23 @@ while (defined($ThisLine = <STDIN>)) { PushUnmatched $service, $ThisLine; } } elsif ( $service =~ /^courierfilter$/ ) { - if ( $ThisLine =~ /^Starting perlfilter/ ) { + if ( $ThisLine =~ /^Starting p(erl|ython)filter/ ) { $Startpfilter++; - } elsif ( $ThisLine =~ /^Stopping perlfilter/ ) { + } elsif ( $ThisLine =~ /^Stopping p(erl|ython)filter/ ) { $Stoppfilter++; + } elsif ( $ThisLine =~ /^pythonfilter greylist reject/ ) { + $GreylistReject++; + } elsif ( + ( $ThisLine =~ /^Initialized the \S+ python filter$/ ) or + ( $ThisLine =~ /^Debugging filter invoked:$/ ) or + ( $ThisLine =~ /^E?[GPU]ID: \d+$/ ) or + ( $ThisLine =~ /^Additional groups: / ) or + ( $ThisLine =~ /^Body: / ) or + ( $ThisLine =~ /^Control file: / ) or + ( $ThisLine =~ /^CWD: / ) or + ( $ThisLine =~ /^Raw stat: / ) or + 0 + ) { } else { PushUnmatched $service, $ThisLine; } @@ -641,6 +655,10 @@ if ( keys %ConnTimeout ) { print $out."\n"; } +if ( ( $Detail >= 5 ) and ($GreylistReject) ) { + print "\nGreylisted Emails: ".nTimes($GreylistReject)."\n"; +} + if ( ( $Detail >= 5 ) and (keys %Connection) and (!$Tables)) { my ($out, $nmb) = recprint1(\%Connection, 2, [ "Protocol", "Host" ], [0,1], 2); print "\nConnections: ".nTimes($nmb)."\n"; |