At 12:47 -0400 27/4/11, alt ctrl del op wrote:
>Configuration: Postfix + Policyd v2. Outbound only gateway. Multiple 
>domains, multiple users.
>
>Goal: Set outbound quotas for user@domain, with different quota 
>levels for specific users @ specific domains.tld.
>high_quota = 5000 recipients over 12 hours. Apply to specific users, 
>then stop processing additional quota rules.
>med_quota = 1000 recipients over 12 hours. Apply to specific users, 
>then stop processing additional quota rules.
>default_quota = 400 recipients over 12 hours. Applies to all other users.

The trick I found was to make all policies mutually exclusive - 
otherwise some policies are applied when you'd think they shouldn't. 
Ie it applies all matching policies, not just the highest priority 
one.

So you need :
default users - not members of medium_quote and not members of high_quota
medium_quota - members of (a list)
high_quota - members of (a list)

And you need to ensure you don't put a user in both lists.

>Is this how I would do it?

I'm not faimilar with reading it like that, but ...

>Table policy_members
>id, policyid, source, destination, comment, disabled
>(33, 1, %high_quota_users, ?what_goes_here?, apply to high_quota users, 0)
>(34, 2, %med_quota_users, ?what_goes_here?, apply to med_quota users, 0)

I think ?what_goes_here? is the wildcard (ie anything).

-- 
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

Reply via email to