Re: [exim] virtual aliases and ldap

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Nigel Wade
Date:  
À: exim-users
Sujet: Re: [exim] virtual aliases and ldap
On Thursday 04 Aug 2005 16:18, Jonas Meurer wrote:
> hello,
>
> my exim4 has routers configured to use virtual mail accounts that are
> stored in ldap, and i would like to add support for virtual mail aliases
> in ldap too.
>
> currently the config includes the following:
>


[snip]

>
> i already tried the following router, but it doesn't work:
> ---snip routers---
> virtual_ldap_aliases:
> debug_print = "R: virtual_ldap_aliases for $local_part@$domain"
> driver = redirect
> allow_defer
> allow_fail
> condition = ${if match
> {${extract{uid}{$address_data}}}{$local_part@$domain} {1}{0}} data =
> ${extract{mailAlias}{$address_data}}


Shouldn't that be:

${extract{mailAlternateAddress}{$address_data}}

mailAlias is the class, mailAlternateAddress is the field.

> an example alias entry in ldap looks like follows:
> dn:
> uid=alias@???,ou=aliases,ou=mail,ou=accounts,dc=resivo,dc=mejo,
>dc=net objectClass: inetOrgPerson
>         objectClass: mailAlias
>         uid: alias@???
>         sn: alias
>         cn: alias
>         mailAlternateAddress: jonas@???

>
> where is my mistake?





-- 
Nigel Wade, System Administrator, Space Plasma Physics Group,
            University of Leicester, Leicester, LE1 7RH, UK 
E-mail :    nmw@??? 
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555