<?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>ProjReality</title>
	<atom:link href="http://www.projreality.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.projreality.com</link>
	<description></description>
	<lastBuildDate>Fri, 04 Mar 2011 07:22:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>How to Back Up your GMail</title>
		<link>http://www.projreality.com/archives/149</link>
		<comments>http://www.projreality.com/archives/149#comments</comments>
		<pubDate>Thu, 03 Mar 2011 08:47:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Backup]]></category>

		<guid isPermaLink="false">http://www.projreality.com/?p=149</guid>
		<description><![CDATA[In light of the recent GMail account resets, I decided to stop procrastinating and back up all of my e-mail. It turned out it was pretty simple, with just a few caveats. The following steps are specifically for Arch Linux, though they can be generalized to other Linux distributions too. First, install getmail. Getmail is [...]]]></description>
			<content:encoded><![CDATA[<p>In light of the recent GMail account resets, I decided to stop procrastinating and back up all of my e-mail.  It turned out it was pretty simple, with just a few caveats.</p>
<p>The following steps are specifically for Arch Linux, though they can be generalized to other Linux distributions too.</p>
<p>First, install getmail.  Getmail is a mail retriever, meaning it can log into your e-mail accounts for you and download your e-mail.  The nice thing is that, by default, it doesn&#8217;t do anything to the messages on the server, so you can still access your e-mail the way you normally do.</p>
<p>As root, do</p>
<p><strong>pacman -Sy getmail</strong></p>
<p>If you try running getmail now, e.g.</p>
<p><strong>getmail &ndash;&ndash;version</strong></p>
<p>you might notice an odd error:</p>
<p><code>ImportError: No module named getmailcore</code></p>
<p>The problem is that the getmail pacman package (as of this writing) assumes the version of Python you are using.  In my case, I had installed getmail-4.20.0-2, and the package had assumed python-2.7.  As a result, the getmailcore module was placed in /usr/lib/python2.7/site-packages  In actuality, I had python-2.6 installed, so getmail ended up looking in /usr/lib/python2.6/site-packages and complaining that it couldn&#8217;t find getmailcore. [1]</p>
<p>In order to fix this, first find out the python version that getmail assumed:</p>
<p><strong>pacman -Ql getmail|grep python</strong> (that is a Q followed by a lower case L)</p>
<p>A list of files will be shown, in /usr/lib/python<strong>#</strong>.<strong>#</strong>/site-packages  Take note of the python version.</p>
<p>Next, find out what version of python you have installed</p>
<p><strong>pacman -Q python</strong></p>
<p>Finally, copy the getmail python module to the correct location (substituting in the appropriate python version numbers):</p>
<p><strong>cd /usr/lib/python[installed python version]/site-packages</strong><br />
<strong>cp -a /usr/lib/python[getmail assumed python version]/site-packages/getmail* .</strong></p>
<p>As an example, I had python-2.6 installed, while getmail was assuming python-2.7:</p>
<p><strong>cd /usr/lib/python2.6/site-packages</strong><br />
<strong>cp -a /usr/lib/python2.7/site-packages/getmail* .</strong></p>
<p>Now, getmail should work:</p>
<p><strong>getmail &ndash;&ndash;version</strong></p>
<p>Next, you will need to create the configuration files for getmail.  By default, getmail will search for configuration settings in ~/.getmail/getmailrc  However, if you intend to back up multiple e-mail accounts, you will need a different configuration file for each account.  As a result, I ended up with the following scheme (where [GMAIL ADDRESS] should be replaced with your actual GMail e-mail address in the format &#8220;user@gmail.com&#8221; without the quotes):</p>
<p>Configuration file:  ~/getmail/getmail.d/[GMAIL ADDRESS]<br />
Maildir location:  ~/getmail/mail/[GMAIL ADDRESS]/<br />
Getmail log file:  ~/getmail/log/[GMAIL ADDRESS]<br />
Oldmail directory: ~/getmail/oldmail</p>
<p>Note that the Oldmail directory contains the records of what getmail has already seen.  This way, getmail can download new e-mails only, instead of downloading everything each time.  By default, these records go in ~/.getmail  However, it is helpful to keep them with the rest of our data in order to make backups easier.</p>
<p>For this setup, the configuration file [2] is as follows (substituting in your e-mail and password):</p>
<p><code>[retriever]<br />
type = SimpleIMAPSSLRetriever<br />
server = imap.gmail.com<br />
mailboxes = ("[Gmail]/All Mail",)<br />
username = [GMAIL ADDRESS]<br />
password = [GMAIL PASSWORD]</code></p>
<p><code>[destination]<br />
type = Maildir<br />
path = /home/sam/Data/EMail/getmail/mail/[GMAIL ADDRESS]/</code></p>
<p><code>[options]<br />
verbose = 2<br />
message_log = /home/sam/Data/EMail/getmail/log/[GMAIL ADDRESS]</code></p>
<p><code># retrieve only new messages<br />
read_all = false</code></p>
<p><code># do not alter messages<br />
delivered_to = false<br />
received = false</code></p>
<p>Most of it is pretty self-explanatory.  The <code>read_all</code> option tells getmail to download only messages it hasn&#8217;t already downloaded, and the <code>delivered_to</code> and <code>received</code> options tell getmail not to add any additional routing information to the downloaded messages.</p>
<p>The <code>mailboxes</code> option requires a bit more explanation for GMail.  By specifying &#8220;[Gmail]/All Mail&#8221;, getmail will download all of your GMail messages, regardless of label, including sent messages.  To download messages with specific labels, just enter the label instead of &#8220;[Gmail]/All Mail&#8221;.  Note that the downloaded messages do not retain the label information.</p>
<p>Next, create the rest of the directory structure:</p>
<p><strong>mkdir ~/getmail/log</strong><br />
<strong>mkdir -p ~/getmail/mail/[GMAIL ADDRESS]/{cur,new,tmp}</strong><br />
<strong>mkdir ~/getmail/oldmail</strong></p>
<p>Finally, run getmail:</p>
<p><strong>getmail -q &ndash;&ndash;getmaildir ~/getmail/oldmail &ndash;&ndash;rcfile ~/getmail/getmail.d/[GMAIL ADDRESS]</strong></p>
<p>That&#8217;s all there is to it!  You can run getmail as often as you like.  It will download only the new messages, since it remembers what it has already downloaded.</p>
<p>References:</p>
<p>(1)     <a href="http://ubuntuforums.org/archive/index.php/t-29365.html">http://ubuntuforums.org/archive/index.php/t-29365.html</a><br />
(2)     <a href="https://wiki.archlinux.org/index.php/Backup_Gmail_with_getmail">https://wiki.archlinux.org/index.php/Backup_Gmail_with_getmail</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.projreality.com/archives/149/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Starting the migration to IPv6</title>
		<link>http://www.projreality.com/archives/145</link>
		<comments>http://www.projreality.com/archives/145#comments</comments>
		<pubDate>Sat, 19 Feb 2011 09:38:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.projreality.com/?p=145</guid>
		<description><![CDATA[We&#8217;re starting the migration to IPv6 in this next chapter. The following chapters will step through the various technologies we worked through previously, and upgrade them to also work using IPv6. Guide to Setting up Your Own Internet in VirtualBox]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re starting the <a href="http://www.projreality.com/virtualinternet/ch22.html">migration to IPv6</a> in this next chapter.  The following chapters will step through the various technologies we worked through previously, and upgrade them to also work using IPv6.</p>
<p><a href="http://www.projreality.com/virtualinternet/index.html">Guide to Setting up Your Own Internet in VirtualBox</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.projreality.com/archives/145/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Finishing up E-mail, and setting up NTP</title>
		<link>http://www.projreality.com/archives/139</link>
		<comments>http://www.projreality.com/archives/139#comments</comments>
		<pubDate>Thu, 20 Jan 2011 02:25:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.projreality.com/?p=139</guid>
		<description><![CDATA[Apologies for the long delay. Blame it on the Christmas holiday and my becoming engrossed in Ruby on Rails (which I will hopefully blog more about soon). The final chapter on setting up e-mail, and also a chapter on setting up an NTP server, have been added.]]></description>
			<content:encoded><![CDATA[<p>Apologies for the long delay.  Blame it on the Christmas holiday and my becoming engrossed in Ruby on Rails (which I will hopefully blog more about soon).</p>
<p>The <a href="http://www.projreality.com/virtualinternet/ch20.html">final chapter on setting up e-mail</a>, and also a chapter on <a href="http://www.projreality.com/virtualinternet/ch21.html">setting up an NTP server</a>, have been added.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.projreality.com/archives/139/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Two new chapters for e-mail setup added to the Guide</title>
		<link>http://www.projreality.com/archives/132</link>
		<comments>http://www.projreality.com/archives/132#comments</comments>
		<pubDate>Wed, 22 Dec 2010 06:58:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.projreality.com/?p=132</guid>
		<description><![CDATA[Two more chapters &#8211; setting up IMAP and setting up webmail &#8211; have been added. Next week will be the finale, where we actually send e-mail across our internet. Guide to Setting up Your Own Internet in VirtualBox]]></description>
			<content:encoded><![CDATA[<p>Two more chapters &#8211; <a href="http://www.projreality.com/virtualinternet/ch18.html">setting up IMAP</a> and <a href="http://www.projreality.com/virtualinternet/ch19.html">setting up webmail</a> &#8211; have been added.  Next week will be the finale, where we actually send e-mail across our internet.</p>
<p><a href="http://www.projreality.com/virtualinternet/index.html">Guide to Setting up Your Own Internet in VirtualBox</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.projreality.com/archives/132/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New chapter on SMTP setup added to the Guide</title>
		<link>http://www.projreality.com/archives/103</link>
		<comments>http://www.projreality.com/archives/103#comments</comments>
		<pubDate>Tue, 14 Dec 2010 08:39:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.projreality.com/?p=103</guid>
		<description><![CDATA[The next chapter has been added to the Guide. It covers setting up an SMTP server, and is the first in a four-part series on setting up e-mail on our internet. Guide to Setting up Your Own Internet in VirtualBox Looking ahead, there needed to be several minor additions/changes to earlier chapters. If you are [...]]]></description>
			<content:encoded><![CDATA[<p>The next chapter has been added to the Guide.  It covers <a href="http://www.projreality.com/virtualinternet/ch17.html">setting up an SMTP server</a>, and is the first in a four-part series on setting up e-mail on our internet.</p>
<p><a href="http://www.projreality.com/virtualinternet/index.html">Guide to Setting up Your Own Internet in VirtualBox</a></p>
<p>Looking ahead, there needed to be several minor additions/changes to earlier chapters.  If you are just starting on the Guide at this time, or if you haven&#8217;t yet created the VMs listed below, you don&#8217;t need to worry.  However, if you have done all of the steps so far, or have created any of the VMs listed below, you will need to make the following changes:</p>
<p>gateway.isp3.sam<br />
- The following changes will add an additional interface, eventually connecting to the NTP server<br />
- In the VirtualBox Networking setup, enable Adapter 3, connected to the internal network &#8220;isp3-time&#8221;<br />
- create /etc/hostname.em2 with the following:<br />
<code>inet 172.16.127.1 255.255.255.0 NONE</code><br />
- edit /etc/bgpd.conf &#8211; at the end of the list of announced networks, add<br />
<code>network 172.16.127.0/24</code></p>
<p>firewall.projreality.sam<br />
- The following change will set the default nameserver for the firewall and allow it to access the nameserver<br />
- edit /etc/resolv.conf and add the following:<br />
<code>nameserver 172.16.211.30</code><br />
- edit /etc/pf.conf and add the following before the last <code>block log quick all</code> line:<br />
<code>pass out quick on $DMZ inet proto udp from $DMZ to $dns1 port domain</code></p>
<p>Also, additional steps have the added to the <a href="http://www.projreality.com/virtualinternet/ch16.html">chapter on finishing up DNS</a> to create the DNS resolver for projreality.sam &#8211; dns1.projreality.sam</p>
<p>Finally, the diagrams have been modified to add several additional servers that will be created in later chapters.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.projreality.com/archives/103/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finishing up DNS in the Guide</title>
		<link>http://www.projreality.com/archives/99</link>
		<comments>http://www.projreality.com/archives/99#comments</comments>
		<pubDate>Thu, 09 Dec 2010 03:08:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.projreality.com/?p=99</guid>
		<description><![CDATA[Two more chapters have been added to the Guide &#8211; one for Setting up a recursive resolver, and one just finishing up various odds and ends relating to DNS. Guide to Setting up Your Own Internet in VirtualBox]]></description>
			<content:encoded><![CDATA[<p>Two more chapters have been added to the Guide &#8211; one for <a href="http://www.projreality.com/virtualinternet/ch15.html">Setting up a recursive resolver</a>, and one just <a href="http://www.projreality.com/virtualinternet/ch16.html">finishing up various odds and ends relating to DNS</a>.</p>
<p><a href="http://www.projreality.com/virtualinternet/index.html">Guide to Setting up Your Own Internet in VirtualBox</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.projreality.com/archives/99/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Continuing with DNS in the Guide</title>
		<link>http://www.projreality.com/archives/96</link>
		<comments>http://www.projreality.com/archives/96#comments</comments>
		<pubDate>Tue, 30 Nov 2010 05:11:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.projreality.com/?p=96</guid>
		<description><![CDATA[The next chapter has been added to the Guide. It deals with setting up the TLD nameserver for the .sam TLD and also the root server on our virtual internet. Guide to Setting up Your Own Internet in VirtualBox]]></description>
			<content:encoded><![CDATA[<p>The next chapter has been added to the Guide. It deals with setting up the TLD nameserver for the .sam TLD and also the root server on our virtual internet.</p>
<p><a href="http://www.projreality.com/virtualinternet/index.html">Guide to Setting up Your Own Internet in VirtualBox</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.projreality.com/archives/96/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Two new chapters added to the Guide</title>
		<link>http://www.projreality.com/archives/92</link>
		<comments>http://www.projreality.com/archives/92#comments</comments>
		<pubDate>Tue, 23 Nov 2010 08:56:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.projreality.com/?p=92</guid>
		<description><![CDATA[Sorry about missing a week &#8211; was on travel then got sick. I&#8217;ve added two substantial chapters this time around to make up for the missed chapter. They cover setting up the webserver, and the first part to setting up DNS on our internet. Guide to Setting up Your Own Internet in VirtualBox]]></description>
			<content:encoded><![CDATA[<p>Sorry about missing a week &#8211; was on travel then got sick.  I&#8217;ve added two substantial chapters this time around to make up for the missed chapter.  They cover setting up the webserver, and the first part to setting up DNS on our internet.</p>
<p><a href="http://www.projreality.com/virtualinternet/index.html">Guide to Setting up Your Own Internet in VirtualBox</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.projreality.com/archives/92/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another chapter added to the Guide</title>
		<link>http://www.projreality.com/archives/88</link>
		<comments>http://www.projreality.com/archives/88#comments</comments>
		<pubDate>Wed, 10 Nov 2010 02:04:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.projreality.com/?p=88</guid>
		<description><![CDATA[The next chapter has been added to the Guide. It deals with setting up the firewall rules for the ProjReality perimeter firewall, which covers the internal network and the DMZ network. Guide to Setting up Your Own Internet in VirtualBox]]></description>
			<content:encoded><![CDATA[<p>The next chapter has been added to the Guide.  It deals with setting up the firewall rules for the ProjReality perimeter firewall, which covers the internal network and the DMZ network.</p>
<p><a href="http://www.projreality.com/virtualinternet/index.html">Guide to Setting up Your Own Internet in VirtualBox</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.projreality.com/archives/88/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Two new chapters to the Guide</title>
		<link>http://www.projreality.com/archives/83</link>
		<comments>http://www.projreality.com/archives/83#comments</comments>
		<pubDate>Tue, 02 Nov 2010 21:15:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.projreality.com/?p=83</guid>
		<description><![CDATA[The next two chapters have been added to the Guide. These again deal with setting up routing infrastructure, this time for the ProjReality corporate network. At this point, we are mostly done with OpenBGPD setup, and will move on to other software. Guide to Setting up Your Own Internet in VirtualBox One thing was added [...]]]></description>
			<content:encoded><![CDATA[<p>The next two chapters have been added to the Guide.  These again deal with setting up routing infrastructure, this time for the ProjReality corporate network.  At this point, we are mostly done with OpenBGPD setup, and will move on to other software.</p>
<p><a href="http://www.projreality.com/virtualinternet/">Guide to Setting up Your Own Internet in VirtualBox</a></p>
<p>One thing was added to the Linux-Graphical VM setup &#8211; installing Firefox.  The catch is that it needs to be on the customer VM as well.  For that change, either temporarily set up the VirtualBox networking so the customer VM can go online, and then install Firefox, or just re-clone the Linux-Graphical VM and go through <a href="http://www.projreality.com/virtualinternet/ch08.html">Chapter 8. Setting up the Customer&#8217;s Computer</a> (it&#8217;s a really short chapter anyway).  If you are just starting the Guide, you can disregard this section.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.projreality.com/archives/83/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

