[exim] LDAP Rewrite. Can it be done!

Startseite
Nachricht löschen
Nachricht beantworten
Autor: G M Robins
Datum:  
To: 'exim-users@exim.org'
Betreff: [exim] LDAP Rewrite. Can it be done!
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

*@exchange.example.com ${lookup ldap{LDAPBASEURL ldap:///dc=example,dc=com?proxyAddress=smtp?sub?(&(objectClass=Person)(mail=${local_part}@${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?


Regards,


Gareth



________________________________

The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302).