Re: [exim] delay with ratelimit

Top Page
Delete this message
Reply to this message
Author: Tony Finch
Date:  
To: Kerstin Espey
CC: exim-users
Subject: Re: [exim] delay with ratelimit
On Mon, 23 Jan 2006, Kerstin Espey wrote:
>
> # Slow down fast senders
> warn
>   ratelimit = 100 / 1h / per_rcpt / strict
>   delay     = ${eval: $sender_rate - $sender_rate_limit }s

>
> I can't get this working, because $sender_rate is not an integer but something
> like 5.9, which does not work at my side:


Er, yes, that's probably a documentation bug. Try wrapping $sender_rate
like this
    ${sg {$sender_rate_limit} {[.].*} {} }


Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}