cbpolicy not respect

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

cbpolicy not respect

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

Hi,

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

BEGIN TRANSACTION;
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);
COMMIT;


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?

Thanks


Return to “Administrators”

Who is online

Users browsing this forum: Google [Bot] and 18 guests