Page 1 of 1

policyd and saslusername

Posted: Sun Oct 27, 2013 10:56 am
by maumar
Hello

I have installed cluebringer (or policyd or cbpolicyd) on a 8.0.4 like here Postfix Policyd - Zimbra :: Wiki.

and here http://www.policyd.org/content/policies-configuration
>

It's works with all the stuff you can find there.

But I need to track saslusername, I am able to do it on debian+postfix+cluebringer+mysql.

I am not able to get it working here.




sqlite> select * from policy_members;

1|1||||0

2|2|%internal_ips,%internal_domains|!%internal_domains||0

3|3|!%internal_ips,!%internal_domains|%internal_domains||0

4|4|%internal_ips,%internal_domains|%internal_domains||0

5|5|@example.net|||0

6|6|%smtp_users|any||0
sqlite> select * from policy_groups;

1|internal_ips|0|

2|internal_domains|0|

3|smtp_users|0|
sqlite> select * from policy_group_members;

1|1|10.0.0.0/8|0|

2|2|@example.org|0|

3|2|@example.com|0|

4|3|$*|0|All sasl

About quotas table
everithing I use does not track inbound sasl authenticated messages, but only inbound messages messages (not authenticated ones)
I tried as Track:
1. SASLUsername:sasl=user@domain

2. SASLUsername:user@domain

2. SASLUsername:username
everithing is wrong as it is never tracked when I send a mesage using sasl
any help is apreciated


Maurizio
EDIT

i was able at last, but I have to use no ssl, no tls, port 25 and this way I am tracked


[2013/10/27-18:23:56 - 13644] [CORE] INFO: module=Quotas, mode=create, host=79.18.68.178, helo=tikal.homenet.telecomitalia.it, from=maumar@xxxxx.com, to=xxxx@xxxx.xxxx, reason=quota_create, policy=6, quota=4, limit=5, track=SASLUsername:maumar@xxxxxxx.com, counter=MessageCount, quota=1.00/100 (1.0%)




and quotas is:


4|6|SASLUsername:username|SASLUsername:user@domain|3600|DEFER|Deferring: Too many messages from sasl user in last 60|0||0


policyd and saslusername

Posted: Mon Dec 30, 2013 6:45 am
by justin_exoca
Hello,
Up, i'm also interested by this problem.
Thanks

policyd and saslusername

Posted: Wed Apr 23, 2014 12:48 pm
by tbovingdon
Did you guys ever figure this out?

policyd and saslusername

Posted: Wed Apr 23, 2014 2:00 pm
by maumar
Yes, I was able to doit, but w/out ssl

I contributed some note here

Bash Scripts for cbpolicyd - Zimbra :: Wiki