On 2007-12-20 at 16:44 -0600, Matt wrote:
> I imagine something like this would work?

So would I, but I've not gotten around to actually playing with rate
limiting (since these days I just have a personal server running Exim,
so it's not such an issue).

> # Slow down fast senders; note the need to truncate $sender_rate
> # at the decimal point.
> warn ratelimit = 100 / 1h / per_rcpt / strict
>         delay = ${eval: ${sg{$sender_rate}{[.].*}{}} - $sender_rate_limit }s
>         log_message = Sender rate $sender_rate excedes limit, delayed
> 
> Is there a way to include the number of seconds delayed in each log entry?

Yes; you repeat the string expansion used for setting delay.  :^P

-Phil

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to