Le 2023-03-31 08:51, Niels Kobschätzki via Exim-users a écrit :
> Hi,
> 
> I have set up a ratelimit for my users and also a whitelist-file.
> 
> The acl for the ratelimit looks like this:
> 
>   defer authenticated = *
>     ratelimit = 30 / 5m / strict / $authenticated_id
>     condition = 
> ${lookup{$sender_address}nwildlsearch{/usr/local/etc/exim/conf/ratelimit_whitelist}{no}{yes}}
>     log_message = Sender rate $sender_rate / $sender_rate_period 
> ($authenticated_id)
> 
> The /usr/local/etc/exim/conf/ratelimit_whitelist is just a file with a
> bunch of e-mail-addresses. For example "ni...@kobschaetzki.net"
> 
> I have now a user who sends mail from a mail-address with sub-addressing
> that looks like this:
> 
> bounce+123456-crm.lead-98...@domain.com
> 
> I tried:
> bounce*@domain.com and bounce.*@domain.com
> 
> Both do not match according to a test with "exim -bh"
> 
> What am I doing wrong? I thought that nwildlsearch can use wildcards and
> * and .* are wildcards to me.

I think you need to tell exim that it's a regular expression.
To do that, add a ^ at the beginning of the line.

-- 
## List details at https://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