Re: [exim] problem with condition an lookup

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Dave Evans
Date:  
À: exim-users
Sujet: Re: [exim] problem with condition an lookup
On Thu, Aug 27, 2009 at 10:36:15AM +0200, Pascal Bourdais wrote:
>
> Hi list,
>
> I have a problem with this condition in a router.
>
> condition = and { \
>               { ${lookup ldap {ldap:///LDAP_BIND?mail?sub?(&LDAP_COND(departmentNumber=DOMAIN))}{true}{false}} } \
>               { ! def:h_X-From71:} } \
>             }


Your condition will always end up starting with "and {", plus some other
stuff, whereas what you need is something like "" or "0" or "no" or "false".

See http://exim.org/exim-html-current/doc/html/spec_html/ch15.html#id560622

--
Dave Evans
http://djce.org.uk/
http://djce.org.uk/pgpkey