In Zimbra Mail Server you can disable and enable service from CLI as per your requirement . Below are the steps:
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
Disable antispam service
# su - zimbra
Syntax:
command option "zimbra_hostname" attribute service_name
Example:
$ zmprov ms "mail.example.com" -zimbraServiceEnabled antispam
or,
$ zmprov ms
zmhostname-zimbraServiceEnabled antispam
Enable antispam service
$ zmprov ms "mail.example.com" +zimbraServiceEnabled antispam
or,
$ zmprov ms
zmhostname+zimbraServiceEnabled antispam
Disable Antivirus service
$ zmprov ms
zmhostname-zimbraServiceEnabled antivirus
Enable Antivirus service
$ zmprov ms
zmhostname+zimbraServiceEnabled antivirus