Re: [exim] LDAP lookup inside 'central' filter

Top Page
Delete this message
Reply to this message
Author: Tony Finch
Date:  
To: ashkan
CC: Exim-users
Subject: Re: [exim] LDAP lookup inside 'central' filter
On Wed, 5 Oct 2005, ashkan wrote:

> Does anyone know if its possible to do LDAP lookups directly in a
> system_filter or similar (such as a central_filter using the redirect
> transport)?


Yes, just use ${lookup. The forbid_filter_lookup option is false by
default.

> Then I want to have something like the following inside /etc/exim/filter1
>
> >group = ${lookup ldapm {ldap://localhost:389/ou=people,dc=testdomain,dc=com?ou?(mail=${local_­part})}{$value}
> >
> >if $group is "marketing" then save /dev/null endif


You can't invent your own variables in a filter.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}