diff options
author | Erich Eckner <git@eckner.net> | 2021-02-26 14:23:40 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-02-26 14:23:40 +0100 |
commit | 0802c342c390d72c784eecffe54d3e67cf51ce0d (patch) | |
tree | 09231b2ba8de57ed90e0cc23b4a4c853ec7a6a4b | |
parent | 8892b0cf5076dc6498d1226b2565747030dd91cd (diff) | |
download | logwatch-overrides-0802c342c390d72c784eecffe54d3e67cf51ce0d.tar.xz |
courier: show errors on different detail levels
-rw-r--r-- | courier | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -455,9 +455,6 @@ 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/^: //; @@ -476,6 +473,19 @@ while (defined($ThisLine = <STDIN>)) { my $Reason = $ThisLine; $Reason = $Msg if defined $Msg; + if ($Detail < 5) { + if (($Reason =~ /^456 Address temporarily unavailable.$/) or + ($Reason =~ /^451 4.7.1 Greylisting in action,/) or + ($Reason =~ /^"502 ESMTP command error",cmd/)) { + next; + } + } + if ($Detail == 0) { + if (! ($Reason =~ /^"534 SIZE=Message too big\./)) { + next; + } + } + $ErrorMsgs{$Reason}{$Host}{$From || "-"}{$To || "-"}++ if not $Tables; my $TblReason = MakeTblReason($Reason) if $Tables; $ErrorTbl{$TblReason}{$Host}++ if $Tables; |