Hi,

G.M.Robins <[email protected]> (Fr 31 Jul 2009 14:24:49 CEST):
> Hi,
> 
> I can't seem to find much information on rewriting incoming messages using an 
> ldap lookup. Is it possible to use ldap as a source for rewriting?
> 
> For example the following rewrite rule
> 
> *[email protected] ${lookup ldap{LDAPBASEURL 
> ldap:///dc=example,dc=com?proxyAddress=smtp?sub?(&(objectClass=Person)(mail=${local_pa...@${domain}))}{$value}fail}
> 
> Generates the following error:
> 
> 2009-07-31 13:10:41 Exim configuration error in line 1038 of 
> /usr/exim/configure:
>   unknown rewrite flag character 'l' (could be missing quotes round 
> replacement item)
> 
> If tried various types of quoting but get similar problems. Is this actually 
> possible?

Did you try to quote the entire „${lookup...fail}” part?
*[email protected] \
    "${lookup ldap{LDAPBASEURL 
ldap:///dc=example,dc=com?proxyAddress=smtp?sub?(&(objectClass=Person)(mail=${local_pa...@${domain}))}{$value}fail}"

-- 
Heiko

Attachment: signature.asc
Description: Digital signature

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to