Re: [Exim] address rewrite with LDAP

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Michael Bramer
Date:  
À: exim-users
Sujet: Re: [Exim] address rewrite with LDAP
--
On Sat, Dec 14, 2002 at 11:33:00AM +0100, Joachim Wieland wrote:
> On Sat, Dec 14, 2002 at 12:13:55AM +0100, Michael Bramer wrote:
> > I make this:
> > *@domain.com       ${lookup{$1} ldapm{ldap::///ou=People,dc=mbnet?uid(mail=${quote_ldap:$1@???}){$value}fail}}@???

>
> > But this don't work... Maybe someone has a working config or a better
> > approach?!
>
> > I also try some address rewriteing in a ROUTER, but this don't work
> > also.
>
> Why don't you just redirect the message?
>
> Write a router that takes a message with your long address and redirects
> it to the short one. Set it up as the first router. Thereafter exim
> gets the short version and considers the short address again on all the
> routers. It will fail for the first router and you won't have to bother
> again about short and long addresses for all subsequent routers.


this is not the problem.

> Somethink like:
>
>
> long_to_short:
>    driver = redirect
>    check_local_user = false
>    verify = true
>    check_ancestor
>    data = ${lookup ... get short address ...}

               ^^^^^^^^^^^^
           The ldap-lookup is the problem. I don't find one, that
           work...


And I use exim 3.35 (debian woody). IMHO this exim don't have the
redirect driver.

Thanks

Gruss
Grisu
--
Michael Bramer  -  a Debian Linux Developer      http://www.debsupport.de
PGP: finger grisu@???  -- Linux Sysadmin   -- Use Debian Linux
Und mit doppelseitig bestrichenen Sandwiches baut man das
Perpetuum Mobile nach Murphy. -- Kristian Koehntopp in dasr
--
[ Content of type application/pgp-signature deleted ]
--