Re: [exim] Rate Limit Question

Top Page
Delete this message
Reply to this message
Author: Marc Perkel
Date:  
To: Exim Mailing List
Subject: Re: [exim] Rate Limit Question


Dean Brooks wrote:
> On Thu, Nov 02, 2006 at 03:03:15PM -0800, Marc Perkel wrote:
>
>
>> So - what you are saying is that if I do an ACL where I have a ratelimit
>> and there is another condition that fails then the ratelimit won't be
>> counted and I can extract the ratelimit info to a variable that I can
>> use in the next ACL?
>>
>
> Actually, it's funny you brought this up Marc, because I ran into a
> similar (but slightly different) issue for which I patched in a custom
> ${ratelimit:key} variable to extract the stored value of a ratelimit key.
>
> There's no problem, as others noted, in storing the ratelimit value
> in a variable for future ACL use for the same message.
>
> However, imagine a scenario where you want to increment a ratelimit
> counter every time a host issues a RCPT-TO to an invalid user, and
> then you want to test during a *future* connection whether they have
> exceeded this value to deny them access. You can't do it because
> testing has the unwanted side effect of incrementing the counter,
> which will cause inaccurate counts.
>
>


Actually this is EXACTLY what I intend to do. Someone suggested that I
could read the value into a variable but if I had a second condition
that deliberately failed that they counter wouldn't advance. I could
then read the stored variable in the next ACL.