Revision as of 21:03, 16 July 2010 by Gayle (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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