Re: [Exim] Ruoter conditions

Etusivu
Poista viesti
Vastaa
Lähettäjä: Nico Erfurth
Päiväys:  
Vastaanottaja: Dan Egli
Kopio: Edgar Lovecraft, exim-users
Aihe: 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