Hi Grisu,
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.
Somethink like:
long_to_short:
driver = redirect
check_local_user = false
verify = true
check_ancestor
data = ${lookup ... get short address ...}
If the expansion of data= is forced to fail or results in an empty
string, the router will decline.
Joachim
--
*****PGP key available - send e-mail request***** - ICQ: 37225940
People with narrow minds usually have broad tongues.