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?(&([EMAIL
>  PROTECTED])(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

--
## 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