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.
-- 
<[EMAIL PROTECTED]>   <[EMAIL PROTECTED]>   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}}
-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to