Hi everybody,

I use a CbPolicyd (cluebringer-v2.0.14) and Quotas module. I would like to limit sent messages based on sasl username, but I have to add some exceptions. I add two members (my sasl username has email format) to my quota policy with negation:
source: [email protected]      dest: any
source: [email protected]   dest: any

It's not working as I want, because quotas tracking try to match sasl username to each member and I think it makes OR on the matched result. So if I send as "[email protected] " it doesn't match to first member, but with negation it is matched (matched=1), next it tests second member and the result is matched=0. Finally the end result look like matched=1 ( 0 || 1 = 1 )

Some output from debug log:
          'SASLUsername' => '[email protected]',
(...)
[POLICIES] DEBUG: Found policy member with ID '7' in policy 'Quota Policy'
[POLICIES] DEBUG: Found policy member with ID '8' in policy 'Quota Policy'
[POLICIES] DEBUG: [ID:7/Name:Quota Policy]: Main policy sources '[email protected]' [POLICIES] DEBUG: [ID:7/Name:Quota Policy]: - Resolved source '[email protected]' to a SASL user specification, match = 0
[POLICIES] INFO: [ID:7/Name:Quota Policy]: Source matching result: matched=1
[POLICIES] DEBUG: [ID:7/Name:Quota Policy]: Destination not defined or 'any', explicit match: matched=1 [POLICIES] INFO: [ID:7/Name:Quota Policy]: Destination matching result: matched=1 [POLICIES] DEBUG: [ID:8/Name:Quota Policy]: Main policy sources '[email protected]' [POLICIES] DEBUG: [ID:8/Name:Quota Policy]: - Resolved source '[email protected]' to a SASL user specification, match = 1
[POLICIES] INFO: [ID:8/Name:Quota Policy]: Source matching result: matched=0
[POLICIES] DEBUG: END RESULT: prio=50 => policy ids: 5


Could anyone has a nice solution for this or give me some suggestion?
If it's a known issue I apologise for "spam" and please redirect me to proper post.

Regards,
Fred

Attachment: smime.p7s
Description: Kryptograficzna sygnatura S/MIME

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

Reply via email to