Re: [exim] Rate limiting CIDR networks

Góra strony
Delete this message
Reply to this message
Autor: Darek M
Data:  
Dla: exim-users
Temat: Re: [exim] Rate limiting CIDR networks
>>  Are $sender_host_address and $value returned from the
>> "lookup" search?
>
> $value is.  $sender_host_address is not.
> http://exim.org/exim-html-4.69/doc/html/spec_html/ch11.html#SECTexpop
>
> Cheers,
>   - Jeremy


Thanks, the pointers helped me figure it out. Below is my setup for
anyone that might be looking for similar.

In /etc/exim/allowed_to_relay:
2.3.4.0/29: 2000 / 24h
6.7.8.0/24: 10000 / 24h

In /etc/exim/exim.conf:

 acl_check_rcpt:
   ...
   defer ratelimit = ${lookup {$sender_host_address} iplsearch
{/etc/exim/allowed_to_relay} {$value} }
           message = Sender rate exceeds $sender_rate_limit messages
per $sender_rate_period


- Darek