<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3606749373125273321</id><updated>2012-02-16T16:22:53.834+01:00</updated><category term='Mail'/><category term='email'/><category term='imap'/><category term='ec2'/><category term='gmail'/><title type='text'>codesink</title><subtitle type='html'>shareworthy notes about computers</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.codesink.org/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3606749373125273321/posts/default'/><link rel='alternate' type='text/html' href='http://blog.codesink.org/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Stefano Barbato</name><uri>http://www.blogger.com/profile/13389434812448268256</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3606749373125273321.post-64150576346571185</id><published>2008-09-21T15:07:00.008+02:00</published><updated>2008-09-23T00:15:08.596+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='email'/><category scheme='http://www.blogger.com/atom/ns#' term='gmail'/><category scheme='http://www.blogger.com/atom/ns#' term='imap'/><category scheme='http://www.blogger.com/atom/ns#' term='ec2'/><category scheme='http://www.blogger.com/atom/ns#' term='Mail'/><title type='text'>Move all your emails to Gmail</title><content type='html'>I've a lot of emails, about 30 thousands, and I like to have them all available in the same search-able place.&lt;br /&gt;&lt;br /&gt;I also have a few email addresses to take care of (nothing special here). There are a few on @codesink.org and a couple on @inquare.com. Those mailboxes are hosted on cheap virtual server together with my personal website (&lt;a title="www.codesink.org" href="http://www.codesink.org/" target="_self"&gt;www.codesink.org&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;I use Mail (on Mac OS X [Leopard]) to handle all my emails and it does a pretty good job; it locks sometimes but it never crashed so badly to corrupt my data.&lt;br /&gt;&lt;br /&gt;What I wanted was a safe place for all my ancient, old, recent and current emails :), webmail access and a powerful desktop client.&lt;br /&gt;&lt;br /&gt;Google with your favourite IMAP client is all you need.&lt;br /&gt;&lt;br /&gt;So the plan was:&lt;br /&gt;&lt;blockquote&gt;move my domains to Google Apps (www.google.com/a/) and let the giant bring my email baggage.&lt;/blockquote&gt;&lt;br /&gt;This is how I did it:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;create a Free account on Google Apps for your domain&lt;/li&gt;&lt;br /&gt;&lt;li&gt;be sure that emails for you get delivered to Google servers changing your DNS records&lt;/li&gt;&lt;br /&gt;&lt;li&gt;copy all emails to the new Gmail account (this is where things get tricky)&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;h3&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3&gt;Google Apps account&lt;/h3&gt;&lt;br /&gt;Go to &lt;a title="Google Apps" href="http://www.google.com/a/" target="_self"&gt;www.google.com/a/&lt;/a&gt; page and sign-in for a free account. Insert your domain name when requested and create one mailbox for each mailbox you have in your current setup.&lt;br /&gt;&lt;br /&gt;For example my personal email is stefano@codesink.org so, after creating an account to handle the domain "codesink.org" I created a user named "stefano".&lt;br /&gt;&lt;br /&gt;Now log into your account and enable IMAP support, we will need that later.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;DNS setup&lt;/h3&gt;&lt;br /&gt;The world must be notified that your mail server has changed otherwise they will keep sending emails to the old mail server.&lt;br /&gt;&lt;br /&gt;To do that you've to modify the MX records of the DNS entry of your domain.&lt;br /&gt;&lt;br /&gt;Google has many tutorials that explain how to do that based on your provider.&lt;br /&gt;&lt;br /&gt;Unfortunately my hosting company did not provide any powerful DNS management interface so I moved to something better: &lt;a title="EveryDNS" href="http://www.everydns.com/" target="_self"&gt;EveryDNS&lt;/a&gt;. They have a powerful interface that lets you manage your DNS records via web (and it's free).&lt;br /&gt;&lt;br /&gt;This is current codesink.org DNS setup:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_sBdW6G09YnY/SNZIMcucEmI/AAAAAAAAAAM/fvZJ0_PTLeU/s1600-h/sshot-everydns.png"&gt;&lt;img style="cursor: pointer;" src="http://2.bp.blogspot.com/_sBdW6G09YnY/SNZIMcucEmI/AAAAAAAAAAM/fvZJ0_PTLeU/s400/sshot-everydns.png" alt="" id="BLOGGER_PHOTO_ID_5248461794453492322" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The important bits here are those MX records that point to Gmail servers. The list of servers comes from Google docs.&lt;br /&gt;&lt;h3&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3&gt;Mail Migration&lt;/h3&gt;&lt;br /&gt;Now the tough part.&lt;br /&gt;&lt;br /&gt;If you chose the Google Premier Edition (not free) AND you use Windows Outlook you may try the &lt;a title="Google Email Uploader" href="http://mail.google.com/mail/help/email_uploader.html" target="_self"&gt;Google Email Uploader.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I chose the Free edition of Google Apps (&lt;strong&gt;the upload utility doesn't work for free accounts&lt;/strong&gt;) and I'm on a Mac so I had to find another approach.&lt;br /&gt;&lt;br /&gt;The net is full of tutorial on how to import messages into Gmail accounts using IMAP. In short you've to let your email client connect to your Gmail account using the IMAP protocol and then drag all messages into it.&lt;br /&gt;&lt;br /&gt;That didn't work for me because transferring large folders on slow ADSL (like mine) takes forever and Google kicks you our after a while (less then an hour for me).&lt;br /&gt;&lt;br /&gt;If you ever read this message you know what I mean:&lt;br /&gt;&lt;pre style="padding-left: 30px;"&gt;Error: Unable to append message to folder (Failure)&lt;/pre&gt;You can start the upload over again but you don't know which messages have been already uploaded and which not so what you should do is split big folders in small chunks and upload one chunk at the time.&lt;br /&gt;&lt;br /&gt;If you have a large number of emails splitting your folders in tens of smaller folders and upload them one by one gets you frustrated pretty soon.&lt;br /&gt;&lt;br /&gt;So here's the trick I used:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;export all 30,000 emails and save the MBOX files in a single directory&lt;/li&gt;&lt;br /&gt;&lt;li&gt;create a big compressed archive with all emails&lt;/li&gt;&lt;br /&gt;&lt;li&gt;upload the compressed archive on a Linux server (with fast connection)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;sync the archive on Linux with the IMAP server on Gmail using mailsync&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;h4&gt;Export&lt;/h4&gt;First of all we need to export all email to MBOX files. With Mac OS X's Mail this is pretty easy, you've to CTRL-click on each mailbox and select "Archive Mailbox..." from the popup menu.&lt;br /&gt;&lt;br /&gt;Save each mailbox in a temporary folder; let's call it MAILBOXES/.&lt;br /&gt;&lt;h4&gt;Compress&lt;/h4&gt;Now compress the whole directory:&lt;br /&gt;&lt;pre style="padding-left: 30px;"&gt;$ tar jvcf mailboxes.tar.tbz MAILBOXES/&lt;/pre&gt;&lt;h4&gt;Upload&lt;/h4&gt;Upload the archive to the Linux server and extract all *.mbox files in the 'mail' directory inside your home dir.&lt;br /&gt;&lt;br /&gt;For example I used the 'scp' command to move the archive to my home dir (/home/tat) and then I extracted all mailboxes into /home/tat/mail/.&lt;br /&gt;&lt;h4&gt;Sync with Gmail&lt;/h4&gt;Ok now you should have a remote Linux server that holds all your emails and an empty Gmail account.&lt;br /&gt;&lt;br /&gt;With the next few steps we will move all messages to Gmail.&lt;br /&gt;&lt;br /&gt;Login into your Linux server and install &lt;a title="mailsync" href="http://mailsync.sourceforge.net/" target="_self"&gt;mailsync&lt;/a&gt;:&lt;br /&gt;&lt;pre style="padding-left: 30px;"&gt;apt-get install mailsync&lt;/pre&gt;Then create a file named '.mailsync' in your home directory (change &lt;em&gt;your@email.com&lt;/em&gt; and the &lt;em&gt;password&lt;/em&gt;):&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;store gmail {&lt;br /&gt;server  {imap.gmail.com/user=your@email.com/ssl}&lt;br /&gt;ref     {imap.gmail.com}&lt;br /&gt;pat     %&lt;br /&gt;passwd  012345&lt;br /&gt;}&lt;br /&gt;store local-mbox {&lt;br /&gt;pat     mail/%&lt;br /&gt;prefix  mail/&lt;br /&gt;}&lt;br /&gt;channel default local-mbox gmail {&lt;br /&gt;msinfo  mail/synchronization-info&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;Start syncing!&lt;br /&gt;&lt;pre style="padding-left: 30px;"&gt;$ mailsync -t md5 -n default&lt;/pre&gt;&lt;br /&gt;That may take a few hours.&lt;br /&gt;&lt;br /&gt;If it locks and Gmail kicks you out you can just restart it after a while, mailsync is smart enough to understand which messages still need to be uploaded and which messages are already in place.&lt;br /&gt;&lt;h2&gt;&lt;br /&gt;&lt;/h2&gt;&lt;h2&gt;Related links&lt;/h2&gt;&lt;br /&gt;&lt;a title="my site" href="http://codesink.org/" target="_self"&gt;codesink.org&lt;/a&gt;: my site&lt;br /&gt;&lt;br /&gt;&lt;a title="EveryDNS" href="http://www.everydns.com/" target="_self"&gt;EveryDNS&lt;/a&gt;: free managed DNS services&lt;br /&gt;&lt;br /&gt;&lt;a title="mailsync home page" href="http://mailsync.sourceforge.net/" target="_self"&gt;mailsync&lt;/a&gt;: utility that syncs multiple email accounts&lt;br /&gt;&lt;br /&gt;&lt;a title="Amazon AWS" href="http://www.amazon.com/AWS-home-page-Money/b?ie=UTF8&amp;amp;node=3435361" target="_self"&gt;Amazon AWS&lt;/a&gt;: info about Amazon cloud computing and services&lt;br /&gt;&lt;br /&gt;&lt;a title="Ubuntu linux home page" href="http://www.ubuntu.com/" target="_self"&gt;Ubuntu&lt;/a&gt;: Linux distro used&lt;br /&gt;&lt;br /&gt;&lt;a title="Google Apps" href="http://www.google.com/a/" target="_self"&gt;Google Apps&lt;/a&gt;: can handle emails for your own domains&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3606749373125273321-64150576346571185?l=blog.codesink.org' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.codesink.org/feeds/64150576346571185/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3606749373125273321&amp;postID=64150576346571185' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3606749373125273321/posts/default/64150576346571185'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3606749373125273321/posts/default/64150576346571185'/><link rel='alternate' type='text/html' href='http://blog.codesink.org/2008/09/move-all-your-emails-to-gmail.html' title='Move all your emails to Gmail'/><author><name>Stefano Barbato</name><uri>http://www.blogger.com/profile/13389434812448268256</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_sBdW6G09YnY/SNZIMcucEmI/AAAAAAAAAAM/fvZJ0_PTLeU/s72-c/sshot-everydns.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3606749373125273321.post-1615367314163580830</id><published>2008-09-21T15:04:00.001+02:00</published><updated>2008-09-21T15:07:18.571+02:00</updated><title type='text'>Bootstrap</title><content type='html'>First post. Done. Next.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3606749373125273321-1615367314163580830?l=blog.codesink.org' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.codesink.org/feeds/1615367314163580830/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3606749373125273321&amp;postID=1615367314163580830' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3606749373125273321/posts/default/1615367314163580830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3606749373125273321/posts/default/1615367314163580830'/><link rel='alternate' type='text/html' href='http://blog.codesink.org/2008/09/bootstrap.html' title='Bootstrap'/><author><name>Stefano Barbato</name><uri>http://www.blogger.com/profile/13389434812448268256</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
