Re: [exim] nwildlsearch does not match

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: nb
Fecha:  
A: Niels Kobschätzki via Exim-users
Asunto: Re: [exim] nwildlsearch does not match
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 "niels@???"
>
> I have now a user who sends mail from a mail-address with sub-addressing
> that looks like this:
>
> bounce+123456-crm.lead-98765@???
>
> I tried:
> bounce*@??? and bounce.*@???
>
> 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.