Wietse Venema:
> This patch adds one argument to the attr_clnt_create() function,
> which requires making changes to every program that that invokes
> this function.
>
> I will instead use the attr_clnt_control() function:
>
> attr_clnt_control() allows the user to fine tune the behavior
> of the specified client. The arguments are a list of (name,
> value) terminated with ATTR_CLNT_CTL_END.
>
> Since most programs never limit number of requests per connection,
> the attr_clnt_control() function is the better interface to use.
I added code that resets the per-session request counter to zero,
and made some minor documentation changes. After validation tests
this is now part of Postfix version 2.12-20140701.
Wietse
smtpd_policy_service_request_limit (default: 0)
The maximal number of requests per Postfix SMTP server policy connec-
tion, or zero (no limit). Once a connection reaches this limit, the
connection is closed and the next request will be sent over a new con-
nection. This is a workaround to avoid error-recovery delays with pol-
icy servers that cannot maintain a persistent connection.
This feature is available in Postfix 2.12 and later.