Re: [exim] Rate limiting CIDR networks

Top Page
Delete this message
Reply to this message
Author: Jeremy Harris
Date:  
To: exim-users
Subject: Re: [exim] Rate limiting CIDR networks
On 12/22/2009 11:38 PM, Darek M wrote:
> I was following some of the documentation, but some of the examples
> leave me with questions. For example
> (http://gd.tuwien.ac.at/.vhost/exim.org/exim-html-current/doc/html/spec_html/ch40.html#useratlim)
>
>       ratelimit = ${lookup {$sender_host_address} \
>                     cdb {DB/ratelimits.cdb} \
>                     {$value} {RATELIMIT} }

>
> Looks like my ticket, but I don't know whether RATELIMIT is a
> constant.


At a guess, he's using a macro there. Look at the spec for ratelimit
athttp://exim.org/exim-html-4.69/doc/html/spec_html/ch40.html#SECTratelimiting

> 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