Migrating Outlook PST folders to Gmail

I’ve got about 20GB of email, going back to 2000 (I’m of the belief that you should save everything, with storage getting more and more free every year).  Unfortunately I’ve been using Outlook the whole time, so I’m saddled with this email in the form of PST files that are easily corrupted.  Backing them up to a hard drive isn’t enough.  It’s time to finally move it to the cloud.

I’d need to up my storage to 25GB, for $2.49/mo as per here.  But that’s a bargain.

With volume like this I googled around but there weren’t many options that satisfied my requirements:

  1. The email is in PST files (versions from Outlook 2003+)  for email accounts that may or may not still be active.  In other words, there’s no POP3 server for the Gmail Import process to connect to.
  2. Folder structure and email timestamps must be maintained.

Doesn’t seem like much to ask, right?

Wrong.  The closest path was from this 2007 post.  Eventually I did something similar, with a few modifications.  Here are the updated steps to follow:

  1. Mercury Mail is still active, as a 32-bit project, but asked a lot of questions during setup that I wasn’t sure of the answers for.  So I switched to hMailServer instead.
  2. When you install it, accept all the defaults.
  3. After you launch it:
    1. Create a domain named 127.0.0.1 (it didn’t care for “localhost”)
    2. Under Settings – Protocols – SMTP – Delivery of email, set “Local host name” to 127.0.0.1
    3. Domains – 127.0.0.1 – Accounts, created account <username>/<some password>
    4. Settings – Advanced TCP/IP Ports, set IP address for IMAP to 127.0.0.1
    5. Settings – Advanced – Auto-ban, disable this for the purposes of debugging
    6. Logging – you can enable the Debug log if you want
  4. You’ll likely need to open port 143 (for IMAP) on your firewall. I was running Norton antivirus so I temporarily opened port 143 for local and remote connections.  Naturally you’ll want to revert this back as soon as you’re done.
  5. Verify the server is listening on 127.0.0.1:143 via arp -a -p TCP
  6. Launch Thunderbird and create an account for username@127.0.0.1.  After it probes the server and connects, under Manual Settings change the username to “username@127.0.0.1”.  You’ll also get warned that the connection is not secure, say OK.
  7. Create a second account in Thunderbird for your Gmail account if you haven’t already.
  8. Wait for both accounts to sync all the mail over IMAP.
  9. Now you’re able to simply drag and drop folders from your local account to Gmail.

 

Update: read Part 2 of the saga.

1 comment

Leave a comment

Your email address will not be published. Required fields are marked *