> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Vermyndax > Sent: Thursday, January 22, 2004 4:57 AM > To: [EMAIL PROTECTED] > Subject: [SAtalk] stats > > Greetings all... > > I am trying to implement a way to generate statistics for > Spamassassin. > I've tried numerous perl scripts but most of them return all > zeros for the stats. The biggest example I can think of is > the sa-stats.pl script. No matter what I do, the script > returns all zeros. Is it because it's having a problem > parsing out my log file? Can any of you perl experts give me > a little help? Or can any of you point me in the direction > of some fantastic stats generator for SpamAssassin? >
I remember when I was having a similar problem when I first became interested in stats for my spam. For me, it was that I did not have Mimedefang add the appropriate logging step and therefore was not logging at all. My setup is sendmail -> mimedefang -> spamassassin I added md_graphdefang_log_enable('mail', 1); To the beginning of my mimedefang-filter config file And then, depending on what I wanted to log, various lines such as md_graphdefang_log('mail_in',$hits,$RelayAddr); This would generate an entry in my log files like this: Jan 22 05:57:00 linux1 mimedefang.pl[120]: MDLOG,i0MDuxpH003427,mail_in,,66.35.250.206,<[EMAIL PROTECTED] ourceforge.net>,<[EMAIL PROTECTED]>,Re: [SAtalk] stats Which then the perl scripts could easily identify. Of course this is very specific to the configuration listed above HTH, Scott ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk