<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dutton Software &#187; Fighting Spam</title>
	<atom:link href="http://www.duttonsoftware.com/category/fighting-spam/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.duttonsoftware.com</link>
	<description>Code, plug-ins &#38; more</description>
	<lastBuildDate>Fri, 05 Mar 2010 17:19:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Testing custom SpamAssassin rules</title>
		<link>http://www.duttonsoftware.com/2008/09/27/testing-custom-spamassassin-rules/</link>
		<comments>http://www.duttonsoftware.com/2008/09/27/testing-custom-spamassassin-rules/#comments</comments>
		<pubDate>Sun, 28 Sep 2008 04:15:05 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Fighting Spam]]></category>
		<category><![CDATA[Custom rules]]></category>
		<category><![CDATA[SpamAssassin]]></category>

		<guid isPermaLink="false">http://www.duttonsoftware.com/?p=44</guid>
		<description><![CDATA[As I was writing and testing my custom SpamAssassin rules, I often tried to figure out how to make sure my rule was running in production. I could easily test it locally by using the SpamAssassin command-line. But for production, I couldn&#8217;t use the command line. Perhaps there is a better way, but I decided [...]]]></description>
			<content:encoded><![CDATA[<p style="font-family: Calibri; font-size: 11pt;">As I was writing and testing my custom SpamAssassin rules, I often tried to figure out how to make sure my rule was running in production.  I could easily test it locally by using the SpamAssassin command-line.<span> </span>But for production, I couldn&#8217;t use the command line.</p>
<p style="font-family: Calibri; font-size: 11pt;">Perhaps there is a better way, but I decided to send a test spam message into the system and see how SpamAssassin handled it.<span> </span>The easiest way to trigger SpamAssassin to mark a message as spam is to include a URL that will trigger one of the SURBL rules.</p>
<p style="font-family: Calibri; font-size: 11pt;">If you look at your notification e-mails the rules will be listed near the bottom:</p>
<p style="font-family: Calibri; font-size: 11pt;"><em>Note: Slightly edited to remove identifying information, including the actual URL.</em></p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">Unsolicited bulk email from:</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">Subject: Spam is great</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">…</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">Content analysis details: (26.2 points, 1.0 required)</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">pts rule name description</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">0.0 HTML_MESSAGE BODY: HTML included in message</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">4.5 URIBL_SC_SURBL Contains an URL listed in the SC SURBL blocklist</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">[URIs: spamurl.com]</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">3.8 URIBL_AB_SURBL Contains an URL listed in the AB SURBL blocklist</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">[URIs: spamurl.com]</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">4.1 URIBL_JP_SURBL Contains an URL listed in the JP SURBL blocklist</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">[URIs: spamurl.com]</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">3.0 URIBL_OB_SURBL Contains an URL listed in the OB SURBL blocklist</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">[URIs: spamurl.com]</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">
<p style="font-family: Calibri; font-size: 11pt;">Simply grab the URL (spamurl.com in this case) and paste it into a message.<span> </span>Send the message from the outside to a recipient behind SpamAssassin.<span> </span>It should trigger the rules engine, and you should hopefully see your rule fire in the new notification message.</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">Unsolicited bulk email from:</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">Subject: Spam is great</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">…</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">Content analysis details: (26.3 points, 1.0 required)</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">pts rule name description</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">0.0 HTML_MESSAGE BODY: HTML included in message</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">4.5 URIBL_SC_SURBL Contains an URL listed in the SC SURBL blocklist</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">[URIs: spamurl.com]</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">3.8 URIBL_AB_SURBL Contains an URL listed in the AB SURBL blocklist</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">[URIs: spamurl.com]</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">4.1 URIBL_JP_SURBL Contains an URL listed in the JP SURBL blocklist</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">[URIs: spamurl.com]</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">3.0 URIBL_OB_SURBL Contains an URL listed in the OB SURBL blocklist</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;">[URIs: spamurl.com]</p>
<p style="margin: 0in; font-family: Consolas; font-size: 10.5pt;"><span style="color: #800000;">0.1 AD_CUSTOM_RULE Custom rule fired!</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.duttonsoftware.com/2008/09/27/testing-custom-spamassassin-rules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
