Re: [Exim] rewriting

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Nikolaus Filus
Fecha:  
A: exim-users
Asunto: Re: [Exim] rewriting
On Tue, Oct 26, 1999 at 09:27:00AM +0100, Philip Hazel wrote:
>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


>> > 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


What a pitty - I just tested it out by myself :(

>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.


Assume I have either only local adresses or extern adresses, is there really
no chance to test for the router, director or protocol? I tried also
$received_protocol and want to combine it with $receipents_count in the next
time ...

Nikolaus