[Exim] rewriting

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Alexander Koch
Datum:  
To: exim-users
Betreff: [Exim] rewriting
After I have come to think Exim rewriting things just rock,
I have a problem I cannot solve, it seems.

I have several subdomains, namely (.*).bwev.org and I want
$1 be looked up in a plain file (lsearch). I have a
smartuser director here that won't work.

|subdomain:
|  driver        = smartuser
|  domains       = "*.bwev.org"
|  new_address  = ${if match{ ${domain} } {(.*)\.bwev\.org} \
|     { ${lookup {$1} lsearch {/etc/exim/subdomains} {$value} } }
|  no_more


Now I am not sure how to do this properly. Exim thinks this
is an "else" string. I am sure I am doing something stupid
here. Hints welcome.

Thanks,
Alexander

--
Alexander Koch - <>< - WWJD - aka Efraim - PGP 0xE7694969 - ARGH-RIPE