Zimbra Collaboration Suite 7.0
Zimbra Collaboration Suite 7.0
Administrator's Guide
Open Source Edition

Appendix A Command-Line Utilities > zmmailbox

The zmmailbox tool is used for mailbox management. The command can help administrators provision new mailboxes along with accounts, debug issues with a mailbox, and help with migrations.
You can invoke the zmmailbox command from within the zmprov command. You enter selectMailbox within zmprov to access the zmmailbox command connected to that specified mailbox. You can then enter zmmailbox commands until you type exit. Exit returns you to zmprov. This is useful when you want to create accounts and also pre-create some folders, tags, or saved searches at the same time.
zmmailbox [args] [cmd] [cmd-args ...]
Short Name
http[s]://{host}[:{port}] server hostname and optional port. Must use admin port with -z/-a
use zimbra admin name/password from localconfig for admin/password
--authtoken (authtoken)
use authtoken string (has to be in JSON format) from command line
--authtoken (authtoken file)
use authtoken string (has be in JSON format) from command line
(proto|req-proto/response-proto) specify request/response protocol [soap1, soap12, json]
Specific CLI tools are available for the different components of a mailbox. Usage is described in the CLI help for the following.
When you create an account, you may want to pre-create some tags and folders. You can invoke zmmailbox inside of zmprov by using “selectMailbox(sm)”