Zimbra Administration Commands
These commands are vital for the server’s overall status, service management, and user/mailbox operations.
1. Service Management (zmcontrol)
Used to check, start, and stop Zimbra services.
| Process | Command | Description |
| View All Service Status | zmcontrol status | Shows which Zimbra services are running or stopped. |
| Start All Services | zmcontrol start | Starts all stopped Zimbra services. |
| Stop All Services | zmcontrol stop | Stops all Zimbra services. |
| Restart All Services | zmcontrol restart | Stops and restarts all Zimbra services. |
| Restart a Single Service | zmmailboxdctl restart | For example, restarts only the Mailbox service. For other services, check the zmcontrol status output. |
2. User and Account Management (zmprov)
The zmprov (Zimbra Provisioning) command is used for user, domain, and configuration operations.
Account Operations
| Process | Command | Description |
| Create New User | zmprov ca [email protected] Password | Creates a new user account. |
| View User Information | zmprov ga [email protected] | Displays all configuration details of the specified user. |
| Change User Password | zmprov sp [email protected] NewPassword | Resets/changes the user’s password. |
| Set Mailbox Quota | zmprov ma [email protected] zimbraMailQuota 2G | Sets the user’s quota to 2 GB (M: megabytes, G: gigabytes). |
| Delete User | zmprov da [email protected] | Deletes the user account from the server. |
Domain Operations
List All Domains | zmprov gaa | Lists all domains on the server.
Add New Domain | zmprov cd domain2.com | Creates a new email domain.
3. Log and Queue Monitoring
Checking logs and the mail queue is important during troubleshooting.
| Process | Command | Description |
| Monitor Main Log File | tail -f /opt/zimbra/log/mailbox.log | Monitors mailbox activity and errors in real time. |
| View Mail Queue | postqueue -p | Lists emails waiting in the Postfix queue that could not be delivered. |
| Delete All Mails in Queue | postsuper -d ALL | Use with caution! Deletes all mails in the queue. |
4. Indexing and Database Operations
Used especially when search issues occur or the mailbox is corrupted.
| Process | Command | Description |
| Rebuild Mailbox Index | zmprov reindexMailbox [email protected] | Rebuilds the user’s email search index (may take a long time). |
| Check Database Status | zmdbmgrctl status | Checks the status of the MySQL/MariaDB (Zimbra database) service. |


