On Fri, 15 Mar 2002, Richard F.Rebel wrote:
> ^(.*)@(.*)$ "${lookup mysql{select dst_uri from redirects where
> uri_scheme_path='${quote_mysql:$0@$1}'}{$value}{$0@$1}}" ST
>
> Which when I run tests I get:
>
> failed to expand "^(.*)@(.*)$" while checking for SMTP rewriting: $ not
> followed by letter, digit, or {
You are using Exim 4. In Exim 4 the pattern is an address-list item. In
Exim 4, address lists are expanded. Try
\N^(.*)@(.*)$\N "${lookup...
instead, to stop the expander trying to work on it. (Actually, since
your pattern ends with .* you don't really need the $ at all.)
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.