<?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>gHacks technology news &#187; HAM</title>
	<atom:link href="http://www.ghacks.net/tag/ham/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghacks.net</link>
	<description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description>
	<lastBuildDate>Tue, 24 Nov 2009 23:31:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Spam filtering with Kmail</title>
		<link>http://www.ghacks.net/2009/10/16/spam-filtering-with-kmail/</link>
		<comments>http://www.ghacks.net/2009/10/16/spam-filtering-with-kmail/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 14:55:44 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Bogofilter]]></category>
		<category><![CDATA[HAM]]></category>
		<category><![CDATA[kmail]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[spamassassin]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=17337</guid>
		<description><![CDATA[SPAM. It&#8217;s a dreadful word that causes many a computer user to yank out their hair and wish their service provider would do a better job of keeping SPAM out of your inbox. But that is not going to happen over night. So&#8230;it is up to the end user to make sure they have extra [...]]]></description>
			<content:encoded><![CDATA[<p>SPAM. It&#8217;s a dreadful word that causes many a computer user to yank out their hair and wish their service provider would do a better job of keeping SPAM out of your inbox. But that is not going to happen over night. So&#8230;it is up to the end user to make sure they have extra means of SPAM prevention rolled into their email clients.</p>
<p>Most email clients contain some sort of SPAM prevention. On the Linux operating system you can employ such tools as <a title="Bogofilter" href="http://bogofilter.sourceforge.net/" target="_blank">Bogofilter</a> or <a title="Spamassassin" href="http://spamassassin.apache.org/" target="_blank">Spamassassin</a>. Either of these tools are great for stopping SPAM &#8211; but what about using them with your favorite email client? With some Linux email clients you have to add extra applications in order to have one of these SPAM filters doing their job with your client. Some clients, however, have built-in tools to save you a little work. KMail belongs to the latter category. So long as you have either/or Bogofilter or Spamassassin installed, you are one step closer to having solid SPAM filtering.</p>
<p>In this article you will learn how to set up reliable SPAM filtering in the KMail mail client.</p>
<p><span id="more-17337"></span><strong>Bogofilter and Spamassassin</strong></p>
<p>KMail can use either Bogofilter or Spammassassin easily. Read up on either tool and decide which application you want to use. I have had good luck with both, but I do believe Bogofilter is easier to set up. And since KMail will automatically detect either, the choice is yours.</p>
<p>You can install either tool from within the Add/Remove Software utility by following these steps:</p>
<ol>
<li><span style="background-color: #ffffff">Open Add/Remove Software utility.</span></li>
<li><span style="background-color: #ffffff">Search for either &#8220;bogofilter&#8221; or &#8220;spamassassin&#8221; (No quotes).</span></li>
<li><span style="background-color: #ffffff">Select either (or both) tools for installation.</span></li>
<li><span style="background-color: #ffffff">Click Apply to install.</span></li>
</ol>
<p>That&#8217;s it. Now you are ready to move on to KMail.</p>
<p><strong>Kmail SPAM Wizard</strong></p>
<div id="attachment_17339" class="wp-caption alignleft" style="width: 190px"><a rel="attachment wp-att-17339" href="http://www.ghacks.net/2009/10/16/spam-filtering-with-kmail/kmail_spam_wizard_1/"><img class="size-thumbnail wp-image-17339 " src="http://www.ghacks.net/wp-content/uploads/2009/10/kmail_spam_wizard_1-300x300.png" alt="Figure 1" width="180" height="180" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>When you have KMail set up and running click on the Tools menu and select the &#8220;Anti-SPAM Wizard&#8221; entry. When the Wizard opens the first thing it will do is detect which SPAM tools you have installed (see Figure 1).</p>
<p>Once the wizard has detected your SPAM tools, select the tool you want to use and click Next. For the purpose of this article I will select Bogofilter.</p>
<p>The next step in the wizard will ask you for two configurations:</p>
<ul>
<li><span style="background-color: #ffffff">Mark detected SPAM as read: I prefer to unset this, because of the next configuration option.</span></li>
<li><span style="background-color: #ffffff">Which folder to relocate SPAM: By default KMail will move SPAM to the trash folder. I prefer to create a new SPAM folder in order to catch any false-positives.</span></li>
</ul>
<p>By moving SPAM to a specific SPAM folder (and not the trash folder) and keeping SPAM unread, you are less likely to miss any email mistakenly marked as SPAM (false-positive).</p>
<p>The final window of the wizard gives you a report on what you have set up. In my case the wizard creates the following filters:</p>
<ul>
<li><span style="background-color: #ffffff">Bogofilter Check</span></li>
<li><span style="background-color: #ffffff">Spam handling</span></li>
<li><span style="background-color: #ffffff">Classify as Spam</span></li>
<li><span style="background-color: #ffffff">Classify as NOT Spam</span></li>
</ul>
<p>Click the Finish button and your KMail client is ready to learn. And learning is the key.</p>
<p><strong>Help Bogofilter learn</strong></p>
<div id="attachment_17340" class="wp-caption alignright" style="width: 190px"><a rel="attachment wp-att-17340" href="http://www.ghacks.net/2009/10/16/spam-filtering-with-kmail/ham_button/"><img class="size-thumbnail wp-image-17340 " src="http://www.ghacks.net/wp-content/uploads/2009/10/ham_button-300x124.png" alt="Figure 2" width="180" height="74" /></a><p class="wp-caption-text">Figure 2</p></div>
<p>Before Bogofilter can become a reliable SPAM filter, it has to learn what should be classified as SPAM and what should be classified as HAM. Here&#8217;s how I like to do it. Allow plenty of email to collect in your inbox. As the mail comes in take all SPAM (that is not already marked and moved) and move it to the SPAM folder. Once you have cleared your Inbox of all SPAM, select all mail in that folder and then click the Ham button (see Figure 2).</p>
<p>Now, once you have collect a good amount of SPAM in your SPAM folder open that folder up, select all the SPAM, and click the SPAM button.</p>
<p>You may have to do this trick a few times before Bogofilter has been properly trained. You will know when Bogofilter has become accurate with your SPAM/HAM.</p>
<p><strong>Final thoughts</strong></p>
<p>It couldn&#8217;t be much easier to catch and mark SPAM with KMail and Bogofilter. But if you find Bogofilter not as reliable as you would like, run the Wizard and try Spamassassin instead.</p>

	Tags: <a href="http://www.ghacks.net/tag/bogofilter/" title="Bogofilter" rel="tag">Bogofilter</a>, <a href="http://www.ghacks.net/tag/ham/" title="HAM" rel="tag">HAM</a>, <a href="http://www.ghacks.net/tag/kmail/" title="kmail" rel="tag">kmail</a>, <a href="http://www.ghacks.net/tag/spam/" title="spam" rel="tag">spam</a>, <a href="http://www.ghacks.net/tag/spamassassin/" title="spamassassin" rel="tag">spamassassin</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/06/20/use-bogofilter-for-better-junk-detection-in-evolution/" title="Use Bogofilter for better junk detection in Evolution (June 20, 2009)">Use Bogofilter for better junk detection in Evolution</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/05/01/use-spamassassin-for-better-spam-detection/" title="Use Spamassassin for better SPAM detection (May 1, 2009)">Use Spamassassin for better SPAM detection</a> (1)</li>
	<li><a href="http://www.ghacks.net/2008/05/18/whats-wrong-with-those-rapidshare-captchas/" title="What&#8217;s wrong with those Rapidshare Captchas ? (May 18, 2008)">What&#8217;s wrong with those Rapidshare Captchas ?</a> (44)</li>
	<li><a href="http://www.ghacks.net/2006/06/15/understanding-email-headers/" title="Understanding Email Headers (June 15, 2006)">Understanding Email Headers</a> (0)</li>
	<li><a href="http://www.ghacks.net/2009/07/01/trap-spammers-with-project-honey-pot/" title="Trap Spammers with Project Honey Pot (July 1, 2009)">Trap Spammers with Project Honey Pot</a> (4)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/10/16/spam-filtering-with-kmail/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Use Bogofilter for better junk detection in Evolution</title>
		<link>http://www.ghacks.net/2009/06/20/use-bogofilter-for-better-junk-detection-in-evolution/</link>
		<comments>http://www.ghacks.net/2009/06/20/use-bogofilter-for-better-junk-detection-in-evolution/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 16:02:09 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Bogofilter]]></category>
		<category><![CDATA[Evolution]]></category>
		<category><![CDATA[HAM]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=13735</guid>
		<description><![CDATA[So you&#8217;re using the Linux operating system and you&#8217;re not concerned with viruses. But you still get SPAM &#8211; and plenty of it. With the Evolution groupware suite you have, by default, Spamassassin as your Junk filtering tool. For some this is enough. For others, howerver, it doesn&#8217;t cut it. For those that need more [...]]]></description>
			<content:encoded><![CDATA[<p>So you&#8217;re using the Linux operating system and you&#8217;re not concerned with viruses. But you still get SPAM &#8211; and plenty of it. With the Evolution groupware suite you have, by default, Spamassassin as your Junk filtering tool. For some this is enough. For others, howerver, it doesn&#8217;t cut it. For those that need more you can give Bogofilter a try. You can use Bogofilter in conjunction with Spamassassin but that setup can become quite cumbersome and will require the creation of filters. To avoid this we will use only Bogofilter and we will train Bogofilter out of the box so it&#8217;s working right away to prevent SPAM from reaching you inbox.</p>
<p>With a little preparation this setup will go quickly. Without preparation, it will take some time for Bogofilter to learn SPAM/HAM.</p>
<p><span id="more-13735"></span><strong>Your preparation</strong></p>
<p>The easiest way to train Bogofilter is to have a collection of SPAM and HAM ready (approximately 200 each for training purposes) for it to use in the training process. These will be placed in SPAM and HAM folders (respectively) to be used once Bogofilter is installed and ready. But before you get to that point, you need to install Bogofilter and the Bogofilter Evolution plugin.</p>
<p>To install the necessary items open up your Add/Remove Software tool. Within this tool do a search for &#8220;bogofilter&#8221; (no quotes). You should see two particular pieces of software to install: bogofilter and bogofilter-evolution. Mark both of these applications for installation and click Apply to install them.</p>
<p>After they are installed you are ready to set up Bogofilter.</p>
<p><strong>Bogofilter setup</strong></p>
<p>The first thing to do is to enable the Bogofilter plugin in Evolution. Click on the Edit menu and select the Plugins entry. In this new window that opens click the Bogofilter check box to enable to plugin and then close the window.</p>
<div id="attachment_13740" class="wp-caption alignleft" style="width: 310px"><a href="http://www.ghacks.net/wp-content/uploads/2009/06/evolution_junk1.png"><img class="size-medium wp-image-13740" src="http://www.ghacks.net/wp-content/uploads/2009/06/evolution_junk1-500x415.png" alt="Figure 1" width="300" height="249" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>Now that the plugin is enabled, it&#8217;s time to configure it within Evolution. Go back to the Edit menu and select Preferences. When the Preferences window opens up click on the Mail Preferences button and then the Junk tab (see Figure 1).</p>
<p>From within the Junk tab the first thing to do is to select Bogofilter from the Default Junk Plugin dropdown. Now go back to the top and make sure &#8220;Check incoming messages for junk&#8221; is checked. Close this window after you have completed these steps.</p>
<p>Now you are ready to train Bogofilter.</p>
<p><strong>Training</strong></p>
<p>A lot of people complain that Bogofilter doesn&#8217;t work well. The main reason it doesn&#8217;t work well is because it hasn&#8217;t been trained. Remember those SPAM and HAM emails you collected in the SPAM and HAM folders? Now you are going to use them. First click on the HAM emails. These are all good emails (not SPAM). Select all of these and mark them as Junk. I know it sounds crazy, but it&#8217;s necessary. Now click on the Junk folder and you should see all of those emails you just marked as SPAM. Select them all again and mark them as Not Junk. Bogofilter just learned what you consider to not be junk.</p>
<p>Now click on the SPAM folder, select all of these messages, and mark them as Junk.</p>
<p>That&#8217;s it. Bogofilter should now be trained properly. And remember the more training you give Bogofilter, the smarter it will be.</p>
<p><strong>Final thoughts</strong></p>
<p>Bogofilter is a great tool for keeping SPAM out of your inbox. And best of all, it doesn&#8217;t require you to open up a terminal and issue a bunch of commands in order to get it working properly.</p>

	Tags: <a href="http://www.ghacks.net/tag/bogofilter/" title="Bogofilter" rel="tag">Bogofilter</a>, <a href="http://www.ghacks.net/tag/evolution/" title="Evolution" rel="tag">Evolution</a>, <a href="http://www.ghacks.net/tag/ham/" title="HAM" rel="tag">HAM</a>, <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/spam/" title="spam" rel="tag">spam</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/10/16/spam-filtering-with-kmail/" title="Spam filtering with Kmail (October 16, 2009)">Spam filtering with Kmail</a> (2)</li>
	<li><a href="http://www.ghacks.net/2009/05/01/use-spamassassin-for-better-spam-detection/" title="Use Spamassassin for better SPAM detection (May 1, 2009)">Use Spamassassin for better SPAM detection</a> (1)</li>
	<li><a href="http://www.ghacks.net/2009/02/09/replace-outlook-with-evolution-a-linux-groupware-suite/" title="Replace Outlook with Evolution: A Linux Groupware Suite (February 9, 2009)">Replace Outlook with Evolution: A Linux Groupware Suite</a> (17)</li>
	<li><a href="http://www.ghacks.net/2009/04/28/kontact-the-swiss-army-knife-of-pims/" title="Kontact: The Swiss Army Knife of PIMs (April 28, 2009)">Kontact: The Swiss Army Knife of PIMs</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/05/14/connect-evolution-to-google-mail-and-calendar/" title="Connect Evolution to Google mail and calendar (May 14, 2009)">Connect Evolution to Google mail and calendar</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/06/20/use-bogofilter-for-better-junk-detection-in-evolution/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
