Re: [exim] LDAP and matching local_part, but different domai…

Top Page
Delete this message
Reply to this message
Author: Gavin Henry
Date:  
To: exim-users
Subject: Re: [exim] LDAP and matching local_part, but different domains?
I wasn't thinking about this correctly. I just ahd to change my ldap search to:

ldap:///ou=MailAliases,dc=suretecsystems,dc=com?suretecMailAliasMember?sub?(|(cn=${quote_ldap:$local_part})(cn=${quote_ldap:$local_part@$domain}))

Thanks.

On 27/11/2007, Gavin Henry <gavin.henry@???> wrote:
> Hi All,
>
> I have
>
> LDAP_ALIASES_URL =
> ldap:///cn=${quote_ldap:$local_part},ou=MailAliases,dc=suretecsystems,dc=com?suretecMailAliasMember?sub?
>
> and
>
> ldap_aliases:
>    driver = redirect
>    allow_fail
>    allow_defer
>    data = ${lookup ldapm {LDAP_ALIASES_URL} }
>    file_transport = address_file
>    directory_transport = address_directory
>    pipe_transport = address_pipe

>
>
> This has been running for years, all ok. But sometimes someone will
> send me an e-mail to:
>
> gavin.henry@???
>
> but I have an alias of
>
> gavin.henry@???
>
>
> so, as you can see any gavin.henry@ goes to the alias for the
> magicfx.co.uk address, as my correct address is
> ghenry@???
>
> How can I tune my ldap lookups (changing/adding the correct aliases in
> LDAP too) to handle:
>
> gavin.henry@???
> gavin.henry@???
>
> Thanks.
>
>
>
>
>
> --
> http://www.suretecsystems.com/services/openldap/
>



--
http://www.suretecsystems.com/services/openldap/