Şimdi yükleniyor

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.

ProcessCommandDescription
View All Service Statuszmcontrol statusShows which Zimbra services are running or stopped.
Start All Serviceszmcontrol startStarts all stopped Zimbra services.
Stop All Serviceszmcontrol stopStops all Zimbra services.
Restart All Serviceszmcontrol restartStops and restarts all Zimbra services.
Restart a Single Servicezmmailboxdctl restartFor 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

ProcessCommandDescription
Create New Userzmprov ca [email protected] PasswordCreates a new user account.
View User Informationzmprov ga [email protected]Displays all configuration details of the specified user.
Change User Passwordzmprov sp [email protected] NewPasswordResets/changes the user’s password.
Set Mailbox Quotazmprov ma [email protected] zimbraMailQuota 2GSets the user’s quota to 2 GB (M: megabytes, G: gigabytes).
Delete Userzmprov 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.

ProcessCommandDescription
Monitor Main Log Filetail -f /opt/zimbra/log/mailbox.logMonitors mailbox activity and errors in real time.
View Mail Queuepostqueue -pLists emails waiting in the Postfix queue that could not be delivered.
Delete All Mails in Queuepostsuper -d ALLUse with caution! Deletes all mails in the queue.

4. Indexing and Database Operations

Used especially when search issues occur or the mailbox is corrupted.

ProcessCommandDescription
Rebuild Mailbox Indexzmprov reindexMailbox [email protected]Rebuilds the user’s email search index (may take a long time).
Check Database Statuszmdbmgrctl statusChecks the status of the MySQL/MariaDB (Zimbra database) service.