Fix up counts in main table
This commit is contained in:
parent
0947689c0f
commit
85dc97aa05
@ -534,7 +534,7 @@ LINE: while (<>) {
|
|||||||
$counts{$abshour}{$CATRELAY}++;
|
$counts{$abshour}{$CATRELAY}++;
|
||||||
}
|
}
|
||||||
|
|
||||||
elsif (($log_items[2] =~ m/$WebmailIP/) and (!test_for_private_ip($log_items[0]))) {
|
elsif (($log_items[2] =~ m/$WebmailIP/) and (!test_for_private_ip($log_items[0]))) {
|
||||||
#Webmail
|
#Webmail
|
||||||
$localflag = 1;
|
$localflag = 1;
|
||||||
$WebMailsendtotal++;
|
$WebMailsendtotal++;
|
||||||
@ -556,33 +556,33 @@ LINE: while (<>) {
|
|||||||
$localflag = 1;
|
$localflag = 1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
#Or sent to the DMARC server
|
#Or sent to the DMARC server
|
||||||
#check for email address in $DMARC_Report_emails string
|
#check for email address in $DMARC_Report_emails string
|
||||||
my $logemail = $log_items[4];
|
my $logemail = $log_items[4];
|
||||||
if ((index($DMARC_Report_emails,$logemail)>=0) or ($logemail =~ m/$DMARCDomain/)){
|
if ((index($DMARC_Report_emails,$logemail)>=0) or ($logemail =~ m/$DMARCDomain/)){
|
||||||
$localsendtotal++;
|
$localsendtotal++;
|
||||||
$DMARCSendCount++;
|
$DMARCSendCount++;
|
||||||
$localflag = 1;
|
$localflag = 1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (exists $log_items[8]){
|
if (exists $log_items[8]){
|
||||||
# ignore incoming localhost spoofs
|
# ignore incoming localhost spoofs
|
||||||
if ( $log_items[8] =~ m/msg denied before queued/ ) { }
|
if ( $log_items[8] =~ m/msg denied before queued/ ) { }
|
||||||
else {
|
else {
|
||||||
#Webmail
|
#Webmail
|
||||||
$localflag = 1;
|
$localflag = 1;
|
||||||
$WebMailsendtotal++;
|
$WebMailsendtotal++;
|
||||||
$counts{$abshour}{$CATWEBMAIL}++;
|
$counts{$abshour}{$CATWEBMAIL}++;
|
||||||
$WebMailflag = 1;
|
$WebMailflag = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$localflag = 1;
|
$localflag = 1;
|
||||||
$WebMailsendtotal++;
|
$WebMailsendtotal++;
|
||||||
$counts{$abshour}{$CATWEBMAIL}++;
|
$counts{$abshour}{$CATWEBMAIL}++;
|
||||||
$WebMailflag = 1;
|
$WebMailflag = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user