[Mimedefang] How to get SA stats when use MimeDefang?

john at essenz.com john at essenz.com
Wed Jul 14 15:17:16 EDT 2004


To log the SA tests which were positive, in your filter you have:

...
my($hits, $req, $names, $report) = spam_assassin_check();
...
md_syslog("debug","SA Tests=$names");
...

Obviously, you would want to write out some other stuff too like msg id or 
recipient. 

-john


----------------------------------------------------
>From : Yanick Quirion <YQuirion at tranzyme.com>
To : <mimedefang at lists.roaringpenguin.com>
Subject : [Mimedefang] How to get SA stats when use MimeDefang?
Date : Wed, 14 Jul 2004 14:59:18 -0400
> Hi all,
> 
> I want to know if it's possible to tell MimeDefang to pus into syslog
> the standard stats line that SpamAssassin (spamd) shows?
> 
> Here is an example of that line:
> 
> spamd[17442]: result: Y 15 -
> CLICK_BELOW,CONGRATULATIONS,DATE_IN_FUTURE_03_06,DRUGS_ERECTILE,DRUGS_PA
> IN,DRUGS_PAIN_EREC,EXCUSE_12,EXCUSE_4,FORGED_RCVD_HELO,FORGED_YAHOO_RCVD
> ,FOR_FREE,FROM_ENDS_IN_NUMS,FROM_HAS_MIXED_NUMS,INVALID_DATE,INVALID_MSG
> ID,NORMAL_HTTP_TO_IP,NO_REAL_NAME,SELECTED_YOU,SUBJ_FREE_CAP,UNDISC_RECI
> PS scantime=0.7,size=1662,mid=<9PS291LhupY>,autolearn=no
> 
> Using mimefefang-filter I was able to create a similar line, but I can't
> get following data:
> 
> Scantime
> Size
> Mid
> Autolearn
> 
> There is a way to get those values or is it possible to put the SA stat
> line into maillog file?
> 
> Thank you
> 
> Regards,
> Yanick
> 
> 
> _______________________________________________
> Visit http://www.mimedefang.org and http://www.canit.ca
> MIMEDefang mailing list
> MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang



More information about the MIMEDefang mailing list