Zimbra CLI Commands The table below lists the CLI commands in /opt/zimbra/bin. CLI Description antispam-mysqladmin Send admin commands to anti=spam MySQL server antispam-mysql Enters interactive command-line MySQL session with the mailbox mysql antispam-mysql.server Start, stop the SQL instance for the mailbox package ldap Start, stop, or find the status of Zimbra LDAP ldapsearch Perform a search on an LDAP server logmysqladmin Send myslqadmin commands to the logger mysql mailboxd Start, stop, find the status of the mailboxd server mysql Enters interactive command-line MySQL session with the mailbox mysql mysql.server Start, stop the SQL instance for the mailbox package mysqladmin Send admin commands to MySQL postconf Postfix command to view or modify the postfix configuration postfix Start, stop, reload, flush, check, upgrade-configuration of postfix qshape Examine postfix queue in relation to time and sender/recipient domain zmaccts Lists the accounts and gives the status of accounts on the domain zmamavisdctl Start, stop, restart, or find the status of the Amavis-D New zmantispamctl Start, stop, reload, status for anti-spam service zmantivirusctl Start, stop, reload, status for the anti-virus service zmantispamdbpasswd Changes anti-spam MySQL database password zmapachectl Start, stop, reload, or check status of Apache service (for spell check) zmauditswatchctl Start, stop, restart, reload, status of the auditswatch zmcalchk Check consistency of appointments and attendees in the Zimbra calendar zmcbpolicydctl Start, stop, and restart the cluebringer policyd service if enabled zmconfigdctl Start, stop, kill, restart status of the MTA configuration daemon. zmcertmgr Manage self-signed and commercial certificates zmclamdctl Start, stop, or find the status of Clam AV zmcleaniplanetics Clean iPlanet ICS calendar files zmcontrol (Start/Stop/Restart Service) Start, stop, restart, status of the Zimbra servers. Also can use to find the Zimbra version installed zmconvertctl Start, stop, the conversion server or find the status of the converted attachments conversion/indexing zmdevicesstats Number of unique ActiveSync device IDs per server zmgdcutil (get devices count) gives the total devices system wide without the need of specifying individual servers. zmdumpenv General information about the server environment is displayed zmgsautil Global Address Book (GAL) synchronization command line utility. Create, delete the GAL sync account and initiate manual syncs. zmhostname Find the hostname of the Zimbra server zmitemdatafile Extracts and packs tgz files that ZCS uses for REST import/export zmjava Execute Java with Zimbra-specific environment settings zmgavaext Execute Java and Zimbra-specific environment settings including extension based jars. zmldappasswd Changes the LDAP password zmlmtpinject Testing tool zmlocalconfig Used to set or get the local configuration of a Zimbra server zmloggerctl Start, stop, reload, or find the status of the Zimbra logger service zmloggerhostmap Used to manually map a DNS hostname to a zmhostname. zmlogswatchctl Start, stop, status of the swatch that is monitoring logging zmmailbox Performs mailbox management tasks zmmailboxdctl Start, stop, reload, or find the status of the mailbox components (mailboxd, MySQL, convert) zmmemcachedctl Start, stop, and restart zmmetadump Support tool that dumps an item’s metadata in a human-readable form zmmilterctl Start, stop, and restart the zimbra milter server if enabled zmmtaconfigdctl Beginning in ZCS 7.0, this command is not used. Use zmconfigdctl. zmmtactl Start, stop, or find the status of the MTA zmmypasswd Change MySQL passwords zmmysqlstatus Status of mailbox SQL instance zmnginxconf Command line utility to output the reverse proxy configuration zmnginxctl Start, stop, and restart the zimbra reverse proxy zmproxyctl Start, stop, or find the status of the perdition IMAP proxy zmprov (Provisioning) Performs all provisioning tasks in Zimbra LDAP, including creating accounts, domains, distribution lists and aliases zmproxyconfgen Generates configuration for the nginx proxy zmproxyctl Start, stop, restart, and find the status of the IMAP proxy service zmproxypurge Purges POP/IMAP routing information from one or more memcached servers zmpurgeoldmbox Purges POP/IMAP routing information from one or more memached servers zmpython Ability to write Python scripts that access Zimbra Java libraries. It sets the ZCS class path and starts the Jython interpreter. zmsaslauthdctl Start, stop, or find the status of saslauthd (authentication) zmshutil Used for other zm scripts, do not use zmskindeploy Deploy skins for accounts from the command line zmsoap Print mail, account, and admin information in the SOAP format zmspellctl Start, stop, or find the status of the spell check server zmsshkeygen Generate Zimbra’s SSH encryption keys zmstat-chart Generate charts from zmstat data collected in a directory zmstat-chart-config Outputs an XML configuration that describes the current state of the data gathered from zmstat-chart to generate charts on the administration console. zmstatctl Start, stop, check status, or rotate logs of zmstat data collectors zmstorectl Start, stop, or find the status of Zimbra store services zmswatchctl Start, stop, or find the status of the Swatch process, which is used in monitoring zmsyncreverseproxy Decodes the sync request/responses and logs them when verbose mode is turned on. zmthrdump Initiate a thread dump and save the data to a file with a timestamp zmtlsctl Set the Web server mode to the communication protocol options: HTTP, HTTPS or mixed zmtrainsa Used to train the anti-spam filter to recognize what is spam or ham zmtzupdate Provides mechanism to process timezone changes from the command line zmupdateauthkeys Used to fetch the ssh encryption keys created by zmsshkeygen zmvolume Manage storage volumes on your Zimbra Mailbox server zmzimletctl Deploy and configure Zimlets