cbpolicy not respect

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
User avatar
Advanced member
Advanced member
Posts: 84
Joined: Thu Apr 28, 2016 8:58 am

cbpolicy not respect

Postby fferraro87 » Mon Apr 16, 2018 3:07 pm


i've enabled cbpolicyd on my zimbra server 8.6.0_GA_1194.NETWORK i've do that :

Code: Select all

sqlite3 /opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb < /tmp/policy.sql

where /tmp/policy.sql is

Code: Select all

INSERT INTO "policies" (ID,Name,Priority,Description) VALUES (6,'limite invio per utente',0,'Policy per limitare invio da un account massivo');$
INSERT INTO "policy_members" (PolicyID,Source,Destination) VALUES (6, 'any', 'any');
INSERT INTO "quotas" (PolicyID,Name,Track,Period,Verdict,Data) VALUES (6,'Sender:user@domain','Sender:user@domain',86400,'DEFER','Non puoi inviare più di 500 messaggi al giorno per evitare che il server vada in blacklist, se vuoi inviare newsletter o hai bisogno di più invii giornalieri contatta il supporto');
INSERT INTO "quotas_limits" (QuotasID,Type,CounterLimit) VALUES (4,'MessageCount',500);

in order to put a sent limit for each account of 500 email a day.

then i've restarted mta and cbpolicy with this command :

Code: Select all

zmmtactl restart
zmcbpolicyd restart

but yesterday an account sent more than 500 emails and cbpolicy doesn't stop him.

Where i'm wrong?


Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 18 guests