Re: [exim] Condition in router

Top Page
Delete this message
Reply to this message
Author: Dave Evans
Date:  
To: exim-users
Subject: Re: [exim] Condition in router
On Mon, Mar 03, 2008 at 07:01:29PM +0100, Pawel Rutkowski wrote:
>         I have problem to construct condition in my router:
>  condition = "${if and { \
>     {!def:h_X-Spam-Flag:} \
>     {!eq {$received_protocol}{spam-scanned}} \
>     {!eq {$received_protocol}{local}} \
>     {exists{/etc/exim/spam/$domain/user_prefs}} \
> } {1}{0}}"


OK, so you have a condition, which is a logical "and" of four other
conditions ...

> but I need to add:
> ${lookup{$local_part@$domain}lsearch{/etc/exim/direct/$domain}}


and you have a string expansion which does a lookup for some reason ...

> where I should put it?


I don't know - what do you want to do with that lookup? Test that it's not
blank? That it gives some particular value? Something else?

--
Dave Evans
http://djce.org.uk/
http://djce.org.uk/pgpkey