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

Top Page
Delete this message
Reply to this message
Author: Matthias Pitzl
Date:  
To: Marc Haber
CC: exim-users
Subject: Re: [exim] Question about conditions in routers - Exim 3.35
> How do you send the message to the script?
>
> Greetings
> Marc


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.

-Matthias