Author: Eli Sand Date: To: exim-users Subject: [exim] understanding rate limiting
Was just reading up on the rate limiting stuff and noticed that in the
current docs, section 40.39 it has an example of code you can use, however
I'm wondering if it would actually work properly?
The code for acl_check_connect uses "ratelimit = 100 / 5m / strict /
noupdate" to check the ratelimit at connection time (using the default key
of $sender_host_address).
However, the code for acl_check_mail uses "ratelimit = 100 / 5m / strict /
per_cmd" which is specifying "per_cmd" as an additional option that isn't
present in the acl_check_connect code. Per section 40.35, second last
paragraph, it states that any change in the paramaters except for the limit
itself (first parameter) causes the ratelimit code to log different data.
Does this mean that the example code should have "per_cmd" specified in the
ratelimit setting in acl_check_connect to have it properly check the same
ratelimited data? As I am currently understanding it... the ratelimit check
in the acl_check_connect acl would never return true, since no data matching
that ratelimit line is updating data.