Page 1 of 1

cbpolicy not respect

Posted: Mon Apr 16, 2018 3:07 pm
by fferraro87
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