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

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Tony Finch
Ημερομηνία:  
Προς: ashkan
Υ/ο: Exim-users
Αντικείμενο: 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}}