<?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>game, game. repeat. &#187; clamav</title>
	<atom:link href="http://ggr.com/tag/clamav/feed" rel="self" type="application/rss+xml" />
	<link>http://ggr.com</link>
	<description>if Scott Bonds had a home on the interwebs, this would be it</description>
	<lastBuildDate>Tue, 09 Feb 2010 00:59:33 +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>How To Scan For Viruses in Your Email When Using Apple Mail</title>
		<link>http://ggr.com/how-to-scan-for-viruses-in-your-email-when-using-apple-mail.html</link>
		<comments>http://ggr.com/how-to-scan-for-viruses-in-your-email-when-using-apple-mail.html#comments</comments>
		<pubDate>Wed, 16 Sep 2009 21:10:29 +0000</pubDate>
		<dc:creator>Scott Bonds</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[antivirus]]></category>
		<category><![CDATA[apple mail]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[clamav]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[growl]]></category>
		<category><![CDATA[launchd]]></category>
		<category><![CDATA[lingon]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[mpack]]></category>

		<guid isPermaLink="false">http://ggr.com/?p=415</guid>
		<description><![CDATA[There&#8217;s more than way to go about it, but I prefer using the open source ClamAV and a script that runs to scan each email as it comes in. Setup ClamAV Install ClamAV.  I used MacPorts to install it: sudo port install clamav Make sure all the ClamAV binaries are in your PATH.  Chances are if [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://ggr.com/how-to-scan-your-email-in-apple-mail.html"><img class="size-full wp-image-419 aligncenter" title="apple mail antivirus rule" src="http://ggr.com/wp-content/uploads/apple-mail-antivirus-rule.jpg" alt="apple mail antivirus rule" width="580" height="273" /></a></p>
<p>There&#8217;s more than way to go about it, but I prefer using the open source ClamAV and a script that runs to scan each email as it comes in.</p>
<p><span id="more-415"></span><strong>Setup ClamAV</strong></p>
<ol>
<li>Install <a href="http://www.clamav.net/">ClamAV</a>.  I used <a href="http://www.macports.org/">MacPorts</a> to install it: <code>sudo port install clamav</code></li>
<li>Make sure all the ClamAV binaries are in your PATH.  Chances are if you&#8217;re using MacPorts, you&#8217;ve already taken care of that.</li>
<li>Configure freshclam and clamd.  Since I used MacPorts to install ClamAV, this consisted of&#8230;</li>
<li>rename the example conf files in /opt/local/etc: <code>mv example-freshclam.conf freshclam.conf;</code> <code>mv example-clamd.conf clamd.conf</code></li>
<li>read the conf files and edit them as appropriate, then add the line <code>NotifyClamd /opt/local/etc/clamd.conf (</code>substituting the full path to your clamd.conf file) to the end of freshclam.conf so that clamd knows about it when freshclam has updated the virus definitions</li>
<li>run freshclam to see if it works</li>
<li>notice that it doesn&#8217;t work because it needs permissions to certain directories; <code>sudo chown -R &lt;clamav user&gt; &lt;directory&gt;</code>&#8230;the directory you need to update will be clear based on the error message, the user that freshclam and clamd run under is configured in the conf files.  In the MacPorts case its &#8216;clamav&#8217;.</li>
<li>rinse and repeat until freshclam works</li>
<li>run clamd to see if it works</li>
<li>fix its permissions too</li>
<li>run clamdscan to check that it can scan some files using clamdscan</li>
<li>Create <a href="http://developer.apple.com/macosx/launchd.html">launchd</a> items for freshclam and clamd.  Freshclam should run every 168 hours or so.  Clamd should run all the time.  I recommend using <a href="http://sourceforge.net/projects/lingon/files/">Lingon</a> to configure your launchd items.</li>
<li>Reboot.  Check to see that clamd is running.  Fix it if its not.</li>
</ol>
<p><strong>Setup Growl</strong></p>
<ol>
<li>Install <a href="http://growl.info/">Growl</a>.</li>
<li>Install GrowlNotify.  It&#8217;s in the Extras folder of the Growl installer.</li>
<li>Make sure GrowlNotify is in your PATH.</li>
</ol>
<p><strong>Setup Mpack</strong></p>
<ol>
<li>Install Mpack.  With MacPorts its: <code>sudo port install mpack</code></li>
<li>Make sure Mpack is in your PATH.</li>
</ol>
<p><strong>Setup the antivirus script</strong></p>
<ol>
<li>Download the <a href="http://ggr.com/wp-content/uploads/VirusChecker.scpt">antivirus script</a> I updated (fixed it to work with Snow Leopard, added Growl support, removed Stuffit support).  A big thank you to the <a href="http://creativeeyes.at/tools/clamav">original authors</a>!</li>
<li>Move the script to your ~/Library/Scripts directory.</li>
<li>Edit the script, updating the configuration options at the top of the file.</li>
<li>Create a local mail folder called &#8216;Infected&#8217; in Apple Mail.</li>
<li>Create a rule in Apple Mail that runs the script on all email messages.</li>
<li>Try emailing yourself a <a href="http://www.eicar.org/anti_virus_test_file.htm">test virus</a> and verify that your antivirus script sends a Growl alert and moves the message to the infected folder.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://ggr.com/how-to-scan-for-viruses-in-your-email-when-using-apple-mail.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
