How to export address book from Zimbra?

by Arka Majumdar   Last Updated October 10, 2019 16:00 PM

I want to export all users' contacts (Address book) in csv format for migration purpose. Zimbra is runing on ubuntu and I want to do this from cli. How shall I proceed? I have refereed to this link but this is not an option for me.

Kindly let me know if you want any more details.



Answers 2


Not sure if you want to do this on a Zimbra server, but if it is a server you can use zmmailbox with a getRestUrl for almost all things that can be done in the web interface. Become the zimbra user

zmmailbox -z -m [email protected] -t 0 getRestURL "//contacts?fmt=csv"

This is a basic csv export, mainly compatible with Zimbra. You can make the exports more compatible with other applications by replacing the csv with one of the following options:

  • zimbra-csv
  • yahoo-csv
  • thunderbird-csv
  • outlook-2000-csv
  • outlook-2003-csv

To make an outlook 2003 compatible export you the command changes to:

zmmailbox -z -m [email protected] -t 0 getRestURL "//contacts?fmt=outlook-2003-csv"

To make an export from a different adressbook, you can use the name of that adressbook f.e.:

zmmailbox -z -m [email protected] -t 0 getRestURL "//privatecontacts?fmt=outlook-2003-csv"
Micha Kersloot
Micha Kersloot
March 17, 2016 16:41 PM

You can try tool from this site: https://zimbra.org/extend/items/view/zimbra-to-outlook-converter-to-convert-zimbra-to-pst-exchange-and-office-365

It helps you to save your address book from Zimbra to csv format.

Mark Kerry
Mark Kerry
October 10, 2019 15:02 PM

Related Questions


Updated April 25, 2018 09:00 AM

Updated March 30, 2015 19:00 PM

Updated May 16, 2015 21:00 PM