Re: [exim] ACL filtering 3 dashes in host name

Góra strony
Delete this message
Reply to this message
Autor: Peter Bowyer
Data:  
Dla: exim users
Temat: Re: [exim] ACL filtering 3 dashes in host name
2010/1/26 Always Learning <exim.users@???>:
>
> Hi Chris,
>
>> That's because * on its own is not a valid regular expression. Try .* or
>> read "man pcre".
>
> Since I'm changing the Exim confg file from M$ Windoze 98se, I'll try
>
> .*-.*-.*-.* : .*adsl.* : .*dynamic.* : .*static.* : .*dial.*


You could, but you could also read the doc extract that Mike already
helpfully pasted for you:

> http://www.exim.org/exim-html-current/doc/html/spec_html/ch10.html#SECThoslispatnam
>
> "If a pattern starts with "*" the remainder of the item must match the
> end of the host name. For example, *.b.c matches all hosts whose names
> end in .b.c. This special simple form is provided because this is a very
> common requirement. Other kinds of wildcarding require the use of a
> regular expression."


PCRE-style regexs and the 'match' operator are what you need here.

Peter


--
Peter Bowyer
Email: peter@???
Follow me on Twitter: twitter.com/peeebeee