Re: [Exim] string expansion puzzle

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Nico Erfurth
Date:  
À: Jack Ziegler
CC: exim-users
Sujet: Re: [Exim] string expansion puzzle
Jack Ziegler wrote:
> Hello,
>
> I'm relatively new to Exim. I'm trying to implement a router that will
> accept a message based on whether
>
> 1) SpamAssassin has flagged it as spam, and
>
> 2) the recipient has opted into special handling of suspected spam by
> setting a flag in our LDAP directory.
>
> Here's the code:
>
> # # # #
> graymail_router:
> no_verify
> condition = "${if and { {def:header_X-Spam-Flag:} \
> {eq {${lookup ldap {user="cn=yyyyyyyy,o=sonoma,o=edu" pass=xxxxxx ldap:///\
> ou=people,o=sonoma,o=edu?grayMailFlag?sub?(&(objectClass=mailUser)\
> (uid=${quote_ldap:$local_part}))}}}{True}}} {1}{0}}"


Hint: You really should reformat this condition to look a little less
like linenoise ;)

It should work if you escape the doublequotes inside of your
ldap-lookup, or remove the doublequotes around them.

Nico