Re: [exim] Question about conditions in routers - Exim 3.35

Top Page
Delete this message
Reply to this message
Author: Marc Haber
Date:  
To: exim-users
Subject: Re: [exim] Question about conditions in routers - Exim 3.35
On Fri, 11 Mar 2005 15:02:13 +0100 (MET), "Matthias Pitzl"
<M.PITZL@???> wrote:
>At moment i have following configuration:
>crypt_pipe:
> driver = pipe
> user = root
> command = "/usr/scripts/bin/crypter.pl $pipe_addresses $sender_address"
>
>end
>
>crypt_router:
> driver = domainlist
> transport = crypt_pipe
> condition = {if def:header_X-crypt: {0}{1}}
> route_list = "* localhost byname"
>
>smarthost:
> driver = domainlist
> transport = remote_smtp
> route_list = "* smarthost byname"
>
>end
>
>When a mail arrives, it gets piped into the script and with "$pipe_addresses
>$sender_address" i get the recipients' address and the sender's address.
>This part works so far.
>In the script, i do some stuff. At moment, i just add the new header field
>"X-crypt: yes" into the mail and then i write it back to exim.
>At this case the condition in the router should evalute to false and the
>smarthost router should be used instead.


I would suggest using the old -oMr trick for re-delivery. That way,
you don't have to fiddle with headers.

Greetings
Marc

-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber         |   " Questions are the         | Mailadresse im Header
Mannheim, Germany  |     Beginning of Wisdom "     | http://www.zugschlus.de/
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834