Re: [Exim] Flat-file wildcard lookup in an ACL condition

Top Page
Delete this message
Reply to this message
Author: Nico Erfurth
Date:  
To: Adam D. Barratt, Exim-users
Subject: Re: [Exim] Flat-file wildcard lookup in an ACL condition
Adam D. Barratt wrote:

> A ${lookup won't work, as the file doesn't contain keys with data. The most
> successful solution I've found so far was a combination of ${match and
> ${readfile (matching `.*${sender_helo_name}:.*' in the result of
> ${readfile{/etc/exim4/blocked/domains}{:}}), which works fine for the
> standard `domain1' entry, but obviously won't match `*.domain1'.
>
> Before I give up on the idea, does anyone have any suggestions as to how I
> might achieve this?
>
> (Yes, I know thou must not block on HELO, hence it being a `warn').


Have you tried the wildlsearch lookup?

condition = ${lookup {$sender_helo_name} wildlsearch \
                {/etc/exim4/blocked/domains} {1} {0}}


Nico


--
"Freiheit ist eine schöne Sache, aber nicht dann, wenn sie mit
Einsamkeit erkauft wird."
    [Bertrand Russell]