How To Install PolicyD on Zimbra 8.7 !

What is Policyd?

Policyd is an anti spam plugin.

How To Install Policyd on Zimbra 8.7 ? Running Centos 6 ?


# Activate Policyd WebUI
Run the following command as root

cd /opt/zimbra/data/httpd/htdocs/ && ln -s ../../../common/share/webui


Edit file /opt/zimbra/common/share/webui/includes/config.php and putting “#” on front of all the lines beginning with $DB_DSN and adding the following line just before the line beginning with $DB_USER.

nano /opt/zimbra/common/share/webui/includes/config.php


end with This enables the service.

su - zimbra
zmprov ms `zmhostname` +zimbraServiceInstalled cbpolicyd +zimbraServiceEnabled cbpolicyd

Then Restart


su - zimbra -c "zmcontrol restart"
su - zimbra -c "zmapachectl restart"


You should have access now to your http://zimbraserver:7780/webui/index.php

Ofc you need now to config the policyd however I will not going into that here

Note if you disabled IPV6 on your server policyd will not start, so it needs enabling ipv6 even if your not using it..

6 thoughts on “How To Install PolicyD on Zimbra 8.7 !

  1. Thanks for your post!!

    The correct port (in my case) using Zimbra 8.7 is 7780.

    $ zmcontrol -v
    Release 8.7.0.GA.1659.UBUNTU14.64 UBUNTU14_64 FOSS edition.


  2. Thanks for the post. When ipv6 is disabled, I think you have to comment the following line in /etc/hosts. Then cbpolicyd should start.

    #::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.