At 05:01 AM Thursday, 9/30/2004, John Fleming wrote -=>

----- Original Message -----
From: "Ed Kasky" <[EMAIL PROTECTED]>
To: <users@spamassassin.apache.org>
Sent: Monday, September 27, 2004 2:49 PM
Subject: Re: Preferred DNSBL


> Rejects Since Sunday 4:00 am via rbls: > > spamcop: 65 > maps rbl+: 154 > dsbl.org: 9 > njabl.org: 18 > spamhaus: 18

What/how are you guys gathering the data above? Thanks - John

A simple shell script that I found somewhere and tweaked for my needs:
#!/bin/bash
#
# spam-stats -- print counts of clean and spammy messages
# from spamassassin.
#echo -e "========================================="
echo -e "SpamAssassin Results for:"
date
echo -e "spam:" `grep "identified spam" /var/log/maillog | wc -l`
echo -e "clean:" `grep "clean message" /var/log/maillog | grep spamd |wc -l`
echo -e "skipped:" `grep "skipped large" /var/log/maillog | wc -l`
echo -e "total:" `grep "spamd[[0-9]*]: connection from" /var/log/maillog | wc -l`
echo -e "processed:" `grep "processing message" /var/log/maillog | wc -l`
echo -e "========================================="
echo -e "maps rbl+:" `grep "refused by blackhole site rbl-plus.mail-abuse.org" /var/log/maillog | wc -l`


Produces the following:

SpamAssassin Results for:
Thu Sep 30 13:44:03 PDT 2004
spam: 261
clean: 1715
skipped: 0
total: 1967
processed: 1976
=========================================
maps rbl+: 625

I have more greps but you get the idea...


Ed . . . . . . . . Unthinking respect for authority is the greatest enemy of truth. -Albert Einstein, physicist, Nobel laureate (1879-1955)




Reply via email to