Nigel Kukard wrote: > > If all quotas for all matched policies are applied, then that means >> I've got to redefine all my policies to make then mutually exclusive. >> That's going to complicate things - but I think it can be done. >> > >Well ... if a quota is linked to a policy, and the policy is matched ... >yes ... it will be applied and updated. I don't see it ever working in >any other way.
Logic to me says it should work down the matched policies in descending order until it finds a quota defined - and then apply that quota. I suppose the way it's implemented is another way of expecting it to work. Perhaps part of the problem is the difference between quotas and the way Amavis integration works. I think the documentation needs updating to make it clear how quotas work if multiple policies match a message. > > My policies are : >> 1 Default 0 source = any >> 6 SASL Users 50 source = $* >> 9 SASL high volume 55 source = %hi-vol-sasl >> 7 Int & SASL 60 source = %FI_Network,$* >> 8 Local mail 90 source = %internal_ips >> >> In general (for sending mail), most customers should be using policy >> 6, those with higher throughput requirements use policy 9, and >> machines on our own network use policy 7. >> Locally generated mail should use policy 8 >> Inbound mail will use the default policy 1 >> >> What you are saying then is I'll need to modify them like this : > > 1 Inbound 0 source = !$*,!%internal_ips > > 6 SASL Users 50 source = $*,!%hi-vol-sasl,!%FI_Network >> 9 SASL high volume 55 source = %hi-vol-sasl > > 7 Int & SASL 60 source = %FI_Network,$*,!%hi-vol-sasl >> 8 Local mail 90 source = %internal_ips >> >> I believe that should make them mutually exclusive. Nothing matching >> %internal_ips will be using SASL. In all cases, destination=all. >> >> Do those look right ? >> >> > >I don't see a problem with it :) I've done that, and it now seems to be working. -- 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
