policyd and saslusername

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
User avatar
maumar
Outstanding Member
Outstanding Member
Posts: 379
Joined: Fri Sep 12, 2014 10:28 pm

policyd and saslusername

Postby maumar » Sun Oct 27, 2013 10:56 am

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



justin_exoca
Posts: 18
Joined: Sat Sep 13, 2014 1:50 am

policyd and saslusername

Postby justin_exoca » Mon Dec 30, 2013 6:45 am

Hello,
Up, i'm also interested by this problem.
Thanks
tbovingdon
Advanced member
Advanced member
Posts: 146
Joined: Fri Sep 12, 2014 10:19 pm

policyd and saslusername

Postby tbovingdon » Wed Apr 23, 2014 12:48 pm

Did you guys ever figure this out?
User avatar
maumar
Outstanding Member
Outstanding Member
Posts: 379
Joined: Fri Sep 12, 2014 10:28 pm

policyd and saslusername

Postby maumar » Wed Apr 23, 2014 2:00 pm

Yes, I was able to doit, but w/out ssl

I contributed some note here

Bash Scripts for cbpolicyd - Zimbra :: Wiki

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 32 guests