Re: [Exim] Ruoter conditions

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Nico Erfurth
Data:  
Para: Dan Egli
CC: Edgar Lovecraft, exim-users
Asunto: 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