Export Zimbra Mail to EML or Build a PST in Outlook

Zimbra does not create PST files with its native mailbox export. Use Zimbra’s REST export to save mailbox messages as EML inside a ZIP or TGZ archive; create a PST separately by syncing the mailbox to desktop Outlook and exporting an Outlook Data File.

These are different deliverables: EML is an individual message in MIME format, ZIP/TGZ is a container that can hold many EML messages, and PST is an Outlook data file. Choose based on the program that must open the result.

What can Zimbra export directly?

Zimbra’s documented REST mailbox export formats are ZIP, TAR, and TGZ. A mailbox or folder archive contains message files in EML format; the export is not a PST conversion. Zimbra’s older REST reference documents this behavior for ZCS 6, 7, and 8, and the CLI example is from the Zimbra Wiki. Check the command and authentication requirements for your installed Zimbra release before running it, especially on a newer or customized deployment. See the Zimbra REST mailbox export reference and Zimbra REST folder reference.

  • Need portable individual messages? Export a ZIP archive, then extract the .eml files.
  • Need one Outlook archive? Use the Outlook PST route below after the full mailbox has synchronized.
  • Need only one message? Zimbra’s REST item endpoint can return a mail item as MIME/RFC 822, the content format used by EML. It requires the item ID and authenticated access; consult the Zimbra REST item reference for the applicable endpoint and release.

Do not assume that changing the filename from .zip or .tgz to .pst converts the contents. It only changes the name, leaving an archive where Outlook expects a PST data file.

How do you export a whole mailbox as EML?

Run the documented zmmailbox REST export on the Zimbra server as the Zimbra operating-system account. Make the destination directory first and ensure that account can write to it. The example uses ZIP because it is widely supported by desktop archive tools:

zmmailbox -z -m user@example.com -t 0 getRestURL "//?fmt=zip&query=is:anywhere" > /secure/exports/user-mailbox.zip

Replace the address and output path. The -t 0 option avoids the command timeout used in the Wiki example, which is useful for a large export. The query=is:anywhere parameter requests messages across folders, including Spam and Trash; remove it if those folders should be excluded. The official Zimbra zmmailbox command reference shows the same getRestURL export pattern and the timeout option.

A terminal command sends a Zimbra mailbox export to a ZIP file; use a secure destination writable by the Zimbra account.
Terminal example exporting a Zimbra mailbox as a ZIP archive with zmmailbox and the is:anywhere query.

Protect the export directory because the archive contains readable email and attachments. Confirm that the command completed and the output file has a plausible nonzero size before moving it. For a TGZ archive instead, change fmt=zip to fmt=tgz and use a matching .tgz extension. Do not run an import command as part of this process; import options can alter mailbox contents.

How do you get usable .eml files from the archive?

Open the completed ZIP with a trusted archive utility and extract it to a new, access-controlled folder. Zimbra preserves message-folder organization in the archive, so expect nested folders rather than a single flat list. The message files are EML; the archive itself is not one large EML file.

The opened ZIP shows separate .eml message files, illustrating that ZIP is the container and EML is the message format inside it.
A mailbox ZIP archive displays individual EML messages in a file manager.

Open a few extracted messages with an email client that supports EML and check the sender, date, subject, body, and attachments. For a quick integrity check, compare the number of extracted message files and folder names with what you expected from the mailbox. Some Zimbra export options can include metadata alongside message content; if you need that metadata, verify the meta option and its behavior in the documentation for your version rather than assuming EML alone preserves Zimbra-specific properties.

How do you create a PST for Outlook?

Use classic desktop Outlook with the Zimbra account already configured, usually through IMAP or an organization-supported connector. Wait for synchronization to finish and confirm the folders and older messages you need are present in Outlook before exporting. The PST can only include content Outlook has available and that you select; a standard IMAP connection should not be assumed to expose Zimbra contacts, calendars, shared folders, or other groupware data.

  1. In Outlook, select File, then Open & Export, and choose Import/Export.
  2. Select Export to a file, choose Outlook Data File (.pst), and continue.
  3. Select the Zimbra account or the specific folder to export. Turn on Include subfolders if you need the nested mail folders.
  4. Choose a local, secure destination and a new filename ending in .pst, then finish the export. Add a password if the file will be stored or transferred in a place where unauthorized access is a concern.
Classic Outlook’s Import/Export wizard begins the separate PST creation process after the Zimbra mailbox is available in Outlook.
Classic Outlook’s Export to a File option in the Import and Export wizard.
The Outlook export screen shows a selected account, Include subfolders checked, and a local .pst destination.
Outlook export settings with Include subfolders enabled and a local PST path selected.

Microsoft documents these classic Outlook steps and notes that export creates a copy, includes email attachments, and does not include folder views, permissions, rules, or blocked-sender lists. Its current instructions also show a separate export path in new Outlook; available screens depend on the Outlook version. For a Zimbra IMAP profile, use classic Outlook’s account and folder selection carefully and verify what is actually present in the resulting file. Follow the version-specific Microsoft’s Outlook PST export instructions.

How can you verify the export before deleting anything?

Keep the source mailbox intact until you have tested the output. For EML, extract the archive and open sample messages from different folders, including one with an attachment. For PST, open the file in Outlook as a separate data file and inspect folders, message dates, and attachments; compare counts or known samples with the Zimbra mailbox. Confirm that the file size is stable and that it can be copied to your approved backup location.

If messages are missing from PST, check Outlook synchronization and the selected account/folder before repeating the export. If the ZIP contains fewer folders than expected, review the query and export options for your installed Zimbra version. These checks distinguish an incomplete sync or selection from a format problem.

Leave a Comment

How to