Hey there:
I've been running 5.0.9 with some success-however, I always noticed how the spam and virus counts in the log database were always zero.
It appears that a lot of the amavis log lines match none of the regexes in the zmlogprocess script. I've modified some of them, and I'd like to share them here:
I put debug lines so the script tells me which regex matches.
Code:
elsif ($msg =~ /\(([^)]+)\) (Passed|Blocked) ([^,]+), \[([^]]+)\] <([^>]*)> -> (<[^>]+>(?:,<[^>]+>)*),(?: quarantine: [^,]+,)? Message-ID: <([^>]+)>,(?: Resent-Message-ID: <[^>]+>,)? mail_id: \S+,
Hits: (\S+), size: \d+, (\d+) ms/) {
$pid = $1;
$disp = $2;
$reason = $3;
$fromIP = $4;
$origIP = "unknown";
$sender = $5;
$recips = $6;
$msgid = $7;
$hits = $8;
$queued_as = "unknown";
$ms = $9;
print "REGEX 4c\n";
} elsif ($msg =~ /\(([^)]+)\) (Passed|Blocked) ([^,]+), \[([^]]+)\] <([^>]*)> -> (<[^>]+>(?:,<[^>]+>)*),(?: quarantine: [^,]+,)? Message-ID: <([^>]+)>,(?: Resent-Message-ID: <[^>]+>,)? mail_id: \S+,
Hits: (\S+), size: \d+, queued_as: (\S+), (\d+) ms/) {
$pid = $1;
$disp = $2;
$reason = $3;
$fromIP = $4;
$origIP = "unknown";
$sender = $5;
$recips = $6;
$msgid = $7;
$hits = $8;
$queued_as = $9;
$ms = $10;
print "REGEX 5c\n";
}