Re: [exim] delay with ratelimit

Pàgina inicial
Delete this message
Reply to this message
Autor: Tony Finch
Data:  
A: Kerstin Espey
CC: exim-users
Assumpte: 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}}