> Is it possible to generate, say, daily and weekly reports of spamassains > statistices? If so, where are teh logfiles stored? > > And does anyone have sample scripts to start from?
I use a FreeBSD system, and I dropped the following Perl script into my /etc/periodic/daily/ directory. It could be groovier but it works. #! /usr/bin/perl open (BLAH, "zcat /var/log/maillog.0.gz|"); while (<BLAH>) { if(/identified spam/) { $spam++; } elsif(/clean message/) { $ham++; } elsif(/max-children/) { $max++; } } close (BLAH); $total = $spam + $ham + $max; $perspam = (int(($spam / $total) * 10000) / 100); print "Spam statistics:\n"; print "SPAM: $spam\nHAM: $ham\nMAX-CHILDREN: $max\nTOTAL: $total\nPERCENT SPAM: $perspam\n"; ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk