Mailbox Move (Open Source Edition)

As an example, we have a two server setup & One should be able to move from to as below. In the following steps, all commands are executed on

1) Export with zmmailbox:

zmmailbox -z -m getRestURL "//?fmt=tgz&query=is:anywhere" >/opt/zimbra/backup/

2) Change account setting as below:

zmprov -l ma zimbraMailHost

zmprov -l ma zimbraMailTransport

3) Import to with zmmailbox:

zmmailbox -u -a -p yourpasswd -m postRestURL "//?fmt=tgz&resolve=reset" /opt/zimbra/backup/

4) Delete MySQL records, also delete /opt/zimbra/store/0/$mailbox_id, /opt/zimbra/index/0/$mailbox_id. $mailbox_id can be found in MySQL table zimbra.mailbox

Please note after this move share references to folders won't work, which means will have to share his folders to others again.

I haven't written a script for step 4 yet. I'll post a script after I get it work for me.

Jump to: navigation, search