How to Disable/Enable services in Zimbra Mail Server

Zimbra provides open-source server and client software for numerous applications like messaging and collaboration: email, group calendaring, contacts, and web document management and authoring.The Zimbra server has been made available for various platforms like Linux, Mac OS X, appliances, and virtualization platforms. The Zimbra Web 2.0 Ajax client runs on the most commonly used browsers like Firefox, Safari, and IE. It also features easy integration/mashups of web portals, business applications, and VoIP using web services.

In Zimbra Mail Server you can disable and enable service from CLI as per your requirement. Below are the steps:

1. Check Service Status:

$ zmcontrol status
Host mail.example.com
amavis                     Running
antivirus                  Running
antispam                   Running
ldap                       Running
logger                     Running
mailbox                    Running
memcached                  Running
mta                        Running
opendkim                   Running
proxy                      Running
service webapp             Running
snmp                       Running
spell                      Running
stats                      Running
zimbra webapp              Running
zimbraAdmin webapp         Running
zimlet webapp              Running
zmconfigd                  Running

2. Disable antispam service:
Syntax:

$ command option "zimbra_hostname" attribute service_name

Example:

# su - zimbra
$ zmprov ms "mail.example.com" -zimbraServiceEnabled antispam

or:

# su - zimbra
$ zmprov ms `zmhostname` -zimbraServiceEnabled antispam

3. Enable antispam service:

# su - zimbra
$ zmprov ms "mail.example.com" +zimbraServiceEnabled antispam

or:

# su - zimbra
$ zmprov ms `zmhostname` +zimbraServiceEnabled antispam

4. Disable Antivirus service:

# su - zimbra
$ zmprov ms `zmhostname` -zimbraServiceEnabled antivirus

5. Enable Antivirus service:

# su - zimbra
$ zmprov ms `zmhostname` +zimbraServiceEnabled antivirus
Related Post