UctanUca

Zimbra Administration Commands

Zimbra Administration CommandsTeknoloji

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 user@domain.com PasswordCreates a new user account.
View User Informationzmprov ga user@domain.comDisplays all configuration details of the specified user.
Change User Passwordzmprov sp user@domain.com NewPasswordResets/changes the user’s password.
Set Mailbox Quotazmprov ma user@domain.com zimbraMailQuota 2GSets the user’s quota to 2 GB (M: megabytes, G: gigabytes).
Delete Userzmprov da user@domain.comDeletes 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 user@domain.comRebuilds the user’s email search index (may take a long time).
Check Database Statuszmdbmgrctl statusChecks the status of the MySQL/MariaDB (Zimbra database) service.
Paylaş
FacebookXWhatsApp
İlgini Çekebilir