On 11/16/11 10:05, Roland Vogt wrote:
Hello,

I have a problem with the quota tracking using SASL. I want to track
the SASL:username but it appear that policyd track the "from" of each
mails. I use Policyd 2.0.11 with postfix on Debian 6.

There is a sample of my log :

Correct Policy :
Nov 16 12:28:42 policyd cbpolicyd[8386]: module=Quotas, mode=create,
host=192.168.170.29, helo=test, [email protected],
[email protected], reason=quota_create, policy=5, quota=7, limit=9,
track=SASLUsername:[email protected], counter=MessageCount,
quota=1.00/5000 (0.0%)

Wrong one :
Nov 16 12:29:18 policyd cbpolicyd[22917]: module=Quotas, mode=create,
host=192.168.170.29, helo=test, [email protected],
[email protected], reason=quota_create, policy=1, quota=2, limit=3,
track=SASLUsername:[email protected], counter=MessageCount, quota=1.00/60
(1.7%)

As you can see, the SASLUsername is the same of each case but the
"from" isn't. So why does it not use the SASLUsername to apply the
correct policy ?

What can I do to fix this ?

Thanks in advance,

RvDebian

What does your tracking table in mysql look like? does it show the SASL username or the FROM.

I just tested it here and for me it shows the SASL username. The logs above are the envelope FROM and TO, which are the email addies.

-

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

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

Reply via email to