Re: [exim] - Need help on ACL statement (subcondition)

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Jakob Hirsch
Fecha:  
A: Laurent RISSE
Cc: exim-users
Asunto: Re: [exim] - Need help on ACL statement (subcondition)
Quoting Laurent RISSE:

> ${if or {
>         {
>         ${if and {{eq {${lc:$sender_helo_name}}{string2}} 
> {eq{$sender_host_address}{XX.XX.XX.XX}}} {true}{false}
>         }


${if... returns a string, but what you need is a condition. Just remove
the interior ${if...s, like that:

${if or {
  { and {
    {eq {2} {2}}
    {eq {2} {2}}
  } }
  { or {
    { eq {1} {2} }
    { eq {3} {4} }
  } }
} }



don't forget the trailing backslashes at line breaks.