[Mimedefang] counting emails flagged as spam
Jeff Rife
mimedefang at nabs.net
Mon Sep 6 15:30:44 EDT 2004
On 6 Sep 2004 at 12:37, Mike Campbell wrote:
> Anyone have a good way to keep a running count of how many email
> messages have been flagged as spam by spamassassin?
I just add a line like this:
md_graphdefang_log('spam', $hits, $RelayAddr);
Then, you can use various tools that process the sendmail log to do
whatever you want.
For "high value" SPAM that I don't pass to the final recipient, the log
line looks like:
md_graphdefang_log('SPAM', $hits, $RelayAddr);
This allows me to do a case-insensitive log search for all SPAM, or a
case-sensitive one for delivered/dropped.
--
Jeff Rife |
SPAM bait: | "Resistance...is *futile*"
AskDOJ at usdoj.gov |
spam at ftc.gov | -- Data, "Star Trek: First Contact"
More information about the MIMEDefang
mailing list