Results 1 to 9 of 9

Thread: CBPolicyD - Problems after Installation and setup

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Posts
    3
    Rep Power
    2

    Question CBPolicyD - Problems after Installation and setup

    Hi, I have configured Policyd in Zimbra 8.0.2 Ubuntu after the main installation and it is not working.

    The configuration I have followed is this: http://forums.zextras.com/zimbra-howto/403-[howto]-enabling-cbpolicyd-zimbra-8-0-0-8-0-1-a.html

    I can access the PolicyD page, but not the database. The error is this: Error connecting to Policyd v2 DB: could not find driver

    My PHPINFO() shows:

    PDO
    PDO support enabled
    PDO drivers sqlite


    pdo_sqlite
    PDO Driver for SQLite 3.x enabled
    SQLite Library 3.7.7.1

    The database configured in config.php is SQLLITE.

    Can someone help me to address whats missing?

    thanks a lot
    Andre

  2. #2
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    12

    Default

    these instructions aren't complete. the default path in the cluebringer-httpd.conf refers to /usr/share/cluebringer/webui. If you unpack the cluebringer webui into this path, make sure you also copy/edit the correct config into /usr/share/cluebringer/webui/includes/config.php. Then it works.

  3. #3
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    12

    Default

    also, i'm not sure that step 2 (database initialisation) is correct - i think the database is already initialised and this leads to duplicate entries. in addition, i'm not sure that adding the zimbraMtaRestriction is correct - it's already in postfix in a different format.

  4. #4
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,285
    Rep Power
    10

    Default

    I'm not sure why you are following directions from Zextras website. They are clearly wrong.

    I would probably read Postfix Policyd - Zimbra :: Wiki

    --Quanah
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  5. #5
    Join Date
    May 2012
    Posts
    39
    Rep Power
    3

    Default

    Hello Gentlemen,
    I honestly had not any issue following that guide:

    Quote Originally Posted by dijichi2 View Post
    these instructions aren't complete. the default path in the cluebringer-httpd.conf refers to /usr/share/cluebringer/webui. If you unpack the cluebringer webui into this path, make sure you also copy/edit the correct config into /usr/share/cluebringer/webui/includes/config.php. Then it works.
    In zimbra's cluebringer-httpd.conf file I can see no reference to such folder and zimbra's cluebringer config.php is in /opt/zimbra/cbpolicyd/share/webui/includes/ anyways... Are you using the cbpolicyd distributed wiht zimbra or did you install cbpolicyd from scratch?

    Quote Originally Posted by dijichi2 View Post
    also, i'm not sure that step 2 (database initialisation) is correct - i think the database is already initialised and this leads to duplicate entries. in addition, i'm not sure that adding the zimbraMtaRestriction is correct - it's already in postfix in a different format.
    I still have to try this on Zimbra 8.0.2, but in 8.0.1 the database had to be manually initialized.
    The zimbraMtaRestriction wasn't there when cbpolicyd was first included in Zimbra, and the guide states to add it only if needed.

    Quote Originally Posted by quanah View Post
    I'm not sure why you are following directions from Zextras website. They are clearly wrong.

    I would probably read Postfix Policyd - Zimbra :: Wiki

    --Quanah
    As I said I still have to try this on 8.0.2, but unfortunately from my personal experience the instructions you link are far from complete...


    My 2 c.
    See ya,
    Mike

  6. #6
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    12

    Default

    the instructions quanah left are unfortunately complete. i say unfortunately, because they are enough to get policyd up and running with zimbra (at least in 8.0.2/8.0.3), it doesn't really do anything that I can see. as detailed on that page you can even set greylisting option in zmlocalconfig, but again it doesn't really do anything, at least as far as I can see.

    what I do like about zimbra's approach to this is that it's easy. a single command:
    zmprov ms <mta server> +zimbraServiceEnabled cbpolicyd
    zmconfig will then spring into action on it's next invocation and rewrite the necessary postfix config to hook policyd in. if the policyd sqlite database is missing, it will indeed create it for you. you can also invoke this manually using zmcbpolicydctl - if this doesn't find the db it will create it. this is very nice. do not follow the instructions on the zextras page.

    what I don't like about zimbra's approach to this is that it appears to be the usual half-baked implementation that you still have to go out and hack around by hand to get it to work effectively (think dspam, spamassassin etc). plus, they've deliberately stripped out the useful bits you need to do this (web interface). plus, any hacks put into place to get it working ala zextras way get wiped out every upgrade. the zextras wiki pages are not the best way to go about it as it tries to repair the zimbra, and let's be honest - bodging an antispam web interface into an internal zimbra apache instance meant to serve spelling on some random port, is not really the ideal situation. i'm amazed that zimbra still has this huge dependency stack just to serve spell check, surely there's a way of doing this without an entire cumbersome apache/php stack?

    imho you're much better off just installing/using the proper OS apache, installing cluebringer into a more suitable place like /usr/share/cluebringer, or in your http/vhosts tree somewhere, and configuring it to point to the zimbra cb database (/opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb). this then sits outside of zimbra and won't be interfered with by zimbra.

    as to getting it to actually do something, i'll post back again if I get anywhere. the last time I tried to get it to greylist, it wouldn't do anything to just inbound policy, and if applied globally it than sabotaged everything going out..

Similar Threads

  1. [SOLVED] cbpolicyd setup with 7.0 GA
    By doc_777 in forum Installation
    Replies: 7
    Last Post: 04-20-2013, 07:43 PM
  2. Authentication problems with first time installation/setup
    By beatcal in forum General Questions
    Replies: 0
    Last Post: 09-14-2012, 01:58 PM
  3. Replies: 0
    Last Post: 09-14-2012, 01:58 PM
  4. Split DNS setup problems.
    By xxthegonzxx in forum Installation
    Replies: 1
    Last Post: 11-25-2011, 07:54 AM
  5. Replies: 4
    Last Post: 03-03-2008, 03:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •