X-Git-Url: http://gitweb.michael.orlitzky.com/?p=postfix-logwatch.git;a=blobdiff_plain;f=postfix-logwatch;fp=postfix-logwatch;h=648ba7add6256222643e2d43368cde7a87101b94;hp=827dfe0d968806e7a7b4d322b86cdfa0b5271e93;hb=7b3930a9d44f91a63f0edbe765c75dc8f6128b7c;hpb=ced6e6fcbf1a025419e8ee9f940e5022ed440532 diff --git a/postfix-logwatch b/postfix-logwatch index 827dfe0..648ba7a 100644 --- a/postfix-logwatch +++ b/postfix-logwatch @@ -4399,14 +4399,11 @@ sub postfix_postscreen { } } - elsif ($line =~ /^NOQUEUE: reject: CONNECT from \[([^]]+)\](?::\d+)?: too many connections/) { - # NOQUEUE: reject: CONNECT from [192.168.0.1]:7197: too many connections - $Counts{'postscreen'}{'reject'}{'Too many connections'}{$1}{$END_KEY}++ if $Collecting{'postscreen'}; - } - - elsif ($line =~ /^reject: connect from \[([^]]+)\](?::\d+)?: (.+)$/) { - # reject: connect from [192.168.0.1]:21225: all screening ports busy - $Counts{'postscreen'}{'reject'}{"\u$2"}{$1}{$END_KEY}++ if $Collecting{'postscreen'}; + elsif ($line =~ /^(NOQUEUE: )?reject: (connect|CONNECT) from \[([^]]+)\](?::\d+)?: (.+)$/) { + # NOQUEUE: reject: CONNECT from [192.168.0.1]:7197: too many connections + # NOQUEUE: reject: CONNECT from [192.168.0.1]:39410: all server ports busy + # reject: connect from [192.168.0.1]:21225: all screening ports busy + $Counts{'postscreen'}{'reject'}{"\u$4"}{$3}{$END_KEY}++ if $Collecting{'postscreen'}; } elsif ($line =~ /^(?:WHITELIST VETO) \[([^]]+)\](?::\d+)?$/) {