1-Best
--------
Policyd on Zimbra 8.8.x
Run the following command as root
cd /opt/zimbra/data/httpd/htdocs/ && ln -s ../../../common/share/webui
Edit file:
# vi /opt/zimbra/common/share/webui/includes/config.php
# $DB_DSN=”mysql:host=localhost;dbname=cluebringer”;
$DB_DSN="sqlite:/opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb";
# su - zimbra# zmprov ms `zmhostname` +zimbraServiceInstalled cbpolicyd +zimbraServiceEnabled cbpolicyd
su - zimbra -c "zmcontrol restart" # Zimbra restart su - zimbra -c "zmapachectl restart" # httpd restart
http://zimbraserver:7780/webui/index.php
Protect/password Policyd WebUI
# cd /opt/zimbra/common/share/webui/
# vi .htaccess
AuthUserFile /opt/zimbra/common/share/webui/.htpasswd
AuthGroupFile /dev/null
AuthName "User and Password"
AuthType Basic
require valid-user
# touch .htpasswd
# /opt/zimbra/common/bin/htpasswd -cb .htpasswd admin StrongPass
# vi /opt/zimbra/conf/httpd.conf
Add the following contents at the end of “httpd.conf” file
Alias /webui /opt/zimbra/common/share/webui/
<Directory /opt/zimbra/common/share/webui>
# Comment out the following 3 lines to make web ui accessible from anywhere
AllowOverride AuthConfig
Order Deny,Allow
Allow from all
</Directory>
su - zimbra -c "zmapachectl restart"
----------------------------
--------------------------
policyd zimbra 8.8.12
Install and configure Zimbra 8.8 PolicyD
This example works for single server running Zimbra 8.8
su - zimbra zmprov ms `zmhostname` +zimbraServiceInstalled cbpolicyd +zimbraServiceEnabled cbpolicyd
Next step must be executed as root
[zimbra@mail ~]$ su -
cd /opt/zimbra/data/httpd/htdocs/ ln -s ln -s ../../cbpolicyd/share/webui
Edit config file putting “#” on front of all the lines beginning with $DB_DSN and adding the following line just before the line beginning with $DB_USER.
vi /opt/zimbra/common/share/webui/includes/config.php $DB_DSN="sqlite:/opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb"; #$DB_DSN="mysql:host=localhost;dbname=cluebringer"; $DB_DSN="sqlite:/opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb"; $DB_USER="root";
Edit httpd.conf file and add below at the bottom of the file
vi /opt/zimbra/conf/httpd.conf
Alias /webui /opt/zimbra/common/share/webui/
AllowOverride AuthConfig
Order Deny,Allow
Allow from all
Restart services
su - zimbra -c "zmcontrol restart" su - zimbra -c "zmapachectl restart"
Now you should be able to access policyd using link below
http://ipaddress:7780/webui/index.php
--------------------------------X-
--------------------------
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
$DB_DSN="sqlite:/opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb";
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..
----------