Re: [Exim] rewriting

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: exim-users
Betreff: Re: [Exim] rewriting
On Mon, 25 Oct 1999, Peter Radcliffe wrote:

> Nikolaus Filus <NFilus@???> probably said:
> > *@*     ${if {match { ${delivery} {local}}} \
> >                 {lookup {$1} lsearch {/etc/userdb} {$value} fail} } Ff

> >
> > # /etc/rc.d/init.d/exim.init start
> > Starting exim: exim 1999-10-25 18:57:45 Exim configuration error
> > unknown rewrite flag character ({) in line 523
> >
> > Is it possible to use this in the rewrite rules? Who knows an solution?
>
> It's taking the { as the next field in the white space seperated
> rewrite rule. You need to put quotes around the ${if ... }" Ff.
> I got bitten by this some time ago :)


However, there is no such variable as $delivery. You cannot test a
message for "local delivery" as it may have many recipients, some of
which are local and some of which are not. Rewriting applies to the
whole message, and is done once, on arrival, before any consideration of
how the message is to be delivered.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Government Policy: If it ain't broke, fix it till it is.