<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><div>Here are the relevant parameters from my configuration:<div><br></div><div>Detailed Spam Report = yes</div><div>Include Scores In SpamAssassin Report = yes</div><div>Always Include SpamAssassin Report = yes</div><div>Spam Actions = forward spam@mlrw.com header "X-mlrw-MailScanner-Spam-Status: Yes"</div><div>High Scoring Spam Actions = forward spam@mlrw.com header "X-mlrw-MailScanner-High-Spam-Status: Yes" (This will change to drop once I feel that I get no High Score False Positives)</div><div>Non Spam Actions = deliver header "X-mlrw-MailScanner-Spam-Status: No"</div><div><div>Log Spam = yes</div><div><div>Log Non Spam = yes</div><div><br></div></div></div><div>I have a couple of ideas.</div><div><br></div><div>Could I add a custom function to "Spam Actions", "High Scoring Spam Actions" and "Non Spam Actions" to extract the spam score into a spam log file in addition to what they are doing now?</div><div>or</div><div>Could I use "SpamAssassin Rule Actions"&nbsp;to extract the spam score into a spam log file?</div><div>or</div><div>Since I am using postfix, could I have it extract the sa info before it delivers the message?</div><div><br></div><div>I just want to implement the easiest solution with either&nbsp;minimal or preferably&nbsp;no code development on my part.&nbsp;</div><div><br></div><div>Or do you know of anything like sa-stats that can use the output from MailScanner as is?</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 4:10:11 PM GMT -05:00 US/Canada Eastern<br>Subject: Re: Spamassassin Syslog Functionality<br><br>In which case try the<br>Spam Actions = attachment<br>spam action, or the settings<br>Detailed Spam Report = yes<br>Always Include SpamAssassin Report = yes<br>in MailScanner.conf. Putting in both the "Always" and "Detailed" <br>settings will result in you always getting a list of the rules <br>triggered, whether it was found to be spam or not.<br><br>On 03/08/2009 20:39, Mike Wallace wrote:<br>&gt; Julian I am not looking at what rules are used, I am looking for what <br>&gt; rules are triggered. The sa-stats program is found at <br>&gt; http://www.rulesemporium.com/programs/sa-stats.txt<br>&gt;<br>&gt; Here is the a Sample Output with the type of information I am looking <br>&gt; to collect.<br>&gt; ---------------------<br>&gt;<br>&gt; Time Spent Running SA: &nbsp; &nbsp; &nbsp; &nbsp; 1.68 hours<br>&gt; Time Spent Processing Spam: &nbsp; &nbsp;0.29 hours<br>&gt; Time Spent Processing Ham: &nbsp; &nbsp; 1.39 hours<br>&gt;<br>&gt; TOP SPAM RULES FIRED<br>&gt; ----------------------------------------------------------------------<br>&gt; RANK &nbsp; &nbsp;RULE NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COUNT &nbsp;%OFMAIL %OFSPAM &nbsp;%OFHAM<br>&gt; ----------------------------------------------------------------------<br>&gt; &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<br>&gt; &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<br>&gt; &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<br>&gt; &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<br>&gt; &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<br>&gt; &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<br>&gt;<br>&gt; This type of report is helpful for tuning sa rules.<br>&gt;<br>&gt; Thanks.<br>&gt;<br>&gt; Mike<br>&gt;<br>&gt; ----- Original Message -----<br>&gt; From: "Jules Field" &lt;MailScanner@ecs.soton.ac.uk&gt;<br>&gt; To: "MailScanner discussion" &lt;mailscanner@lists.mailscanner.info&gt;<br>&gt; Sent: Monday, August 3, 2009 2:30:36 PM GMT -05:00 US/Canada Eastern<br>&gt; Subject: Re: Spamassassin Syslog Functionality<br>&gt;<br>&gt; You can find out what SA rules are being used by doing a "MailScanner<br>&gt; --debug --debug-sa".<br>&gt; That will print the list of rules files it uses. They are the same for<br>&gt; every message.<br>&gt;<br>&gt; On 03/08/2009 19:00, Mike Wallace wrote:<br>&gt; &gt; The reason I ask is that I want to run sa-stats to figure out what sa<br>&gt; &gt; rules are being used.<br>&gt; &gt;<br>&gt; &gt; I'm not a Perl expert so I would prefer to not have to modify it to<br>&gt; &gt; handle MailScanner's "Log Spam = yes" &nbsp;details in maillog.<br>&gt; &gt;<br>&gt; &gt; Or, is there an equivalent tool that will use the existing format?<br>&gt; &gt;<br>&gt; &gt; Thanks.<br>&gt; &gt;<br>&gt; &gt; Mike<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; On Jul 31, 2009, at 3:54 PM, Mike Wallace wrote:<br>&gt; &gt;<br>&gt; &gt;&gt; Is there anyway to have MailScanner generate Spamassassin syslog <br>&gt; output?<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; I tried using the "Log Spam" setting in MailScanner but it logs to<br>&gt; &gt;&gt; maillog and not a separate log file that the Spamassassin log tools <br>&gt; use.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Thanks.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; --<br>&gt; &gt;&gt; MailScanner mailing list<br>&gt; &gt;&gt; mailscanner@lists.mailscanner.info<br>&gt; &gt;&gt; http://lists.mailscanner.info/mailman/listinfo/mailscanner<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Before posting, read http://wiki.mailscanner.info/posting<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Support MailScanner development - buy the book off the website!<br>&gt; &gt;&gt; This message has been scanned for viruses and dangerous content by<br>&gt; &gt;&gt; MailScanner, and is believed to be clean.<br>&gt; &gt;&gt;<br>&gt; &gt;<br>&gt;<br>&gt; Jules<br>&gt;<br>&gt; -- <br>&gt; Julian Field MEng CITP CEng<br>&gt; www.MailScanner.info<br>&gt; Buy the MailScanner book at www.MailScanner.info/store<br>&gt;<br>&gt; Need help customising MailScanner?<br>&gt; Contact me!<br>&gt; Need help fixing or optimising your systems?<br>&gt; Contact me!<br>&gt; Need help getting you started solving new requirements from your boss?<br>&gt; Contact me!<br>&gt;<br>&gt; PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654<br>&gt; Follow me at twitter.com/JulesFM and twitter.com/MailScanner<br>&gt;<br>&gt;<br>&gt; -- <br>&gt; This message has been scanned for viruses and<br>&gt; dangerous content by MailScanner, and is<br>&gt; believed to be clean.<br>&gt;<br>&gt; -- <br>&gt; MailScanner mailing list<br>&gt; mailscanner@lists.mailscanner.info<br>&gt; http://lists.mailscanner.info/mailman/listinfo/mailscanner<br>&gt;<br>&gt; Before posting, read http://wiki.mailscanner.info/posting<br>&gt;<br>&gt; Support MailScanner development - buy the book off the website!<br>&gt;<br>&gt;<br>&gt; This message has been scanned for viruses and dangerous content by <br>&gt; MailScanner, and is believed to be clean.<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></div></body></html>