Re: [Exim] Ruoter conditions

Top Pagina
Delete this message
Reply to this message
Auteur: Nico Erfurth
Datum:  
Aan: Dan Egli
CC: Edgar Lovecraft, exim-users
Onderwerp: 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