[Techtalk] perl help

Maria McKinley maria at shadlen.org
Wed Oct 15 07:13:45 UTC 2008


Wim De Smet wrote:
> Hi,
> 
> On Wed, Oct 15, 2008 at 7:22 AM, Maria McKinley <maria at shadlen.org> wrote:
>> This talk about spam got me started looking at my spam filter again,
>> since it has been a while. I ran across a perl script to analyze mail
>> logs to see how the spamfilter is doing.
>>
>> http://www.rulesemporium.com/programs/sa-stats-1.0.txt
>>
>> Unfortunately, I'm not too good with perl, and I can't figure out why I
>> am not getting any good stats. I assume it is probably because it is
>> looking in the wrong logs or something. The default directory seems
>> correct, /var/log, so I changed this line
> 
> Hmm just a hunch, but is spamassassin logging to mail.log? Maybe it's
> logging elsewhere?
> 
> greets,
> Wim
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/techtalk

Well, there is lots of stuff like this in the log:

Oct 14 06:31:15 ella spamd[6504]: spamd: connection from localhost 
[127.0.0.1] at port 50605
Oct 14 06:31:15 ella spamd[6504]: spamd: setuid to spamd succeeded
Oct 14 06:31:16 ella spamd[6504]: spamd: processing message 
<000701c92e01$01120e8e$ce8e65be at jtwrj> for spamd:110
Oct 14 06:31:17 ella spamd[6504]: spamd: identified spam (8.2/5.0) for 
spamd:110 in 1.4 seconds, 2791 bytes.
Oct 14 06:31:17 ella spamd[6504]: spamd: result: Y 8 - 
BAYES_50,HDR_ORDER_FTSDMCXX_BAT,RCVD_IN_BL_SPAMCOP_NET 
scantime=1.4,size=2791,user=spamd,uid=110,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=50605,mid=<000701c92e01$01120e8e$ce8e65be at jtwrj>,bayes=0.500000,autolearn=no 


This does seem to be the sort of thing it is looking for, I think.

~maria


More information about the Techtalk mailing list