ZCS Administrator's Guide Network Edition 6.0.8
Table of Contents Previous Next Index


Appendix A Command-Line Utilities : Zimbra CLI Commands : zmmailboxmove (Move Mailbox)

zmmailboxmove (Move Mailbox)
This command is used to move a mailbox from one Zimbra server to another. Mailboxes can be moved between Zimbra servers that share the same LDAP server. All the files are copied to the new server and LDAP is updated. After the mailbox is moved to a new server, a copy still remains on the older server, but the status of old mailbox is closed. Users cannot log on and mail is not delivered. You should check to see that all the mailbox contents were moved successfully before purging the old mailbox.
Syntax
zmmailboxmove {-a <arg>} {-t <arg>|-po} [options]
Description
 
Short Name
<arg> Email address of account to move
Purge old mailbox on previous server. After a mailbox has been successfully moved to a new server, perform purgeOld to remove the mailbox and its contents from the previous server.
<arg> Mail server hostname. The default is the localhost. Server where the --account mailbox is located.
<arg> Server where mailbox is moved to Use -t option to move a mailbox from the current server to the new server specified by the option. .
Use auth token string (has to be in JSON format) from command line
Use auth token string (has to be in JSON format from command line
Example
In these examples, two separate command lines are used to move the mailbox and to purge the old mailbox. This is because -t and -po are mutually exclusive.
To move a mailbox from the default server to the target server:
zmmailboxmove -a user1@domain.com -t server2.domain.com
To move a mailbox from the default server to the target server, while overwriting any existing mailbox for the account on the target server:
zmmailboxmove -a user1@domain.com -t server2.domain.com -ow
To purge an old mailbox from the default server, after checking that the contents of the mailbox were successfully moved to the target server:
zmmailboxmove -a user1@domain.com -po

Appendix A Command-Line Utilities : Zimbra CLI Commands : zmmailboxmove (Move Mailbox)

Table of Contents Previous Next Index
ZCS Administrator's Guide Network Edition 6.0.8
Copyright © 2010 Zimbra Inc.