Important commands you’ll need for Zimbra
Before I go on with the tuning tips for the Vserver I want to give you an overview of the most important command line parameters and log files. For the log files I’ve found a great resource in the Zimbra Wiki. During installation and configuration I’ve needed the zimbra.log which can be found at /var/log/zimbra.log. In this file you’ll find information for MTA, the system status and 3rd party software as Postfix, Amavisd and more. Also interesting is the Tomcat web server log which helped me finding installation errors with the web interface. The information is written in two files: /opt/zimbra/log/mailbox.log and /opt/zimbra/tomcat/logs/catalina.out.
The first command I needed on the server was zmcontrol. With zmcontrol which is located in /opt/zimbra/bin/zmcontrol, you can start and stop services and also get an status.
To figure out if all services are running please type:
zmcontrol status
That will give you the following output:
root@zim:~# /opt/zimbra/bin/zmcontrol status
Run as the zimbra user!
Right, you can’t run Zimbra commands as the root user! Ok!
su – zimbra
Then try the command again.
zimbra@zim:~$ zmcontrol status
Host zim.*******.de
antispam Running
antivirus Running
ldap Running
mailbox Running
mta Running
stats Stopped
zimbra@zim:~$
As you can see the services are all up, just the statistics service is down at the moment. Useful information when you are troubleshooting the system. You can start the services with the same command, just using the parameter start, or stop for stopping.
Now please find some other useful tools! Just try them:
zmbackup – Performs full backups and incremental backups for a designated mail host.
zmclamdctl – Start, stop, or find the status of Clam AV.
zmlocalconfig – Used to set or get the local configuration of a Zimbra server. (Important for tuning!)
zmloggerctl – Start, stop, reload, or find the status of the Zimbra logger service
You can find all CLI parameters in the Zimbra documentation.




