<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>unsigned long geek = random(); &#187; Networking</title>
	<atom:link href="http://mjturner.net/blog/archives/category/networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://mjturner.net/blog</link>
	<description>Michael-John Turner: Musings from a random UNIX geek</description>
	<lastBuildDate>Fri, 12 Jun 2009 22:28:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
		<item>
		<title>Build a better mail server with NetBSD, part 2</title>
		<link>http://mjturner.net/blog/archives/2007/07/18/build-a-better-mail-server-with-netbsd-part-2/</link>
		<comments>http://mjturner.net/blog/archives/2007/07/18/build-a-better-mail-server-with-netbsd-part-2/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 08:06:45 +0000</pubDate>
		<dc:creator>Michael-John Turner</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://weblogs.turner.org.za/mj/archives/2007/07/18/build-a-better-mail-server-with-netbsd-part-2/</guid>
		<description><![CDATA[In the first part of this short series, I detailed the reasoning behind my need for a new mail server. In this second part, I&#8217;m going to detail my mail architecture as well as the software choices I made and why.
All mail for my various domains is delivered to the primary MX, which is a [...]]]></description>
			<content:encoded><![CDATA[<p>In the <a href="http://weblogs.turner.org.za/mj/archives/2007/05/14/build-a-better-mail-server-with-netbsd-part-1/">first part</a> of this short series, I detailed the reasoning behind my need for a new mail server. In this second part, I&#8217;m going to detail my mail architecture as well as the software choices I made and why.</p>
<p>All mail for my various domains is delivered to the primary MX, which is a hosted server sitting in the US running <a href="http://www.debian.org">Debian GNU/Linux</a> (unfortunately my hosting provider doesn&#8217;t support NetBSD). It runs <a href="http://www.postfix.org">postfix</a> and makes use of a variety of checks within postfix itself as well as <a href="http://postgrey.schweikert.ch/">postgrey</a> for greylisting. I use a fairly conservative list of RBLs and, in conjunction with greylisting, they stop most spam from being accepted. Why postfix? Well, I stopped using sendmail over ten years ago, and although I&#8217;ve had good results with <a href="http://www.exim.org">Exim</a> in the past, these days I&#8217;m just most comfortable with postfix and it suits my needs perfectly.</p>
<p>The RBLs I use:</p>
<ul>
<li>zen.spamhaus.org</li>
<li>cbl.abuseat.org</li>
<li>list.dsbl.org</li>
</ul>
<p>Once mail has been received by my primary MX, it is delivered to local mailboxes, one per user. None of the users read their mail from the US server, however. All the mail is downloaded to the local mail server via SSL-secured POP3 and accessed here, either locally or via IMAP. The local mail server is a Sun Ultra 2 running NetBSD/sparc64 3.1_STABLE.</p>
<p>Software I&#8217;m using on the local mail server:</p>
<ul>
<li>postfix</li>
<li><a href="http://www.dovecot.org">dovecot</a> for IMAP (over SSL) access. There are a number of IMAP/POP3 servers available, but I chose Dovecot because of its clean design, good security record and flexible support for mail storage, amongst other things.</li>
<li><a href="http://www.ijs.si/software/amavisd/">amavisd-new</a> with <a href="http://spamassassin.apache.org/">spamassasin</a> (with razor and Bayesian filtering enabled) and <a href="http://www.clamav.net/">clamav</a> for content filtering</li>
<li><a href="http://pyropus.ca/software/getmail/">getmail</a> to download mail from the US server</li>
<li><a href="http://mailgraph.schweikert.ch/">mailgraph</a> for simple reporting</li>
</ul>
<p>All of the above are available in pkgsrc. As I have already done any RBL-based checks on the MX, I don&#8217;t do any of them locally.<br />
<!--pp-thumb-start--><!--PictPress found no dir /home/www/weblogs.turner.org.za/mj/images//2007/07/build-a-better-mail-server-with-netbsd-part-2--><!--pp-thumb-end--></p>
]]></content:encoded>
			<wfw:commentRss>http://mjturner.net/blog/archives/2007/07/18/build-a-better-mail-server-with-netbsd-part-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Build a better mail server with NetBSD, part 1</title>
		<link>http://mjturner.net/blog/archives/2007/05/14/build-a-better-mail-server-with-netbsd-part-1/</link>
		<comments>http://mjturner.net/blog/archives/2007/05/14/build-a-better-mail-server-with-netbsd-part-1/#comments</comments>
		<pubDate>Mon, 14 May 2007 10:31:31 +0000</pubDate>
		<dc:creator>Michael-John Turner</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://weblogs.turner.org.za/mj/archives/2007/05/14/build-a-better-mail-server-with-netbsd-part-1/</guid>
		<description><![CDATA[I&#8217;ve been using basically the same approach for my personal mail for over twelve years &#8211; a curses-based client (currently ]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using basically the same approach for my personal mail for over twelve years &#8211; a curses-based <a href="http://en.wikipedia.org/wiki/Mail_user_agent">client</a> (currently <a href="http://www.mutt.org"/">mutt</a>), mail storage in <a href="http://en.wikipedia.org/wiki/Mbox">mbox</a> format and reading my mail on the mail server itself, logged in via ssh. As can well be imagined, it&#8217;s starting to get a little long in the tooth:</p>
<ul>
<li>The mbox format has a number of limitations (locking, performance, etc), although it is convenient to have a mail folder housed in a single file. Using mbox format also prevents me from using a client that doesn&#8217;t support it.</li>
<li>I have no convenient external access to my mail &#8211; if I&#8217;m not with a laptop, trying to read mail via an ssh connection from a mobile phone is rather uncomfortable.</li>
</ul>
<p>To finally move into the 21st century, over the past few weeks I&#8217;ve put in place a new <a href="http://sunsolve.sun.com/handbook_pub/Systems/U2/U2.html">Sun Ultra 2</a> mail server, running <a href="http://www.netbsd.org">NetBSD</a>/<a href="http://www.netbsd.org/Ports/sparc64/">sparc64</a>. Over the next few days I&#8217;ll be discussing the configuration of the new server, focusing in particular on some of the challenges faced when using a slightly, er, unusual platform.</p>
<p><!--pp-thumb-start--><!--PictPress found no dir /home/www/weblogs.turner.org.za/mj/images//2007/05/build-a-better-mail-server-with-netbsd-part-1--><!--pp-thumb-end--></p>
]]></content:encoded>
			<wfw:commentRss>http://mjturner.net/blog/archives/2007/05/14/build-a-better-mail-server-with-netbsd-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>fetchmail configuration syntax sucks</title>
		<link>http://mjturner.net/blog/archives/2007/05/09/fetchmail-configuration-syntax-sucks/</link>
		<comments>http://mjturner.net/blog/archives/2007/05/09/fetchmail-configuration-syntax-sucks/#comments</comments>
		<pubDate>Wed, 09 May 2007 12:20:00 +0000</pubDate>
		<dc:creator>Michael-John Turner</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://weblogs.turner.org.za/mj/archives/2007/05/09/fetchmail-configuration-syntax-sucks/</guid>
		<description><![CDATA[As part of my mail server rebuild (to be discussed in a future series of posts), I&#8217;ve been upgrading some of my mail system configuration files. One of them is fetchmail.conf, the configuration file for fetchmail, which I use to fetch mail from my mail server. It required a few changes after the upgrade to [...]]]></description>
			<content:encoded><![CDATA[<p>As part of my mail server rebuild (to be discussed in a future series of posts), I&#8217;ve been upgrading some of my mail system configuration files. One of them is fetchmail.conf, the configuration file for <a href="http://catb.org/~esr/fetchmail/">fetchmail</a>, which I use to fetch mail from my mail server. It required a few changes after the upgrade to version 6.3.8 and a few changes in my environment.</p>
<p>A snippet from my updated configuration file:
<pre>
        username user1 with password "pass1" is user1 here ssl fetchall
                sslfingerprint "BA:34:74:B6:7F:EF:A7:88:7C:7A:D1:8B:79:C5:10:D9"
                sslcertpath /etc/openssl/certs
                smtphost mail.relay.co.za
        username user2 with password "pass2" is user2 here ssl fetchall
                sslfingerprint "BA:34:74:B6:7F:EF:A7:88:7C:7A:D1:8B:79:C5:10:D9"
                sslcertpath /etc/openssl/certs
                smtphost mail.relay.co.za</pre>
<p>Now, why on earth does one have to specify an SSL fingerprint, certificate path and mail server for each user? Wouldn&#8217;t it make more sense to have a global default and individual overrides where necessary? Chalk this up as another reason why I should move to <a href="http://pyropus.ca/software/getmail/">getmail</a>. Yes, I know I could add the functionality myself, but I really do need to move away from using <a href="http://docs.freebsd.org/cgi/getmsg.cgi?fetch=585008+0+archive/2001/freebsd-arch/20010218.freebsd-arch">an abomination before God</a> to fetch my mail.</p>
<p>Note to self: this is the second &#8220;sucks&#8221; post in two days. Must remember to be more positive.<!--pp-thumb-start--><!--PictPress found no dir /home/www/weblogs.turner.org.za/mj/images//2007/05/fetchmail-configuration-syntax-sucks--><!--pp-thumb-end--></p>
]]></content:encoded>
			<wfw:commentRss>http://mjturner.net/blog/archives/2007/05/09/fetchmail-configuration-syntax-sucks/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Greylisting sucks</title>
		<link>http://mjturner.net/blog/archives/2007/05/08/greylisting-sucks/</link>
		<comments>http://mjturner.net/blog/archives/2007/05/08/greylisting-sucks/#comments</comments>
		<pubDate>Tue, 08 May 2007 06:16:50 +0000</pubDate>
		<dc:creator>Michael-John Turner</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://weblogs.turner.org.za/mj/archives/2007/05/08/greylisting-sucks/</guid>
		<description><![CDATA[&#8230; when you&#8217;re on the receiving end of it

776354139      2946 Tue May  8 07:06:14  mj@turner.org.za
(host mail.netbsd.org[204.152.190.11] said: 450
: Recipient address rejected: Greylisting in action, please try later (in reply to RCPT TO command))
                [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230; when you&#8217;re on the receiving end of it</p>
<p><code><br />
776354139      2946 Tue May  8 07:06:14  mj@turner.org.za<br />
(host mail.netbsd.org[204.152.190.11] said: 450
<port -sparc64@netbsd.org>: Recipient address rejected: Greylisting in action, please try later (in reply to RCPT TO command))<br />
                                         port-sparc64@netbsd.org
</port></code></p>
<p>But seriously, although there are some valid criticisms of <a href="http://en.wikipedia.org/wiki/Greylisting">greylisting</a>, it&#8217;s very effective at reducing spam, albeit at the cost of mail server and network resources. I just wish more mailing lists would make use of it &#8211; most of the spam I get these days is from lists that don&#8217;t have adequate anti-spam measures in place (Debian, FreeBSD and OpenBSD lists I&#8217;m looking to you!).<!--pp-thumb-start--><!--PictPress found no dir /home/www/weblogs.turner.org.za/mj/images//2007/05/greylisting-sucks--><!--pp-thumb-end--></p>
]]></content:encoded>
			<wfw:commentRss>http://mjturner.net/blog/archives/2007/05/08/greylisting-sucks/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>vodafone 3G card and Linux/NetBSD</title>
		<link>http://mjturner.net/blog/archives/2005/11/19/vodafone-3g-card-and-linuxnetbsd/</link>
		<comments>http://mjturner.net/blog/archives/2005/11/19/vodafone-3g-card-and-linuxnetbsd/#comments</comments>
		<pubDate>Sat, 19 Nov 2005 12:10:12 +0000</pubDate>
		<dc:creator>Michael-John Turner</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://weblogs.turner.org.za/mj/?p=56</guid>
		<description><![CDATA[In the week I got a vodafone Mobile Connect 3G card courtesy of our IT department, who will be paying for the subscription and first 500MiB of traffic. My notebook currently runs Debian GNU/Linux 3.1 with kernel 2.6.13 and I had no difficulty getting the card working. It was simply a matter of making sure [...]]]></description>
			<content:encoded><![CDATA[<p>In the week I got a vodafone <a href="http://www.vodacom.co.za/packages/3g/overview.jsp">Mobile Connect</a> 3G card courtesy of our IT department, who will be paying for the subscription and first 500MiB of traffic. My notebook currently runs <a href="http://www.debian.org">Debian</a> GNU/Linux 3.1 with kernel 2.6.13 and I had no difficulty getting the card working. It was simply a matter of making sure my kernel had support for the Option USB card (I have the Option 3G Quadlite card), inserting the card and configuring my PPP connection.</p>
<p>Some useful links:</p>
<ul>
<li><a href="http://www.orthodox.org.za/CommunityResources/vodaphone3g.html">vodafone 3G on Linux</a>, which includes Alan Barrett&#8217;s info on getting it working under <a href="http://www.NetBSD.org">NetBSD</a>.</li>
<li><a href="http://www.mybroadband.co.za">MyADSL</a> <a href="http://www.mybroadband.co.za/vb/showthread.php?t=21726">Linux 3G HOWTO</a>.
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mjturner.net/blog/archives/2005/11/19/vodafone-3g-card-and-linuxnetbsd/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>ADSL connection resets every two hours?</title>
		<link>http://mjturner.net/blog/archives/2005/11/11/adsl-connection-resets-every-two-hours/</link>
		<comments>http://mjturner.net/blog/archives/2005/11/11/adsl-connection-resets-every-two-hours/#comments</comments>
		<pubDate>Fri, 11 Nov 2005 20:43:33 +0000</pubDate>
		<dc:creator>Michael-John Turner</dc:creator>
				<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://weblogs.turner.org.za/mj/?p=54</guid>
		<description><![CDATA[I was browsing the MyBroadband forums this evening when I spotted this thread. Since the new Telkom tariffs came into effect at the beginning of November, it seems that ISPs reselling Telkom ADSL accounts have resorted to more frequent connection resets in order to ensure that subscribers don&#8217;t exceed their monthly traffic limits. Prior to [...]]]></description>
			<content:encoded><![CDATA[<p>I was browsing the <a href="http://www.MyBroadband.co.za">MyBroadband</a> forums this evening when I spotted <a href="http://mybroadband.co.za/vb/showthread.php?t=30950">this thread</a>. Since the new <a href="http://www.telkom.co.za">Telkom</a> tariffs came into effect at the beginning of November, it seems that ISPs reselling Telkom ADSL accounts have resorted to more frequent connection resets in order to ensure that subscribers don&#8217;t exceed their monthly traffic limits. Prior to 1 November, all ISPs reset connections every 24 hours (according to Telkom, in order to update RADIUS accounting, amongst other things). </p>
<p>From my understanding, this increase in reset frequence has been brought about by two things:</p>
<ul>
<li>Telkom now charges ISPs for actual ADSL traffic instead of for individual 3GiB accounts, as they did the past</li>
<li>RADIUS traffic accounting is only updated at connection reset</li>
</ul>
<p>In order to prevent situations where subscribers are able to download large amounts during the time between their penultimate and final connection resets before they reach their traffic limit, some ISPs are resorting to resetting connections every two hours. Yes, every two hours.</p>
<p>It seems as if the ADSL &#8220;broadband&#8221; market in South Africa is becoming more of a laughing stock by the month, primarily as a result of Telkom&#8217;s monopolistic practices.</p>
]]></content:encoded>
			<wfw:commentRss>http://mjturner.net/blog/archives/2005/11/11/adsl-connection-resets-every-two-hours/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>ZoneEdit and dynamic DNS</title>
		<link>http://mjturner.net/blog/archives/2005/02/20/zoneedit-and-dynamic-dns/</link>
		<comments>http://mjturner.net/blog/archives/2005/02/20/zoneedit-and-dynamic-dns/#comments</comments>
		<pubDate>Sun, 20 Feb 2005 12:36:13 +0000</pubDate>
		<dc:creator>Michael-John Turner</dc:creator>
				<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">/?p=38</guid>
		<description><![CDATA[I&#8217;ve been using ZoneEdit to provide DNS for some of my domains for a while now and I&#8217;ve been fairly happy with them. I haven&#8217;t had any outages and they&#8217;ve been pretty good at responding to my queries. The best thing: their service is free for the first five domains you host with them.
One thing [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using <a href="http://www.zonedit.com/">ZoneEdit</a> to provide DNS for some of my domains for a while now and I&#8217;ve been fairly happy with them. I haven&#8217;t had any outages and they&#8217;ve been pretty good at responding to my queries. The best thing: their service is free for the first five domains you host with them.</p>
<p>One thing that&#8217;s very nifty is that they support dynamic DNS, which is ideal for people who have a dynamic IP at home (like me). There are other free dynamic DNS providers, but they typically require you to register a hostname within one of their existing domains, which is not what I wanted. Others, who allow you to register any domain and update hosts within it dynamically, typically charge. ZoneEdit allow you to register any domain and update it using a dynamic DNS client, which is what I&#8217;ve done.</p>
<p>I have a slightly complicated setup because I have ZoneEdit&#8217;s servers listed as authoritative, but I update their servers via zone transfers rather than by using their web interface (ie I have a &#8220;phantom primary&#8221;). To allow me to support dynamic DNS for my home IP, I&#8217;ve created a subdomain which I&#8217;ve delegated to ZoneEdit and update using <a href="http://ddclient.sourceforge.net/">ddclient</a>. Works rather well.</p>
]]></content:encoded>
			<wfw:commentRss>http://mjturner.net/blog/archives/2005/02/20/zoneedit-and-dynamic-dns/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
	</channel>
</rss>
