Zimbra :: Tech Center:Cluebringer Policy Daemon: Difference between revisions

No edit summary
No edit summary
Line 14: Line 14:


After 1 to 2 minutes the zmconfigd process will detect that you want this service enabled, and automatically install the database and start the service.
After 1 to 2 minutes the zmconfigd process will detect that you want this service enabled, and automatically install the database and start the service.
== Localconfig keys related to policyd ==
* cbpolicyd_pid_file = KnownKey.newKey("${zimbra_log_directory}/cbpolicyd.pid");
* cbpolicyd_log_file = KnownKey.newKey("${zimbra_log_directory}/cbpolicyd.log");
* cbpolicyd_db_file = KnownKey.newKey("${zimbra_home}/data/cbpolicyd/db/cbpolicyd.sqlitedb");
* cbpolicyd_cache_file = KnownKey.newKey("${zimbra_home}/data/cache");
* cbpolicyd_log_level = KnownKey.newKey(3);
* cbpolicyd_log_mail = KnownKey.newKey("main");
* cbpolicyd_log_detail = KnownKey.newKey("modules");
* cbpolicyd_bind_port = KnownKey.newKey(10031);
* cbpolicyd_timeout = KnownKey.newKey(120);
* cbpolicyd_bypass_timeout = KnownKey.newKey(30);
* cbpolicyd_bypass_mode = KnownKey.newKey("tempfail");
* cbpolicyd_module_accesscontrol = KnownKey.newKey(0);
* cbpolicyd_module_greylisting = KnownKey.newKey(0);
* cbpolicyd_module_greylisting_training = KnownKey.newKey(0);
* cbpolicyd_module_greylisting_defer_msg = KnownKey.newKey("Greylisting in effect, please come back later");
* cbpolicyd_module_greylisting_blacklist_msg = KnownKey.newKey("Greylisting in effect, sending server blacklisted");
* cbpolicyd_module_checkhelo = KnownKey.newKey(0);
* cbpolicyd_module_checkspf = KnownKey.newKey(0);
* cbpolicyd_module_quotas = KnownKey.newKey(1);
* cbpolicyd_module_amavis = KnownKey.newKey(0);
* cbpolicyd_module_accounting = KnownKey.newKey(0);


{{Article Footer|ZCS 8.0, ZCS 7.0|2/26/2013}}
{{Article Footer|ZCS 8.0, ZCS 7.0|2/26/2013}}

Revision as of 22:32, 11 April 2013

Admin Article

Article Information

This article applies to the following ZCS versions.

ZCS 8.0 Article ZCS 8.0 ZCS 7.0 Article ZCS 7.0

Postfix Cluebringer Policyd in Zimbra

Policyd is an anti-spam policy daemon for Postfix (written in C) that does Greylisting, Sender-(envelope, SASL or host / ip)-based throttling (on messages and/or volume per defined time unit), Recipient rate limiting, Spamtrap monitoring / blacklisting, HELO auto blacklisting and HELO randomization preventation.

It is included as a part of the Zimbra package, but it is not enabled by default.

Enabling policyd

First ensure sqlite is installed (It is listed as a suggested install).

To enable policyd, simply tell the Zimbra installation you want it enabled:

zmprov ms <mta server> +zimbraServiceEnabled cbpolicyd

After 1 to 2 minutes the zmconfigd process will detect that you want this service enabled, and automatically install the database and start the service.

Localconfig keys related to policyd

  • cbpolicyd_pid_file = KnownKey.newKey("${zimbra_log_directory}/cbpolicyd.pid");
  • cbpolicyd_log_file = KnownKey.newKey("${zimbra_log_directory}/cbpolicyd.log");
  • cbpolicyd_db_file = KnownKey.newKey("${zimbra_home}/data/cbpolicyd/db/cbpolicyd.sqlitedb");
  • cbpolicyd_cache_file = KnownKey.newKey("${zimbra_home}/data/cache");
  • cbpolicyd_log_level = KnownKey.newKey(3);
  • cbpolicyd_log_mail = KnownKey.newKey("main");
  • cbpolicyd_log_detail = KnownKey.newKey("modules");
  • cbpolicyd_bind_port = KnownKey.newKey(10031);
  • cbpolicyd_timeout = KnownKey.newKey(120);
  • cbpolicyd_bypass_timeout = KnownKey.newKey(30);
  • cbpolicyd_bypass_mode = KnownKey.newKey("tempfail");
  • cbpolicyd_module_accesscontrol = KnownKey.newKey(0);
  • cbpolicyd_module_greylisting = KnownKey.newKey(0);
  • cbpolicyd_module_greylisting_training = KnownKey.newKey(0);
  • cbpolicyd_module_greylisting_defer_msg = KnownKey.newKey("Greylisting in effect, please come back later");
  • cbpolicyd_module_greylisting_blacklist_msg = KnownKey.newKey("Greylisting in effect, sending server blacklisted");
  • cbpolicyd_module_checkhelo = KnownKey.newKey(0);
  • cbpolicyd_module_checkspf = KnownKey.newKey(0);
  • cbpolicyd_module_quotas = KnownKey.newKey(1);
  • cbpolicyd_module_amavis = KnownKey.newKey(0);
  • cbpolicyd_module_accounting = KnownKey.newKey(0);


Verified Against: ZCS 8.0, ZCS 7.0 Date Created: 2/26/2013
Article ID: https://wiki.zimbra.com/index.php?title=Cluebringer_Policy_Daemon Date Modified: 2013-04-11



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search