On 06/28/11 15:54, Drew Weaver wrote:
> Howdy, I hate replying to myself, I figured out that the reason this wasn't 
> working is because nothing was matching my "source" in the outbound policy 
> definition.
>
> I have one final hurdle I need to jump over and I am hoping someone knows the 
> answer.
>
> I want to limit email sent by each SASLUser, so I went into the outgoing 
> policy and made the "source" $sasl_username (which is what I gleaned from the 
> manual).
>
> I see this in the log when I send an email using SASL:
>
> [2011/06/28-11:51:25 - 14864] [POLICIES] DEBUG: [ID:2/Name:Default Outbound]: 
> - Resolved source '$sasl_username' to a SASL user specification, match = 0
>            'sasl_username' =>  'user@domain',
> [2011/06/28-11:51:25 - 19783] [POLICIES] DEBUG: [ID:2/Name:Default Outbound]: 
> Main policy sources '$sasl_username'
> [2011/06/28-11:51:25 - 19783] [POLICIES] DEBUG: [ID:2/Name:Default Outbound]: 
> - Resolved source '$sasl_username' to a SASL user specification, match = 0
>
> but it doesn't match.
>
> Reading the docs on the website it said using $* means any SASL_username, so 
> I tried that.
>
> Then I tried $sasl_username$*
>
> and nothing seems to match.
>
> Can anyone tell me the right way to construct a policy so that SASL users are 
> tracked?

You're looking for $*  ,  $sasl_username will match a username 
"sasl_username"
You can also use $- to match no SASL username.
ref: http://www.policyd.org/content/policies-configuration

As a tracking option for quotas or accounting you then use 
"SASLUsername", you will then get quotas and/or accounting for each user 
individually.

-N

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

Reply via email to