Hi,
On Tue, 26 Jan 2010, Always Learning wrote:
>> One way is to use regular expressions:
>>
>> http://www.exim.org/exim-html-current/doc/html/spec_html/ch08.html
>
> It does not work when I use
>
> hosts = ^*-*-*-*
>
> hosts = ^*-*-*-*$
>
> The panic file accumulates error messages.
That's because * on its own is not a valid regular expression. Try .* or
read "man pcre".
> Further along in the same ACL
>
> defer message = [F21] Anti-Spam Protection. Please retry in a
> few minutes.
> domains = aaaa.bbbb
> !hosts = *.uk : *.com : *.net : *.org
>
> works perfectly.
>
> If I can trap and use *.uk why can't I also trap and use *-*-*-* ?
Because it doesn't work that way. Wildcards only work in very specific
circumstances because they are implemented using a performance
optimisation that limits their usefulness. For all other cases, like this
one, use a regular expression. See:
http://www.exim.org/exim-html-current/doc/html/spec_html/ch10.html#SECTmixwilhos
Cheers, Chris.
--
_ ___ __ _
/ __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |