diff options
author | Erich Eckner <git@eckner.net> | 2021-02-26 06:04:58 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-02-26 06:04:58 +0100 |
commit | a72763126c1760e5d9a0db8c805acb24fb93f1f9 (patch) | |
tree | c96e682f2a0f7583473ff31cc65cd65cefd40c68 | |
parent | 94561a0484708fb0d76d4df7d5227b3cc588f020 (diff) | |
download | logwatch-overrides-a72763126c1760e5d9a0db8c805acb24fb93f1f9.tar.xz |
imapd: recognize more login error formats
-rw-r--r-- | imapd | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -74,7 +74,7 @@ while (defined($ThisLine = <STDIN>)) { # $MboxSize{$User} = $LeftSize; # } elsif ( ($User,$Host) = ( $ThisLine =~ /^authentication failed for user (.*?) - (.*)/ ) ) { # $LoginFailed{"$Host ($User)"}++; - } elsif ( ($dummy,$Host) = ( $ThisLine =~ /^LOGIN FAILED, method=\S+, ip=\[(::ffff:)?([^\[\]]+)\]$/) ) { + } elsif ( (undef,$Host,undef) = ( $ThisLine =~ /^LOGIN FAILED, method=\S+, ip=\[(::ffff:)?([^\[\]]+)\](, .*)?$/) ) { $LoginFailed{"$Host"}++; } elsif ( ($User, $Host) = ( $ThisLine =~ /^Logout user=(.*?) host=(.*\[.*\])$/) ) { $Logout{$User}{$Host}++; |