<?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; system</title>
	<atom:link href="http://andr3w.net/tag/system/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>Length Errors in Apache Bench</title>
		<link>http://andr3w.net/2009/05/length-errors-in-apache-bench/</link>
		<comments>http://andr3w.net/2009/05/length-errors-in-apache-bench/#comments</comments>
		<pubDate>Mon, 04 May 2009 22:42:02 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[system]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[benchmarking]]></category>
		<category><![CDATA[commandline]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://andr3w.net/?p=126</guid>
		<description><![CDATA[Are you seeing errors for content length in your Apache Bench tests of your webserver?
I had a hell of a time wondering what was going wrong with my webserver under load and finally found the answer here.
Turns out that Apache Bench takes the first pulled request and compares the length to all subsequent requests. Makes [...]]]></description>
			<content:encoded><![CDATA[<p>Are you seeing errors for content length in your <a href="http://httpd.apache.org/docs/2.0/programs/ab.html">Apache Bench</a> tests of your webserver?</p>
<p>I had a hell of a time wondering what was going wrong with my webserver under load and finally found the answer <a href="http://markmail.org/message/6zsvfw67rjy7hu4x#query:apachebench%20requests%20fail%20length+page:1+mid:b7wzpg43n3eiicu5+state:results">here</a>.</p>
<p>Turns out that Apache Bench takes the first pulled request and compares the length to all subsequent requests. Makes sense for a purely static page, but when you have a random image cropping up, you&#8217;re sure to see at least a couple bits difference in length.</p>
<p>So if you&#8217;re serving straight, hand coded HTML, enjoy the feeling of knowing that you&#8217;re getting the same length content each and every time&#8230; but if you&#8217;re like the rest of us (and anyone who would actually be using Apache Bench) feel free to rage that there&#8217;s no <a href="http://httpd.apache.org/docs/2.0/programs/ab.html#options">command line switch</a> to turn off that silly notification.</p>
]]></content:encoded>
			<wfw:commentRss>http://andr3w.net/2009/05/length-errors-in-apache-bench/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sweetcron Stream Updating Cron Job</title>
		<link>http://andr3w.net/2009/04/sweetcron-stream-updating-cron-job/</link>
		<comments>http://andr3w.net/2009/04/sweetcron-stream-updating-cron-job/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 02:04:49 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[site updates]]></category>
		<category><![CDATA[amdavidson.me]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[lifestream]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[sweetcron]]></category>
		<category><![CDATA[system]]></category>

		<guid isPermaLink="false">http://andr3w.net/?p=114</guid>
		<description><![CDATA[So the Sweetcron documentation isn&#8217;t altogether clear on what you should put in cron for it to update automatically, rather than slowing down a user every 30 minutes.
It&#8217;s fairly intuitive, but for those missing this logical step, do the following.
Change the setting in the admin panel from psuedo-cron to true-cron, and take note of the [...]]]></description>
			<content:encoded><![CDATA[<p>So the Sweetcron documentation isn&#8217;t altogether clear on what you should put in cron for it to update automatically, rather than slowing down a user every 30 minutes.</p>
<p>It&#8217;s fairly intuitive, but for those missing this logical step, do the following.</p>
<p>Change the setting in the admin panel from psuedo-cron to true-cron, and take note of the URL.</p>
<p>Then put the following in your crontab file (easily accessed with &#8216;crontab -e&#8217; on a debian machine):</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 /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">*/5 * * * * curl http://your/true-cron/url</div></td></tr></tbody></table></div>
<p>You can change the 5 to be the number of minutes between updates that you want, and you&#8217;ll definitely want to change the URL to the one listed in your Sweetcron&#8217;s admin page.</p>
]]></content:encoded>
			<wfw:commentRss>http://andr3w.net/2009/04/sweetcron-stream-updating-cron-job/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>
