[exim] ratelimit with constant "expiry" date

Top Page
Delete this message
Reply to this message
Author: Arkadiusz Miśkiewicz
Date:  
To: exim-users
Subject: [exim] ratelimit with constant "expiry" date

Hi.

Assume rules that do:

acl_smtp_connect:
deny
ratelimit = 15 / 2h / noupdate / strict / per_conn

acl_smtp_notquit:
warn ...
ratelimit = 15 / 2h / strict / per_conn


Now customer hits notquit for example 500 times, gets finally blocked by
acl_smtp_connect. Now it needs to wait ln(peakrate/maxrate) 2h periods (so
~7h) to get counter go below limit.

How I can get constant 2h period (after last ratelimit update for example) to
get counter zeroed while still keep counting real ratio (so can't drop
"strict") for log purposes?


ps. how current "average rage" is actually calculated? Don't see this in docs.
--
Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )