summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-02-26 14:23:40 +0100
committerErich Eckner <git@eckner.net>2021-02-26 14:23:40 +0100
commit0802c342c390d72c784eecffe54d3e67cf51ce0d (patch)
tree09231b2ba8de57ed90e0cc23b4a4c853ec7a6a4b
parent8892b0cf5076dc6498d1226b2565747030dd91cd (diff)
downloadlogwatch-overrides-0802c342c390d72c784eecffe54d3e67cf51ce0d.tar.xz
courier: show errors on different detail levels
-rw-r--r--courier16
1 files changed, 13 insertions, 3 deletions
diff --git a/courier b/courier
index 730ef63..caaeeb3 100644
--- a/courier
+++ b/courier
@@ -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;