<?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>Rasila Garage &#187; Open Source</title>
	<atom:link href="http://rasilagarage.com/tag/open-source/feed/" rel="self" type="application/rss+xml" />
	<link>http://rasilagarage.com</link>
	<description>Tuomas Rasila's blog about software and entrepreneurship</description>
	<lastBuildDate>Sun, 07 Mar 2010 09:11:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Using SugarCRM&#8217;s SOAP-API with Python and SOAPpy</title>
		<link>http://rasilagarage.com/2009/02/using-sugarcrms-soap-api-with-python-and-soappy/</link>
		<comments>http://rasilagarage.com/2009/02/using-sugarcrms-soap-api-with-python-and-soappy/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 18:13:32 +0000</pubDate>
		<dc:creator>Tuomas Rasila</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[sugarcrm]]></category>

		<guid isPermaLink="false">http://rasilagarage.com/?p=195</guid>
		<description><![CDATA[SugarCRM is nowadays very widely used CRM system so I will cover it in my posts every now and then. At work we use it by ourselves to handle some processes and have been working with customers using it. There are things I like and thing I don&#8217;t like in SugarCRM. It is bit bloated [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sugarcrm.com/" onclick="pageTracker._trackPageview('/outgoing/www.sugarcrm.com/?referer=');">SugarCRM</a> is nowadays very widely used CRM system so I will cover it in my posts every now and then.</p>
<div id="attachment_206" class="wp-caption alignright" style="width: 310px"><a href="http://rasilagarage.com/wp-content/uploads/2009/02/picture-1.png"><img class="size-medium wp-image-206" title="Sugarsoap" src="http://rasilagarage.com/wp-content/uploads/2009/02/picture-1-300x139.png" alt="The API is not very well documented but you can browse its capabilities be opening http://URL-TO-SUGAR/soap.php in your browser" width="300" height="139" /></a><p class="wp-caption-text">The API is not very well documented but you can browse its capabilities be opening http://URL-TO-SUGAR/soap.php in your browser</p></div>
<p>At work we use it by ourselves to handle some processes and have been working with customers using it. There are things I like and thing I don&#8217;t like in SugarCRM. It is bit bloated and the code is not the most beautiful I have seen. On the other hand it does its job quite well and it is easy to configure without touching a line of code.</p>
<p>If you use a CRM in your business for a while you will most likely to find that you would like to do some integration. At work we have been doing various kinds of integration tasks. We have integrated a phone system to automatically make entries to SugarCRM when inbound or outbound calls have been made, connected registration of a web application to create a new accounts to CRM, connected a <a href="http://en.wikipedia.org/wiki/Laboratory_Information_Management_System" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Laboratory_Information_Management_System?referer=');">LIMS</a> in various ways to it and so on. The reason I found SOAP-API to be the best way in most these cases is the fact that if you use it you won&#8217;t break down anything and it is likely that your code will work with future releases too. Off course there is a performance penalty and using SOAP API is not a good option when performance is an issue. So lets get to the business.<br />
<span id="more-195"></span><br />
<strong>Installing SOAPpy</strong><br />
I assume that installing Python module with easy_install is not a problem. However, latest version of <a href="http://pywebsvcs.sourceforge.net/" onclick="pageTracker._trackPageview('/outgoing/pywebsvcs.sourceforge.net/?referer=');">SOAPpy</a> was not compatible with Python 2.5. To install SOAPpy I would suggest the following:</p>
<p>1. Download and extract SOAPpy <a href="http://sourceforge.net/project/showfiles.php?group_id=26590&amp;package_id=18246" onclick="pageTracker._trackPageview('/outgoing/sourceforge.net/project/showfiles.php?group_id=26590_amp_package_id=18246&amp;referer=');">http://sourceforge.net/project/showfiles.php?group_id=26590&amp;package_id=18246</a></p>
<p>2. Move every &#8220;from __future__ import&#8221; lines to the beginning of the files where they are in. Below you can see the listing of these files.</p>
<pre class="brush:bash">
localhost:SOAPpy-0.12.0 tuomas$ grep -R __future__ SOAPpy/*.py
SOAPpy/Client.py:from __future__ import nested_scopes
SOAPpy/GSIServer.py:from __future__ import nested_scopes
SOAPpy/NS.py:from __future__ import nested_scopes
SOAPpy/Server.py:from __future__ import nested_scopes
SOAPpy/Types.py:from __future__ import nested_scopes
</pre>
<p>3. Install SOAPpy</p>
<pre class="brush:bash">
sudo python setup.py install
</pre>
<p><strong>The simplest possible example of SugarCRM + SOAPpy</strong><br />
The code below logs in to the SugarCRM, asks the version of the server and prints it. Here is the code:</p>
<pre class="brush:python">
import md5
import SOAPpy
USERNAME= "user"
PASSWORD= "pass"

auth = {'user_name': USERNAME, 'password': md5.new(PASSWORD).hexdigest(), "version": "1.1"}

# Url of SugarCRM + soap.php?wsdl
SUGAR_URL = 'http://192.160.0.1/soap.php?wsdl'

sugar = SOAPpy.WSDL.Proxy(SUGAR_URL)
session = sugar.login(auth, "foobar")

try:
    response = sugar.get_server_version()
except StandardError, err:
    print '\nError in information retrieval from SugarCRM:' + str(err)
print response
</pre>
<p>The API is not documented very well but you can list all of its capabilities by browsing yourself to http://URL-TO-SUGAR/soap.php.</p>
<p><strong>Advanced example</strong><br />
This script will log into SugarCRM and create a new Account.</p>
<pre class="brush:python">
import md5
import SOAPpy
USERNAME= "user"
PASSWORD= "pass"

auth = {'user_name': USERNAME, 'password': md5.new(PASSWORD).hexdigest(), "version": "1.1"}

# Url of SugarCRM + soap.php?wsdl
SUGAR_URL = 'http://192.160.0.1/soap.php?wsdl'

sugar = SOAPpy.WSDL.Proxy(SUGAR_URL)
session = sugar.login(auth, "foobar")
module = "Accounts"

adata = [{'name': 'name', 'value': "Test Account"},
           {'name': 'shipping_address_street', 'value': "Address test"}]
try:
    response = sugar.set_entry(session['id'], module, adata)
except StandardError, err:
     print '\nError in information retrieval from SugarCRM:' + str(err)
print response
</pre>
<p><strong>UPDATE:</strong> It appears to be that, Sugar Team is working with the <a href="http://developers.sugarcrm.com/wordpress/2009/02/11/draft-2-of-the-web-services-documentation-posted/" onclick="pageTracker._trackPageview('/outgoing/developers.sugarcrm.com/wordpress/2009/02/11/draft-2-of-the-web-services-documentation-posted/?referer=');">API and the documentation</a> at the moment and I&#8217;ll take back what I said about missing documentation. Thanks SugarCRM devs! </p>
]]></content:encoded>
			<wfw:commentRss>http://rasilagarage.com/2009/02/using-sugarcrms-soap-api-with-python-and-soappy/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to save 10 hours a month on time of other people by filtering their spam</title>
		<link>http://rasilagarage.com/2009/01/how-to-save-10-hours-a-month-on-time-of-other-people-by-filtering-their-spam/</link>
		<comments>http://rasilagarage.com/2009/01/how-to-save-10-hours-a-month-on-time-of-other-people-by-filtering-their-spam/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 15:12:59 +0000</pubDate>
		<dc:creator>Tuomas Rasila</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://rasilagarage.com/?p=98</guid>
		<description><![CDATA[“The average spam messages per day is 18.5 and the average time spent per day deleting them is 2.8 minutes. The loss in productivity is equivalent to $21.6 billion per year at average U.S. wages.” - Jesdanun, A. (2005), “Deleting spam costs billions, study finds”, The Associated Press Newswires (online) Let’s say there are ten [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>“The average spam messages per day is 18.5 and the average time spent per day deleting them is 2.8 minutes. The loss in productivity is equivalent to $21.6 billion per year at average U.S. wages.”</p>
<p>- Jesdanun, A. (2005), “Deleting spam costs billions, study finds”, The Associated Press Newswires (online)</p></blockquote>
<div id="attachment_168" class="wp-caption alignleft" style="width: 235px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_0087.jpg"><img src="http://rasilagarage.com/wp-content/uploads/2009/01/img_0087-225x300.jpg" alt="You can filter spam and viruses before they hit your mailserver" title="Untangle" width="225" height="300" class="size-medium wp-image-168" /></a><p class="wp-caption-text">You can filter spam and viruses before they hit your mailserver</p></div><br />
Let’s say there are ten people working in your office and monthly cost per person is 4500€ (25,50€ per hour). By eliminating spam you could save 9:48 hours or 249,90€ per month totaling 2998,80€ per year the study says. Ok, I know I&#8217;m quantifying the unquantifiable, but the amount is anyway far greater than zero.</p>
<p>In my opinion the problem that is not solved yet is the deployment. <strong>I think every tech savvy person filters their spam already.</strong> But how about the rest of the people. Sure, you can use time and install a spam filter to each client, you can also install a spam filter to mail server and get more results.</p>
<p>If you wish to install spam filter to every client computer it will take lot of time and possibly people can mess up their installations. Updating lots of PCs does not sound like a good idea either.</p>
<p>Installing spam filter to a mail server sounds like a better idea but it might be that you cannot go to the mail server. Another problem would be that having a universal spam filter that works with any mail server is not reality.</p>
<p>But what about I you could just use hardware based solution that works out-of-the-box with any kind of setup. Wouldn&#8217;t that be cool? Perhaps the easiest way to eliminate spam in any POP3, IMAP &amp; SMTP scenario would be to set up a network attached spam filter. This way would be 100% transparent to clients and completely platform independent. In SMTP scenario (You are not using mail server of your service provider, instead you have your own mail server) you can directly block spam before it goes to your mail server. You can also set up a simple shell script to automatically log in to your mail accounts and sweep the spam with Spamassassin. This would also be useful if you use a mobile device e.g. an iPhone to read your mail.<br />
<span id="more-98"></span><br />
<a href="http://www.untangle.com/" onclick="pageTracker._trackPageview('/outgoing/www.untangle.com/?referer=');">Untangle</a> has made a great job by putting it all together and by offering the whole thing as an <a href="http://www.untangle.com/Downloads/Download-ISO" onclick="pageTracker._trackPageview('/outgoing/www.untangle.com/Downloads/Download-ISO?referer=');">ISO-image</a>. Their software is open source, licensed under GPLv2. All you are going to need is a extra computer with two network controllers.</p>
<p>To get started you should have following items:</p>
<ul>
<li>Untangle ISO image, and empty cd-r, obviously</li>
<li>Extra computer with two nics, see hardware requirements</li>
</ul>
<p>During the installation you might also need:</p>
<ul>
<li>a monitor</li>
<li>an external CD drive</li>
</ul>
<p>So, let’s get started with it.</p>
<p>I didn’t have extra computer for this so I ordered one. Here is my hardware configuration:</p>
<ul>
<li>Kingston Valueram 2GB 23,90€</li>
<li>Intel Dual Core E5200 86,90€</li>
<li>D-Link DGE-528T 14,70€</li>
<li>Shuttle K45 barebone 111,90€</li>
<li>500GB HDD 56,90€</li>
<li>Total 301,80€ with shipping.</li>
</ul>
<p>This setup would be enough for pretty large network (maybe 200 clients). Hardware is not the case here, almost any x86 hardware should be just fine.</p>
<p><strong>Unboxing and putting hardware together</strong></p>
<p><div id="attachment_103" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1030.jpg"><img class="size-thumbnail wp-image-103" title="Spam filter unboxing 1" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1030-150x150.jpg" alt="Spam filter unboxing 1" width="150" height="150" /></a><p class="wp-caption-text">Spam filter unboxing 1</p></div>
<div id="attachment_105" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1033.jpg"><img class="size-thumbnail wp-image-105" title="Spam filter unboxing 2" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1033-150x150.jpg" alt="Spam filter unboxing 2" width="150" height="150" /></a><p class="wp-caption-text">Spam filter unboxing 2</p></div>
<div id="attachment_106" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1035.jpg"><img class="size-thumbnail wp-image-106" title="Spam filter unboxing 3" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1035-150x150.jpg" alt="Spam filter unboxing 3" width="150" height="150" /></a><p class="wp-caption-text">Spam filter unboxing 3</p></div>
<div id="attachment_107" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1039.jpg"><img class="size-thumbnail wp-image-107" title="Spam filter unboxing 4" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1039-150x150.jpg" alt="Spam filter unboxing 4" width="150" height="150" /></a><p class="wp-caption-text">Spam filter unboxing 4</p></div>
<div id="attachment_108" class="wp-caption alignnone" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1043.jpg"><img class="size-thumbnail wp-image-108" title="Spam filter unboxing 5" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1043-150x150.jpg" alt="Spam filter unboxing 5" width="150" height="150" /></a><p class="wp-caption-text">Spam filter unboxing 5</p></div>
<p>Putting the hardware is an easy thing to do and even if you have not done it before I&#8217;m sure it won&#8217;t be a big problem. To me it took something like 15 minutes.</p>
<p>Since I think most of the readers might end up with a different hardware setup I won&#8217;t go thru putting the hardware together part any further. If you find any problems with the hardware, post a comment.</p>
<p><strong>The installation process screenshots</strong></p>
<div id="attachment_115" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1044.jpg"><img class="size-thumbnail wp-image-115" title="Spam filter installation 1" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1044-150x150.jpg" alt="Setting up BIOS to boot from USB-CD" width="150" height="150" /></a><p class="wp-caption-text">Setting up BIOS to boot from USB-CD</p></div>
<div id="attachment_116" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1046.jpg"><img class="size-thumbnail wp-image-116" title="Spam filter installation 2" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1046-150x150.jpg" alt="Setting up BIOS continues" width="150" height="150" /></a><p class="wp-caption-text">Setting up bios continues</p></div>
<div id="attachment_117" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1047.jpg"><img class="size-thumbnail wp-image-117" title="Spam filter installation 3" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1047-150x150.jpg" alt="Saving BIOS and booting" width="150" height="150" /></a><p class="wp-caption-text">Saving BIOS and booting</p></div>
<div id="attachment_118" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1048.jpg"><img class="size-thumbnail wp-image-118" title="Spam filter installation 4" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1048-150x150.jpg" alt="Untangle booting" width="150" height="150" /></a><p class="wp-caption-text">Untangle booting</p></div>
<div id="attachment_119" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1049.jpg"><img class="size-thumbnail wp-image-119" title="Spam filter installation 5" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1049-150x150.jpg" alt="Entering to the installation wizard" width="150" height="150" /></a><p class="wp-caption-text">Entering to the installation wizard</p></div>
<div id="attachment_120" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1050.jpg"><img class="size-thumbnail wp-image-120" title="Spam filter installation 6" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1050-150x150.jpg" alt="Installation wizard 2, Accepting the GPL license" width="150" height="150" /></a><p class="wp-caption-text">Installation wizard 2</p></div>
<div id="attachment_122" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1051.jpg"><img class="size-thumbnail wp-image-122" title="Spam filter installation 7" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1051-150x150.jpg" alt="Selecting the destination drive" width="150" height="150" /></a><p class="wp-caption-text">Selecting the destination drive</p></div>
<div id="attachment_123" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1052.jpg"><img class="size-thumbnail wp-image-123" title="Spam filter installation 8" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1052-150x150.jpg" alt="Testing hardware" width="150" height="150" /></a><p class="wp-caption-text">Testing hardware</p></div>
<div id="attachment_124" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1054.jpg"><img class="size-thumbnail wp-image-124" title="Spam filter installation 9" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1054-150x150.jpg" alt="Final warning before writing to the disk" width="150" height="150" /></a><p class="wp-caption-text">Final warning before writing to the disk</p></div>
<div id="attachment_125" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1056.jpg"><img class="size-thumbnail wp-image-125" title="Spam filter installation 10" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1056-150x150.jpg" alt="Writing to the disk" width="150" height="150" /></a><p class="wp-caption-text">Writing to the disk</p></div>
<div id="attachment_126" class="wp-caption alignnone" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1057.jpg"><img class="size-thumbnail wp-image-126" title="Spam filter installation 11" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1057-150x150.jpg" alt="The installation is ready, remove CD and boot it for the first time" width="150" height="150" /></a><p class="wp-caption-text">The installation is ready, remove CD and boot it for the first time</p></div>
<p>Installing Untangle is quite straightforward process. My hardware setup did not have a CD-drive, keyboard, mouse or a monitor so I borrowed those from another computer. <strong>The mouse is essential!</strong> You cannot install Untangle without a mouse if you want to use the installer.</p>
<p>I think installation took something like half an hour for me, I didn&#8217;t time it. The installation wizard was easy to use and I sure most of the potential users with limited experience are fine with it.</p>
<p>My only complain would be the fact that in some step I needed a mouse to continue. I not sure if it was before or after the boot. Maybe text based installation option and SSH stating as a default would be a good idea for the future.</p>
<p>So as said, even thru Untangle pretty much works out of the box you should do some work more before you can remotely administer it.</p>
<p>Next couple of screens will guide you thru making basic settings and enabling the SSH server.</p>
<p><strong>Configuration screenshots</strong></p>
<div id="attachment_131" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1059.jpg"><img class="size-thumbnail wp-image-131" title="Untangle configuration 1" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1059-150x150.jpg" alt="Welcome to configuration wizard" width="150" height="150" /></a><p class="wp-caption-text">Welcome to configuration wizard</p></div>
<div id="attachment_132" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1060.jpg"><img class="size-thumbnail wp-image-132" title="Untangle configuration 2" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1060-150x150.jpg" alt="Entering some basic information" width="150" height="150" /></a><p class="wp-caption-text">Entering some basic information</p></div>
<div id="attachment_133" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1061.jpg"><img class="size-thumbnail wp-image-133" title="Untangle configuration 3" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1061-150x150.jpg" alt="Select a password" width="150" height="150" /></a><p class="wp-caption-text">Select a password</p></div>
<div id="attachment_134" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1063.jpg"><img class="size-thumbnail wp-image-134" title="Untangle configuration 4" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1063-150x150.jpg" alt="Select external and internal network interface" width="150" height="150" /></a><p class="wp-caption-text">Select external and internal network interface</p></div>
<div id="attachment_135" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1065.jpg"><img class="size-thumbnail wp-image-135" title="Untangle configuration 5" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1065-150x150.jpg" alt="Setup network" width="150" height="150" /></a><p class="wp-caption-text">Setup network</p></div>
<div id="attachment_136" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1066.jpg"><img class="size-thumbnail wp-image-136" title="Untangle configuration 6" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1066-150x150.jpg" alt="Checking connectivity" width="150" height="150" /></a><p class="wp-caption-text">Checking connectivity</p></div>
<div id="attachment_137" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1067.jpg"><img class="size-thumbnail wp-image-137" title="Untangle configuration 7" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1067-150x150.jpg" alt="As a router with NAT or completely transparent" width="150" height="150" /></a><p class="wp-caption-text">As a router with NAT or completely transparent</p></div>
<div id="attachment_138" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1068.jpg"><img class="size-thumbnail wp-image-138" title="Untangle configuration 8" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1068-150x150.jpg" alt="Setup email" width="150" height="150" /></a><p class="wp-caption-text">Setup email</p></div>
<div id="attachment_139" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1069.jpg"><img class="size-thumbnail wp-image-139" title="Untangle configuration 9" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1069-150x150.jpg" alt="Congrats Untangle is now installed" width="150" height="150" /></a><p class="wp-caption-text">Congrats Untangle is now installed</p></div>
<div id="attachment_140" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1070.jpg"><img class="size-thumbnail wp-image-140" title="Untangle configuration 10" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1070-150x150.jpg" alt="Login to admin interface" width="150" height="150" /></a><p class="wp-caption-text">Login to admin interface</p></div>
<div id="attachment_141" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1071.jpg"><img class="size-thumbnail wp-image-141" title="Untangle configuration 11" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1071-150x150.jpg" alt="By default your Untangle rack is empty" width="150" height="150" /></a><p class="wp-caption-text">By default your Untangle rack is empty</p></div>
<div id="attachment_142" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1072.jpg"><img class="size-thumbnail wp-image-142" title="Untangle configuration 12" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1072-150x150.jpg" alt="Launch a shell" width="150" height="150" /></a><p class="wp-caption-text">Launch a shell</p></div>
<div id="attachment_143" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1073.jpg"><img class="size-thumbnail wp-image-143" title="Untangle configuration 13" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1073-150x150.jpg" alt="Type ifconfig to see your network configuration" width="150" height="150" /></a><p class="wp-caption-text">Type ifconfig to see your network configuration</p></div>
<div id="attachment_144" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1075.jpg"><img class="size-thumbnail wp-image-144" title="Untangle configuration 14" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1075-150x150.jpg" alt="Enabling remote admin functionality" width="150" height="150" /></a><p class="wp-caption-text">Enabling remote admin functionality</p></div>
<div id="attachment_145" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1076.jpg"><img class="size-thumbnail wp-image-145" title="Untangle configuration 15" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1076-150x150.jpg" alt="Starting SSH by typing /etc/init.d/ssh start" width="150" height="150" /></a><p class="wp-caption-text">Starting SSH by typing /etc/init.d/ssh start</p></div>
<div id="attachment_146" class="wp-caption alignnone" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1077.jpg"><img class="size-thumbnail wp-image-146" title="Untangle configuration 16" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1077-150x150.jpg" alt="To make sure SSH starts next time you boot you have to type update-rc.d ssh defaults" width="150" height="150" /></a><p class="wp-caption-text">To make sure SSH starts next time you boot you have to type update-rc.d ssh defaults</p></div>
<p>Configuring Untangle is done with another wizard and it includes following steps:</p>
<p>- Agree with license, select password</p>
<p>- Select which network interface to use as external and which as internal</p>
<p>- Select router mode with NAT or transparent mode</p>
<p>Remote admin functionality is not on by default due the security reasons so in most cases you would like to put that on.</p>
<p>Putting SSH on is also a good idea and don&#8217;t forget to get SSH to the default runlevel. This is done by saying following to the terminal as a root:<br />
<code><br />
/etc/init.d/ssh start<br />
update-rc.d ssh defaults<br />
</code></p>
<p>Now that Untangle is installed and configured I would like to write few words about its capabilities.</p>
<p><strong>Using Untangle</strong></p>
<p>The beauty of Untangle is in its transparency. If you have only one computer I cannot see why you would like to install hardware based spam filter. But for network from couple to hundreds of clients PCs it is just great! After you get it up and running all the clients get the benefit of being spam free with no software installations and no new skills to learn. Sure this depends little bit of your configuration. It is going to be 100% transparent only if you will install it in front of the mail server you are using.</p>
<p>If you have a mail server outside of your network. You can use a small script called <a href="http://www.rogerbinns.com/isbg/" onclick="pageTracker._trackPageview('/outgoing/www.rogerbinns.com/isbg/?referer=');">IMAP Spam Begone</a> to sweep the spam on e.g. hourly basis. Installation is bit more difficult, I might write about it later on because it is generally useful.</p>
<p><strong>The admin utility</strong></p>
<p>Finally couple word about the admin utility. Untangle admin utility&#8217;s user interface looks like a server rack. Each component appears as a rack-mounted utility. I did not like the look of the UI for at first but it was simple to use.</p>
<p>Untangle&#8217;s spam filter is <a href="http://spamassassin.apache.org/" onclick="pageTracker._trackPageview('/outgoing/spamassassin.apache.org/?referer=');">Spamassassin</a>. The other components you can get to your rack are:</p>
<ul>
<li>Web Filter</li>
<li>Spyware Blocker</li>
<li>Protocol Control</li>
<li>Virus Blocker</li>
<li>Phish Blocker</li>
<li>IPS</li>
<li>Attack Blocker</li>
<li>Firewall</li>
<li>OpenVPN</li>
<li>Reports Routing</li>
<li>QoS</li>
</ul>
<p><strong>UPDATE: Statistics after about six weeks</strong><br />
It appears to be that after six weeks 121480 spam messages have been blocked and 1051 non-spam messages passed. Users are saying that they are virtually getting no spam at all. So I am pretty happy with it.<br />
<div id="attachment_178" class="wp-caption alignright" style="width: 310px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/02022009252.jpg"><img src="http://rasilagarage.com/wp-content/uploads/2009/01/02022009252-300x225.jpg" alt="Untangle stats after six weeks of operation" title="Untangle stats" width="300" height="225" class="size-medium wp-image-178" /></a><p class="wp-caption-text">Untangle stats after six weeks of operation</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://rasilagarage.com/2009/01/how-to-save-10-hours-a-month-on-time-of-other-people-by-filtering-their-spam/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
