<?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>andr3w.net &#187; spam</title>
	<atom:link href="http://andr3w.net/tag/spam/feed/" rel="self" type="application/rss+xml" />
	<link>http://andr3w.net</link>
	<description>amateur web development...</description>
	<lastBuildDate>Fri, 19 Mar 2010 17:34:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Updated .mailfilter for Courier Maildrop and SpamAssassin</title>
		<link>http://andr3w.net/2009/04/updated-mailfilter-for-courier-maildrop-and-spamassassin/</link>
		<comments>http://andr3w.net/2009/04/updated-mailfilter-for-courier-maildrop-and-spamassassin/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 05:18:50 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[email]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[courier]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[ham]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[maildrop]]></category>
		<category><![CDATA[mailfilter]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[spamassassin]]></category>

		<guid isPermaLink="false">http://andr3w.net/?p=119</guid>
		<description><![CDATA[My spam count has exploded in the last few days, so I made a decision to adjust my filtering a little more.
Previously, all messages that got more than 5 points in SpamAssassin tests were flagged and sent to my .Spam folder. This got to be a bit of an issue as I still check there [...]]]></description>
			<content:encoded><![CDATA[<p>My spam count has exploded in the last few days, so I made a decision to adjust my filtering a little more.</p>
<p>Previously, all messages that got more than 5 points in <a href="http://spamassassin.apache.org/">SpamAssassin</a> tests were flagged and sent to my .Spam folder. This got to be a bit of an issue as I still check there to make sure that no emails are miscategorized&#8230; Call me crazy, but I&#8217;m a bit anal when it comes to that stuff. (I missed an interview because of Gmail&#8217;s filters, but that&#8217;s a story for another day).</p>
<p>For the last few days, I&#8217;ve been reviewing the spam counts for both the more cleverly hidden spam and the less-than-clever spam. I&#8217;ve come to realize that while the odds are low that any real emails will get marked as spam if they do they&#8217;ll definitely get a score less than 10. So to combat the large amount of spam that&#8217;s now coming through, emails with greater than 10 points will now be sent directly to the trash.</p>
<p>Here&#8217;s what I put in my .mailfilter file for courier-maildrop:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">if ( /^X-Spam-Level: \*\*\*\*\*\*\*\*\*.*$/ )<br />
{<br />
exit<br />
}<br />
<br />
if ( /X-Spam-Flag/ )<br />
{<br />
to &quot;$DEFAULT.Spam&quot;<br />
}</div></td></tr></tbody></table></div>
<p>This way, anything that gets more than won&#8217;t even be delivered, and all other emails that get a spam flag (greater than 5 points) get sent to spam, then the rest of my filters are processed.</p>
<p>Tested the email with the <a href="http://spamassassin.apache.org/gtube/">GTUBE </a>and with a normal message and it seems to work, but we&#8217;ll see if I wake up in the morning and all my email has been dumped in the trash can.</p>
]]></content:encoded>
			<wfw:commentRss>http://andr3w.net/2009/04/updated-mailfilter-for-courier-maildrop-and-spamassassin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring Spamassassin as a Daemon on Ubuntu Intrepid</title>
		<link>http://andr3w.net/2009/03/configuring-spamassassin-as-a-daemon-on-ubuntu-intrepid/</link>
		<comments>http://andr3w.net/2009/03/configuring-spamassassin-as-a-daemon-on-ubuntu-intrepid/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 22:10:37 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[email]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[intrepid]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[spamassassin]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://andr3w.net/?p=59</guid>
		<description><![CDATA[Here is the process I took to install Spamassassin as a daemon working with Postfix to process incoming mail.
I&#8217;ll also be trying to reduce the memory footprint while still getting acceptable performance. Mind you, this is being implemented on a low volume server, so these settings may not be applicable to a production server with [...]]]></description>
			<content:encoded><![CDATA[<p>Here is the process I took to install Spamassassin as a daemon working with Postfix to process incoming mail.</p>
<p>I&#8217;ll also be trying to reduce the memory footprint while still getting acceptable performance. Mind you, this is being implemented on a low volume server, so these settings may not be applicable to a production server with lots of users.</p>
<p>First, let&#8217;s do some prep work</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ sudo aptitude install spamassassin spamc<br />
$ sudo groupadd -u 5001 spamd<br />
$ sudo useradd -u 5001 -g spamd -s /sbin/nologin -d /var/lib/spamassassin spamd<br />
$ sudo mkdir /var/lib/spamassassin<br />
$ sudo chown spamd:spamd /var/lib/spamassassin</div></td></tr></tbody></table></div>
<p>Now edit /etc/default/spamassassin and change the lines below</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># /etc/default/spamassassin<br />
ENABLED=1<br />
SAHOME=&quot;/var/lib/spamassassin&quot;<br />
OPTIONS=&quot;--create-prefs --max-children 2 --username spamd -H ${SAHOME}&quot;</div></td></tr></tbody></table></div>
<p>Edit /etc/spamassassin/local.cf</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ENABLED=1<br />
rewrite_header Subject **SPAM _SCORE_**<br />
required_score 5.0<br />
use_bayes 1<br />
bayes_auto_learn 1<br />
use_dcc 0<br />
use_pyzor 0<br />
use_razor2 0</div></td></tr></tbody></table></div>
<p>Now edit /etc/postfix/master.cf and change it to look like this:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># /etc/postfix/master.cf<br />
26 &nbsp; inet &nbsp;n - - - - smtpd<br />
&nbsp; &nbsp; &nbsp;-o content_filter=spamassassin<br />
<br />
# Add this segment to end of file<br />
# Spamassassin processing filter<br />
spamassassin unix - n n - - pipe<br />
&nbsp; &nbsp; &nbsp;user=spamd argv=/usr/bin/spamc -e<br />
&nbsp; &nbsp; &nbsp;/usr/sbin/sendmail -oi -f ${sender} ${recipient}</div></td></tr></tbody></table></div>
<p>Now reboot some stuff</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ sudo /etc/init.d/spamassassin restart<br />
$ sudo postfix reload</div></td></tr></tbody></table></div>
<p>Now test by sending email to yourself. If you view the full headers it should now have X-SPAM headers in it. </p>
<p>If you send an email with &#8220;XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X&#8221; in the body of the email, it is guaranteed to be flagged as SPAM, and is a great way to test your spam filter.</p>
]]></content:encoded>
			<wfw:commentRss>http://andr3w.net/2009/03/configuring-spamassassin-as-a-daemon-on-ubuntu-intrepid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
