<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>Julian I am not looking at what rules are used, I am looking for what rules are triggered. The sa-stats program is found at&nbsp;<span class="Apple-style-span" style="font-family: verdana, geneva, helvetica, arial, sans-serif; font-size: 13px; border-collapse: collapse; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><a href="http://www.rulesemporium.com/programs/sa-stats.txt" target="_top" rel="nofollow" style="font-size: 1em; text-decoration: none; ">http://www.rulesemporium.com/programs/sa-stats.txt</a></span><div><font class="Apple-style-span" face="verdana, geneva, helvetica, arial, sans-serif" size="3"><span class="Apple-style-span" style="border-collapse: collapse; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"></span></font></div><div><span class="Apple-style-span" style="font-family: verdana, geneva, helvetica, arial, sans-serif; font-size: 13px; border-collapse: collapse; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><br><span class="Apple-style-span" style="font-size: medium;"><font class="Apple-style-span" face="'Times New Roman', Times, serif">Here is the a Sample Output&nbsp;with the type of information I am looking to collect.</font></span></span></div><div><span class="Apple-style-span" style="font-family: verdana, geneva, helvetica, arial, sans-serif; font-size: 13px; border-collapse: collapse; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><span class="Apple-style-span" style="font-size: medium;"><font class="Apple-style-span" face="'Times New Roman', Times, serif">---------------------<br></font></span><br>Time Spent Running SA: &nbsp; &nbsp; &nbsp; &nbsp; 1.68 hours&nbsp;<br>Time Spent Processing Spam: &nbsp; &nbsp;0.29 hours&nbsp;<br>Time Spent Processing Ham: &nbsp; &nbsp; 1.39 hours&nbsp;<br><br>TOP SPAM RULES FIRED&nbsp;<br>----------------------------------------------------------------------&nbsp;<br>RANK &nbsp; &nbsp;RULE NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COUNT &nbsp;%OFMAIL %OFSPAM &nbsp;%OFHAM&nbsp;<br>----------------------------------------------------------------------&nbsp;<br>&nbsp; &nbsp; 1 &nbsp; &nbsp;HTML_MESSAGE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;824 &nbsp; &nbsp;77.07 &nbsp; 88.13 &nbsp; 74.20&nbsp;<br>&nbsp; &nbsp; 2 &nbsp; &nbsp;RAZOR2_CHECK &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;772 &nbsp; &nbsp;19.61 &nbsp; 82.57 &nbsp; &nbsp;3.32&nbsp;<br>&nbsp; &nbsp; 3 &nbsp; &nbsp;RAZOR2_CF_RANGE_51_100 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;753 &nbsp; &nbsp;18.21 &nbsp; 80.53 &nbsp; &nbsp;2.08&nbsp;<br>&nbsp; &nbsp; 4 &nbsp; &nbsp;RAZOR2_CF_RANGE_E8_51_100 &nbsp; &nbsp; &nbsp; &nbsp; 713 &nbsp; &nbsp;17.19 &nbsp; 76.26 &nbsp; &nbsp;1.91&nbsp;<br>&nbsp; &nbsp; 5 &nbsp; &nbsp;URIBL_BLACK &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 652 &nbsp; &nbsp;16.03 &nbsp; 69.73 &nbsp; &nbsp;2.13&nbsp;<br>&nbsp; &nbsp; 6 &nbsp; &nbsp;MIME_HTML_ONLY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;609 &nbsp; &nbsp;29.64 &nbsp; 65.13 &nbsp; 20.45&nbsp;<br></span></div><div><br></div><div>This type of report is helpful for tuning sa rules.</div><div><br></div><div>Thanks.</div><div><br></div><div>Mike</div><div><br>----- Original Message -----<br>From: "Jules Field" &lt;MailScanner@ecs.soton.ac.uk&gt;<br>To: "MailScanner discussion" &lt;mailscanner@lists.mailscanner.info&gt;<br>Sent: Monday, August 3, 2009 2:30:36 PM GMT -05:00 US/Canada Eastern<br>Subject: Re: Spamassassin Syslog Functionality<br><br>You can find out what SA rules are being used by doing a "MailScanner <br>--debug --debug-sa".<br>That will print the list of rules files it uses. They are the same for <br>every message.<br><br>On 03/08/2009 19:00, Mike Wallace wrote:<br>&gt; The reason I ask is that I want to run sa-stats to figure out what sa <br>&gt; rules are being used.<br>&gt;<br>&gt; I'm not a Perl expert so I would prefer to not have to modify it to <br>&gt; handle MailScanner's "Log Spam = yes" &nbsp;details in maillog.<br>&gt;<br>&gt; Or, is there an equivalent tool that will use the existing format?<br>&gt;<br>&gt; Thanks.<br>&gt;<br>&gt; Mike<br>&gt;<br>&gt;<br>&gt; On Jul 31, 2009, at 3:54 PM, Mike Wallace wrote:<br>&gt;<br>&gt;&gt; Is there anyway to have MailScanner generate Spamassassin syslog output?<br>&gt;&gt;<br>&gt;&gt; I tried using the "Log Spam" setting in MailScanner but it logs to <br>&gt;&gt; maillog and not a separate log file that the Spamassassin log tools use.<br>&gt;&gt;<br>&gt;&gt; Thanks.<br>&gt;&gt;<br>&gt;&gt; -- <br>&gt;&gt; MailScanner mailing list<br>&gt;&gt; mailscanner@lists.mailscanner.info<br>&gt;&gt; http://lists.mailscanner.info/mailman/listinfo/mailscanner<br>&gt;&gt;<br>&gt;&gt; Before posting, read http://wiki.mailscanner.info/posting<br>&gt;&gt;<br>&gt;&gt; Support MailScanner development - buy the book off the website!<br>&gt;&gt; This message has been scanned for viruses and dangerous content by <br>&gt;&gt; MailScanner, and is believed to be clean.<br>&gt;&gt;<br>&gt;<br><br>Jules<br><br>-- <br>Julian Field MEng CITP CEng<br>www.MailScanner.info<br>Buy the MailScanner book at www.MailScanner.info/store<br><br>Need help customising MailScanner?<br>Contact me!<br>Need help fixing or optimising your systems?<br>Contact me!<br>Need help getting you started solving new requirements from your boss?<br>Contact me!<br><br>PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654<br>Follow me at twitter.com/JulesFM and twitter.com/MailScanner<br><br><br>-- <br>This message has been scanned for viruses and<br>dangerous content by MailScanner, and is<br>believed to be clean.<br><br>-- <br>MailScanner mailing list<br>mailscanner@lists.mailscanner.info<br>http://lists.mailscanner.info/mailman/listinfo/mailscanner<br><br>Before posting, read http://wiki.mailscanner.info/posting<br><br>Support MailScanner development - buy the book off the website! <br><br>&nbsp;<br>This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.<br><br></div></div></body></html>