Wednesday 22 June 2016

Install PolicyD on Zimbra 8.5



What is Policyd?

Policyd is an anti spam plugin. Policyd have some module like quotas, access control, spf check, greylisting and others.
Zimbra Collaboration Suite is an email server who use Postfix as engine for MTA. By default, policyd have been bundled with Zimbra from Zimbra version 7.

Why we must use Policyd?

Policyd have module quotas. This module can use for limit sending/receipt email. As example just allow sending/receipt email 200 emails/hours/users. If your email server attacked by spam or compromised password some users and used by spammer, the maximum email can be sent as many as 200 emails per hour. This policy will safe your IP public from blacklist on RBL. Besides, you can check who user send email with many email

How To Install Policyd on Zimbra 8.5?

This guidance is step by step how to install policyd on Zimbra 8.5.
Activate Policyd


#su - zimbra
#zmprov ms `zmhostname` +zimbraServiceInstalled cbpolicyd +zimbraServiceEnabled cbpolicyd 
 
Activate Policyd WebUI

Run the following command as root
 
#cd /opt/zimbra/httpd/htdocs/ && ln -s ../../cbpolicyd/share/webui 
 
Edit file /opt/zimbra/cbpolicyd/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
 
$DB_DSN="sqlite:/opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb"; 
 
See the following example
 
#$DB_DSN="mysql:host=localhost;dbname=cluebringer";
$DB_DSN="sqlite:/opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb";
$DB_USER="root";
 
Restart Zimbra service  and Zimbra Apache service
 
#su - zimbra -c "zmcontrol restart"
#su - zimbra -c "zmapachectl restart"
  

No comments:

Post a Comment

Permanent hostname setup for RHEL7

Step 1 Set the host name on NMTUI tool like following nmtui set host name   then save and exit Step 2 add the following l...