<?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>Running Systems&#187; amavis</title>
	<atom:link href="http://run.tournament.org.il/tag/amavis/feed/" rel="self" type="application/rss+xml" />
	<link>http://run.tournament.org.il</link>
	<description>(and me chasing them)</description>
	<lastBuildDate>Wed, 02 Jun 2010 13:50:14 +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>Misconfigured Amavisd and its impact</title>
		<link>http://run.tournament.org.il/misconfigured-amavisd-and-its-impact/</link>
		<comments>http://run.tournament.org.il/misconfigured-amavisd-and-its-impact/#comments</comments>
		<pubDate>Tue, 19 Jun 2007 10:10:04 +0000</pubDate>
		<dc:creator>ez-aton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[amavis]]></category>
		<category><![CDATA[cacti]]></category>
		<category><![CDATA[clamav]]></category>
		<category><![CDATA[graphical tool]]></category>
		<category><![CDATA[heavy load]]></category>
		<category><![CDATA[performance impact]]></category>
		<category><![CDATA[performance measurement]]></category>
		<category><![CDATA[spamassassin]]></category>

		<guid isPermaLink="false">http://www.tournament.org.il/run-new/?p=143</guid>
		<description><![CDATA[As an administrator, I am responsible for many setups and configurations, sometimes hand tailored to supply an answer to a set of given demands. As a human, I err, and the common method of verifying that you have avoided error is by answering this simple rule: &#8220;Does it work after these changes?&#8221; In the world [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>As an administrator, I am responsible for many setups and configurations, sometimes hand tailored to supply an answer to a set of given demands.</p>
<p>As a human, I err, and the common method of verifying that you have avoided error is by answering this simple rule: &#8220;Does it work after these changes?&#8221;</p>
<p>In the world of computers there is hardly ever simple true or false. We would have expected it to be boolean world &#8211; either it works or it doesn&#8217;t, but we are not there. The world of computers is filled with &#8220;works better&#8221; and &#8220;works worse&#8221;, and sometimes we forget that.</p>
<p>This long prologue was meant to bring up the subject of monitoring and evaluating your actions. While the simplest method of evaluation remains &#8220;Does it work?&#8221;, there are some additional, more subtle methods of verifying that things work according to your specifications.</p>
<p>One of the tools which helps me see, in the mirror of time, the effect of changes I have done is a graphical tool called <a href="http://www.cacti.net/" target="_blank">Cacti</a>. This tool graphs a set of predefined parameters which were chosen by me. It has no special AI, it cannot guess anything, and I am quite happy with it, as I can understand for myself the course of events better.</p>
<p>This post is about a mis configured Amavisd daemon. Amavis is a wrapper which scans using both Spamassassin and a selected Antivirus (ClamAV, in my case, as it has proven itself to me as a good AV) mail supplied by the local MTA.</p>
<p>I had a directive looking like this in it:</p>
<blockquote><p>['ClamAV-clamscan', 'clamscan',<br />
"--stdout --disable-summary -r --tempdir=$TEMPBASE {}", [0], [1],<br />
qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],</p></blockquote>
<p>It worked, however, this server, as it appears, was heavily loaded for a while now. Since it&#8217;s a rather strong server, it was not really visible unless you take a look at the server&#8217;s Cacti. On about 80%+ of the time the CPUs were on 100% with the process &#8216;<em>clamscan</em>&#8216;. I have decided yesterday to solve the heavy load, and for that modified the file &#8216;<em>/etc/amavisd.conf</em>&#8216; to include the primary ClamAV section as follows:</p>
<blockquote><p>['ClamAV-clamd',<br />
\&amp;ask_daemon, ["CONTSCAN {}\n", "/tmp/clamd"],<br />
qr/\bOK$/, qr/\bFOUND$/,<br />
qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],</p></blockquote>
<p>This uses clamd instead of clamscan. The results were a drastic decrease on the CPU consumption and system average load, as can be seen in the Cacti graph (around 4 AM):</p>
<div class="serendipity_imageComment_center" style="width: 640px">
<div class="serendipity_imageComment_img"><!-- s9ymdb:93 --><img src="/files/Pictures/clamd-load.jpg" alt="" width="640" height="535" /></div>
<div class="serendipity_imageComment_txt">Cacti load average graph</div>
</div>
<p>The point is that while both configuration worked, I had the tools to understand that the earlier configuration was not good enough. Through tracking parameters on the system for a while, I could monitor my configuration modifications using a wider perspective, and reach better conclusions.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://run.tournament.org.il/misconfigured-amavisd-and-its-impact/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
