James Clayton <[email protected]> wrote:

> Ive got it mostly working fine, the MessageCount quota is being hit and 
> blocking me after xx mails are sent from my IP.
> But the MessageCumulativeSize does not appear to be tracking at all.
> The Counter in in the quota_tracking table remains unchanged no matter what.
> 
> We wish to use that to help set the limits for clients.
> 
> MessageCount and MessageCumulativeSize are both set to the same QuotasID in 
> the quotas_limits table.
> 
> The logs of a test email with a 4.4MB file (limit is set to 200MB):
> Mail Log:
> Sep 18 09:44:18 smtp1 cbpolicyd[18590]: module=Quotas, mode=update, 
> host=***.***.**.**, helo=[***.***.**.**], from=****@****, to=****@****, 
> reason=quota_update, policy=5, quota=2, limit=2, 
> track=SenderIP:***.***.**.**/32, counter=MessageCumulativeSize, 
> quota=0.00/200000000 (0.0%)
> Sep 18 09:44:18 smtp1 cbpolicyd[18590]: module=Quotas, mode=update, 
> host=***.***.**.**, helo=[***.***.**.**], from=****@****, to=****@****, 
> reason=quota_update, policy=5, quota=2, limit=3, 
> track=SenderIP:***.***.**.**/32, counter=MessageCount, quota=1.99/200 (1.0%)
> 
> EVen with log_level=4 set in the .conf file, all that the log shows is:
> [2015/09/18-09:44:18 - 18590] [CBPOLICYD] INFO: Got request #3 (pipelined)

Two things come to mind :

1) IIRC the message size quota only updates at the EOM stage.

2) Do you have check_policy_service call in smtpd_end_of_data_restrictions ?


_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org

Reply via email to