Markus Benning:
> On Wed, Sep 02, 2015 at 11:46:10AM -0400, Wietse Venema wrote:
> > Reusing the same client socket for multiple policy clients requires
> > a reference-counting mechanism that is best implemented in the lower
> > layers of the Postfix infrastructure. It is a unlikely that one
> > Postfix daemon process will be making multiple simultaneous requests
> > to the same endpoint, but it if does at some point in the future,
> > then the *_clnt APIs would need to be updated with an extra flag
> > to prevent client endpoint sharing.
> 
> Thanks for pointing that out.
> 
> Would that connection reuse feature be specific to the attr_clnt
> or is it better implemented in auto_clnt?

I think this can be done later.

Client socket sharing may not always be desirable.  For example a
proxymap client would no longer spread its query load over different
proxymap server instances. Having to change all mumble_clnt APIs
can be invasive.

> > Can you update the patch?
> 
> The attached patch has updated parameter names.
> 
> Now it will look like that:
> 
>   check_policy_service { inet:localhost:12345, timeout=10s,
>     default_action=DUNNO, policy_context=accounting }
> 
> and:
> 
>   request=smtpd_access_policy
>   policy_context=reputation
>   ...
> 
> I'll implement the policy_context attribute in mtpolicyd
> and release a new version after some testing.
> 
> BTW: is it possible to add a link to mtpolicyd.org on
> <http://www.postfix.org/addon.html>?

Can you send a separate email reminder for that

        Wietse

Reply via email to