Re: [Exim] Ruoter conditions

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Nico Erfurth
Date:  
À: Dan Egli
CC: Edgar Lovecraft, exim-users
Sujet: 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