24 lines
1.2 KiB
Diff
24 lines
1.2 KiB
Diff
diff -up logwatch-7.3.6/scripts/services/postfix.pom logwatch-7.3.6/scripts/services/postfix
|
|
--- logwatch-7.3.6/scripts/services/postfix.pom 2008-10-17 09:27:02.000000000 +0200
|
|
+++ logwatch-7.3.6/scripts/services/postfix 2008-10-17 09:28:46.000000000 +0200
|
|
@@ -693,7 +693,7 @@ while ( <> ) {
|
|
|
|
my ($helo, $relay, $from, $origto, $to, $domain, $status,
|
|
$type, $reason, $reason2, $filter, $site, $cmd, $qid, $p2,
|
|
- $rej_action, $host, $hostip);
|
|
+ $rej_action, $host, $hostip, $size);
|
|
|
|
# ^fatal: ...
|
|
if ( ($reason) = ($p1 =~ /^fatal: (.*)$/ )) {
|
|
@@ -1637,8 +1637,9 @@ while ( <> ) {
|
|
#TD table hash:/etc/postfix/helo_checks has changed -- restarting
|
|
$Totals{'TableChanged'}++;
|
|
|
|
- } elsif ( ($cmd,$host,$hostip) = ($p1 =~ /too many errors after ([^ ]*) from ([^[]*)\[($re_IP)\]$/o)) {
|
|
+ } elsif ( ($cmd,$size,$host,$hostip) = ($p1 =~ /too many errors after ([^ ]*) (\(\d+ bytes\) )?from ([^[]*)\[($re_IP)\]$/o)) {
|
|
#TD too many errors after AUTH from sample.net[10.0.0.1]
|
|
+ #TD too many errors after DATA (0 bytes) from aasq46.neoplus.adsl.tpnet.pl[83.5.228.46]
|
|
$Totals{'TooManyErrors'}++;
|
|
$Counts{'TooManyErrors'}{"After $cmd"}{formathost($hostip,$host)}++;
|
|
|