Migrating Mail from Zimbra Desktop to IMAP Server

      by Wyatt Walter

The Zimbra Desktop mail client is a great mail client that gives the look and feel of the Zimbra Collabroation Suite, but the migration path out of the client has been less than easy. I wrote up a quick tutorial on steps that I took to help someone pull their email they had downloaded via POP into ZD and had gotten stuck there.

To do the export of the data, I used the built-in export utility inside of Zimbra Desktop. For the migration into an IMAP account (or a Zimbra Collaboration Server account) I used Thunderbird with the MboxImport enhanced add-on. I’m assuming you have already setup the account in Zimbra Desktop and pulled down the emails you want to export. I’m using Mac OS X to do the export, though it should work assuming you can get a file to extract the gzipped tarball from Zimbra Desktop.

First, I started with exporting from Zimbra Desktop. I went to the Account Setup page using the bottom on the top-right.

In the account setup screen, click on the account you want to migrate.

On the bottom-left, click on the Manage Data button.

Click on Export.

Type in the name you want to give the file, then click on Export.

Then you’ll be prompted to save the file. Save the file wherever you would like. Mine saved to my Downloads directory.

For some reason, it didn’t actually name the file the way it was supposed to when I downloaded it it, so I renamed the file to example.tar.gz and double-clicked it to extract. If you’re using Windows, 7-zip can extract the file.

When you extract the file, you can open the folder and find directories for each folder of the mail you had. Inside those folders, there will be .eml files for each email. If you have more than 500 messages in a folder, the export breaks them up into multiple folders and append a number to the end of the name.

Now we’re ready to import into Thunderbird. It’s useful at this point if you account is setup already, but not necessary. First, we’ll have to create a temporary local folder to import into. Right-click on the Local Folders in Thunderbird and click on New Folder. You can name it whatever you like, it will be cleared out eventually anyway.

Then, select the new folder we created. Then, in the Thunderbird menu, go to Tools -> Import/Export in mbox/eml format -> Import all eml files from a directory -> also from its sottodirectories.

When prompted, navigate to your extract Zimbra Desktop export directory and click Choose.

The utility will import your messages into the temporary directory.

Depending upon the server that you are using, you may have to be careful with drag-and-dropping your messages into your IMAP account. You can do it, but beware: it may mess up timestamps on messages. For Zimbra we have a little trick we can use. When setting up the account, simply append “/tb” to the end of your username. For my example, my email address was example@whatan00b.com, so my username that I used to authenticate was “example@whatan00b.com/tb”. Once you know how about the consequences of drag-and-drop inside your mail client, just drag all of your messages into their appropriate folders. Here’s my messages now in the Zimbra web client:

Related Posts Related Websites

Tags: , , ,
Filed under How-Tos / Tips : Comments (11) : Nov 3rd, 2008

11 Responses to “Migrating Mail from Zimbra Desktop to IMAP Server”

  1. New Zimbra Desktop Build? - Page 2 - Zimbra - Forums Says:

    [...] bit of time to run through a quick tutorial and posted on my blog in case anyone is interested… Migrating Mail from Zimbra Desktop to IMAP Server | What a n00b! __________________ Zimbra Hosting VAR What a [...]

  2. Migrating from Zimbra Desktop to IMAP server » DataSync Business News Says:

    [...] Walter has a great tutorial on the process for migrating email from Zimbra Desktop to any IMAP server:  The Zimbra Desktop mail client is a great mail client that gives the look and feel of the Zimbra [...]

  3. Ana Says:

    Hi thanks for the tutorial. I have a question that might be silly, but I haven’t figured it out yet: how can import mail from thunderbird to zimbra desktop? I’ve already installed the MboxImport enhanced. suggestions?

    thanks

  4. Wyatt Walter Says:

    Ana,

    The only easy way I can think of is to push the mail up to a Gmail account or some other free IMAP service and then pull it back down to Zimbra Desktop… Not the most elegant but it wouldn’t take terribly long.

  5. Ana Domb Says:

    Thanks, I just did that. True, not elegant, but it worked.

  6. Olga Maya Says:

    Can you give more information on this?

  7. Wyatt Walter Says:

    You want more information on pushing the email into Gmail or more information in general? For Gmail, you can setup your Gmail account in Thunderbird in the very last paragraph instead of in the Zimbra server that I used as an example. It really doesn’t matter what type of IMAP server, as long as it’s IMAP. To setup Thunderbird with Gmail, you have to enable it in your Gmail account settings and then the instructions for setting up the server in Thunderbird can be found here: http://mail.google.com/support/bin/answer.py?answer=77662

  8. Henry James Says:

    Thank you for your help!

  9. Air Says:

    I’ve never given this a try, but I think it’s about time I do.

  10. CAMP Says:

    Are there any Email hosting that you can recommend me?

  11. Wyatt Walter Says:

    Well.. I just so happen to work for a Zimbra provider. :)

Leave a Reply