Hi everybody,

I'm using policyd to throttle incoming mail (size over time against 
sasl_username) and I'm experiencing a strange delay during submission.
In particular, it seems some kind of delay due to policyd execution, and it's 
about 1 second per message.

Software versions:
distribution: CentOS 6.3
postfix: 2.6.6
policyd: 2.0.12

Postfix + policyd + mysql are all installed on the same machine.

At the following url http://pastebin.com/avEvii6x I've uploaded the following 
information:

- relevant extracts of /var/log/cbpolicyd.log and /var/log/maillog
- relevant parts of /etc/postfix/main.cf
- the whole /etc/policyd/cluebringer.conf
- one mysql query that summarize the configured policies

The log timestamps show the delay I'm talking about.
Es. maillog:

[...]
Aug 24 16:15:09 spauth-test postfix/smtpd[1611]: 78F4E404A6: 
client=unknown[192.168.128.178], sasl_method=PLAIN, sasl_username=user

After this line, elaboration seems to pause, and then it restarts with the line:

Aug 24 16:15:10 spauth-test cbpolicyd[1596]: module=Quotas, mode=update, 
host=192.168.128.178, helo=test.local, [email protected], 
[email protected], reason=quota_update, policy=4, quota=6, limit=6, 
track=SASLUsername:user, counter=MessageCumulativeSize, quota=3.56/30720 (0.0%)

Is this thing normal?
Any suggestions to improve performance (even using 2.1-snapshot is acceptable 
if the change is worth it)?

Thanks a lot for your support.

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

Reply via email to