RE: [exim] Problems with sieve filters and LDAP virtual user…

Top Page
Delete this message
Reply to this message
Author: Andrew Tolboe
Date:  
To: exim-users
Subject: RE: [exim] Problems with sieve filters and LDAP virtual users
Javier Calahorra Novillo wrote:
>
> userforward:
> driver = redirect
> allow_filter
> condition = ${if eq {}{${lookup ldap {ldap://192.168.45.27/ou=usuarios,dc=xxxx,dc=es?mailMessageStore?sub?(&(mail=${local_part}@${domain})(objectclass=person))}}}{no}{yes}}
> user = vmail
> group = vmail
> require_files = $home/.forward
> file = $home/.forward
> no_verify
> directory_transport = ldap_delivery
>
> Going over Exim logs only shows us that all messages continue being
> processed by the ldapuser router, and never by userforward ¿Has anyone
> been able to make this kind of filters run with LDAP virtual users?
> ¿Any ideas about what we are doing wrong?


I'm doing something similar. Note I had to use my own schema to support this.

userforward:
driver = redirect
check_local_user
data = ${lookup ldap {user="auser" pass="apass" ldaps:///uid=${quote_ldap_dn:$local_part},ou=People,dc=example,dc=com?mailforwardaddress?base?}}
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply

This works like a peach.

Andrew