>>Why do you need an "exact" quota ?
I need a "exact" quota because my goal is to give our client a choice of
100, 200, or 300 e-mails per day. If they are over quota for that day, then
they will have to wait till the next day to send again.

I just want to clarify my testing on my test server:

Period: 300s(5 minutes), quota limit 8(which means block at 10th recipients)

##I did a initail burst here: one email with 8 recipients
Dec 13 13:26:15  ....quota=*1/8* (12.5%)
Dec 13 13:26:16  ... quota=2/8 (24.2%)
Dec 13 13:26:17  ... quota=3/8 (35.2%)
Dec 13 13:26:19 ... quota=4/8 (47.2%)
Dec 13 13:26:20  ... quota=5/8 (59.4%)
Dec 13 13:26:21  ... quota=6/8 (71.3%)
Dec 13 13:26:22  ... quota=7/8 (86.6%)
Dec 13 13:26:22  ... quota=8/8 (98.8%)

##Because I waited 3 minutes in between to take advantage of the quota
formula(http://lists.policyd.org/pipermail/users/2010-December/003214.html)
, my quota is reset to 3

Dec 13 13:29:57 ... quota=*3/8* (40.5%)
Dec 13 13:30:32 ... quota=4/8 (48.3%)
Dec 13 13:30:33 ... quota=5/8 (60.6%)
Dec 13 13:30:34  ... quota=6/8 (72.9%)
Dec 13 13:30:35 ... quota=7/8 (85.2%)
Dec 13 13:30:36 ... quota=8/8 (97.4%)
Dec 13 13:30:37 ... quota=9/8 (109.6%)

##In the last minute, I sent my final e-mail within my allowable period
Dec 13 13:31:10 .. quota=9/8 (110.0%)
Dec 13 13:31:11 Dec 13 13:31:11 mailman cbpolicyd[12995]: module=Quotas,
action=*reject* quota=*10/8* (122.1%)

So given a quota of 8, I sent out 16.

I bet most people would prefer a hard quota(you reach it you're blocked),
instead of dynamic window. I just found out about this in mailiing list
after weeks of testing because the documentation doesn't mention it. The
site definately need a FAQ page, as this is the only software that works
with postfix for quota limit. That my 2 cents :)


On Thu, Dec 16, 2010 at 6:13 AM, Simon Hobson <[email protected]>wrote:

> Nigel Kukard wrote:
>
> >  >> I just want to follow up. If quota's windows is behaved like my
> >>>  test(I could sent to 16 recipients in 5 minutes with a quota limit
> >>>  at 8 recipients), I know this far-fetched in real environment.  How
> >>>  hard is to tweet the formula to block at exactly or close to the
> >>>  quota limit.
> >>  Why do you need an "exact" quota ?
> >
> >Actually ... this is EXACT quota using a dynamic window ... the only way
> >to make it more exact is much much bigger floating point numbers :D
> >
> >Fixed window quotas is imho alot less accurate ..... 10:55 => 11:00 ,
> >allow 10 mails .... that means you can send 10 mails at 10:59 and 10
> >again at 11:00. Thats 20 in a 2 minute period.
>
> I think the OP is looking for true sliding window quotas - so if 10
> were sent at 10:59, no more could be sent until 11:04 (assuming 5
> minute window. Or more precisely, if 2 were sent at 10:57, and
> another 8 at 10:59, two more could be sent at 11:02, 8 more at 11:04,
> and so on.
>
> At it's done now, the user can send out 10 at 10:59, and over the
> next 5 minutes between then and 11:04, can dribble out about 10 more
> as the quota 'tails off' between successful sends - so 20 in 5
> minutes.
>
> However, if they keep sending as fast as they'll go, then they'll
> only be able to dribble out about 2/minute - ie after the initial
> burst, they will be properly rate limited to 10/5minutes. But to take
> advantage of that burst, they must have sent no messages in the
> preceding period so as to reset the quota counter to zero - over a
> time of twice the quota period they cannot send more than the quota.
>
> I think that's the bit the OP is missing.
>
> >I'm going to be releasing RC2 in the very near future, hearing people
> >say "works, awesome" motivates :)
>
> I'm not in a  position to test it as I don't have the resources for a
> test server - sorry. But it is an awesome bit of software. Many
> thanks from here.
>
> --
> Simon Hobson
>
> Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
> author Gladys Hobson. Novels - poetry - short stories - ideal as
> Christmas stocking fillers. Some available as e-books.
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.policyd.org/mailman/listinfo/users
>
_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users

Reply via email to