[Exim] acl reject log messages/stats/spam and viruses

Top Page
Delete this message
Reply to this message
Author: Christian G. Warden
Date:  
To: exim-users
Subject: [Exim] acl reject log messages/stats/spam and viruses
I've started working on getting mailgraph
(http://people.ee.ethz.ch/~dws/software/mailgraph/) working with Exim.
I've got it mostly working, but it depends on local convention to
properly record rejected messages, viruses, and spam.  It would be
easier if there were a string, let's say !*, for messages rejected by an
acl.  Also, it'd be nice if all information in log_selector that has
already been collected appeared in the log line for the rejected
message.  For example, if a message were rejected in a data acl, the log
would have the recipients and subject if the appropriate log_selector
options were enabled.
I'd then be able to do something like:
if ($flag eq "!*") {
    $rejected[$domain]++;
    if ($line =~ '/spam/') {
        $spam[$domain]++;
    } elseif ($line =~ '/virus/') {
        $virus[$domain]++;
    }
}


For spam and viruses that generate bounces rather than being rejected
in an acl (from an authenticated mua, for example), I'll probably just
assume that the router name has 'spam' or 'virus' in it.

If anybody is interested in continuing development of mailgraph/exim,
let me know. I'll send you what I've got so far. I hate writing perl.
Luckily, I was able to copy a lot out of eximstats.

xn