On 26/04/11 23:35, Robert Anderson wrote:
> Hi Juan,
>
>> Just tested also 2.0.11, happens with this version also.
>>
>> Found the error, finally, is within the table quotas_tracking structure.
>>
>> The default structure for the field quotas_tracking.Counter (tested in
>> mysql) is decimal(10,4).
>>
>> Since the MessageCumulative size limit in the quota module is in bytes
>> this is easy to overflow, and the value stored in database ends being
>> 999999.9999, which is roughly almost 1 MB only
>>
>> The quota update tries to setup for example a 5 MB quota usage, but the
>> counter field get stalled at 1MB, that why it looked that the Counter
>> field reset.
>>
>> By resetting the database structure in the field quotas_tracking.Counter
>> to decimal(15,4) that gives a maximum of 99999999999.9999, or 93GB.
>>
>> And solved the problem
>
> We are currently investigating and will have a patch available to try as
> soon as possible. Thank you for the detailed report.
>
> Robert


Hi Robert,

Thanks for addressing the issue, also I would like to place a feature 
request:

Is is posible to have a RCPT Counter limit type in the quotas module?, 
same feature in the old policydv1.

I want to avoid users send few messages with 1000 recipients each. I 
know that postfix features smtpd_recipient_limit, but does not have a 
way to throttle in time frames like policyd does.

Regards.

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

Reply via email to