Re: [Exim] Ruoter conditions

Top Page
Delete this message
Reply to this message
Author: Nico Erfurth
Date:  
To: Dan Egli
CC: Edgar Lovecraft, exim-users
Subject: Re: [Exim] Ruoter conditions
Dan Egli wrote:

> I removed the quotes, verified all the \'s no effect.
>
> condition = ${if or { \
>                           {eq {$interface_port}{10025} {0}{1}}\
>                           {eq \
> {${lookup{$sender_address}lsearch{/etc/exim/amavis.bypass}{0}}} {0}}\
>                          }\
>                 }


You can't return values in subconditions, your expansion should look like:
${if or { \
      {eq {$interface_port}{10025}} \
      {eq {${lookup{$sender_address} \
             lsearch{/etc/exim/amavis.bypass}{1}} {1}} \
  }{0}{1}}


At least that's what I think you wanted to do.

Nico