Re: [exim] aliases /exim/ldap

Página Inicial
Delete this message
Reply to this message
Autor: James Davis
Data:  
Para: azzouz
CC: exim-users
Assunto: Re: [exim] aliases /exim/ldap
azzouz wrote:

> I want to store aliases informations in ldap in order to view then from
> a client mail and eventualy to modify then. Is it possible ? Some have
> done it ?


I use the following style router, note that the LDAP schema used is for
GOsa, you'll probably want to adjust it to fit yours.

gosa_aliases:
        debug_print = "R: gosa_aliases for $local_part@$domain"
        driver = redirect
        domains = dsearch;/etc/exim4/virtual
        allow_fail
        allow_defer
        data = ${lookup ldap \
                        {ldap://localhost/dc=foo,dc=com?mail?sub?\


(&(|(mail=$local_part@$domain)(gosaMailAlternateAddress=$local_part@$domain))\
                                (objectClass=gosaMailAccount)\
                                )\
                        }\
                }


Regards,

James

--
http://www.freecharity.org.uk/ - Free hosting for charities
http://jamesd.ukgeeks.co.uk/