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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Jakob Hirsch
Dátum:  
Címzett: Laurent RISSE
CC: exim-users
Tárgy: 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.