Re: [exim] lookup in and

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Jakob Hirsch
日付:  
To: exim-users
題目: Re: [exim] lookup in and
Klaus Ethgen, 2011-12-01 16:14:

> I stumble over the problem that "lookup" is not possible inside of
> an "and" construct.

...
> ${if and{{={25}{$received_port}}{lookup ldap{...}}}}


That's because "and" requires conditions, and a lookup is not a
condition. What does your lookup return, anyway? You can of course
check the result of your lookup:

${if and {{={25}{$received_port}} {ne{}{${lookup ldap{...}}}}}}