Re: [exim] Ratelimit Spam

Top Page
Delete this message
Reply to this message
Author: Phil Pennock
Date:  
To: Matt
CC: exim-users
Subject: Re: [exim] Ratelimit Spam
On 2007-12-20 at 16:23 -0600, Matt wrote:
> # 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

>
> Is there a way I can get it to add meaning full log entries so I can
> tell when it kicks in and what its doing?


Sure; it's a matter of knowing what Exim calls what you're looking for.

The Exim Specification
40. Access control lists
    40.19. ACL modifiers


[...]
log_message = <text>

    This modifier sets up a message that is used as part of the log message if
    the ACL denies access or a warn statement's conditions are true. For
    example:
[...]


"ratelimit" is an ACL condition whose true/false sense is the obvious
one (and documented in: 40.35 Rate limiting incoming messages).

Regards,
-Phil