Re: [Exim] Re-write Question

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Philip Hazel
Data:  
Para: Kai Henningsen
CC: exim-users
Asunto: Re: [Exim] Re-write Question
On 5 Aug 1999, Kai Henningsen wrote:

> Then, have a director like this:
>
> domainusers:
> driver = smartuser
> domains = ^(.*).mydomain.com
> new_address = $1@???


That won't work. There's no connection that ensures the result of the
regex you used for domains will be available for use in new_address. You
might after all have used regexs for other things as well. You need

new_address = ${if match{$domain}{^(.)\\.mydomain.com\$}{$1@???}fail}

and if you do that, then you can miss out the "domains" setting.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.