Jon Duggan wrote:
> Hi Guys,
>  
> Just a quick query regarding policyd.
>  
> We're mainly using its throttle by SASL feature.  I just noticed 
> _quota_cur has a default value of '1'. 
>  
> I've only noticed now because i've written a frontend for the ability to 
> add users and it also has some graphical representation of users and 
> their quota's etc, i've noticed that new users that havent relayed any 
> mail have by default relayed 1?

[..]

> Which is the default set in mysql. I 
> just wondered what the reason for this is?
>  
> I havent tested yet but one would assume that if i set a hardlimit of 
> 50emails/24hrs then they can only actually relay 49?

This is incorrect, the user will be able to send 50.

> Or has this been thought about? and it
> compares _count_max+1 against _count_cur?

Feel free to test it. The logic just saves me a few lines
of code as it means i'm not responsible for inserting the
value of the user when they are put into the database.

Cami

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
policyd-users mailing list
policyd-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/policyd-users

Reply via email to