[Exim] LDAP lookup in rewrite rule (Exim 3.33)

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Oliver Egginger
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [Exim] LDAP lookup in rewrite rule (Exim 3.33)
**** This was: [Exim] Exim3 and ldap lookups in rewrite gives unknown rewriteflag character ({)

Philip Hazel wrote yesterday:
> You are missing a space before the \ in the first line.


>> I have the feeling that it has something to do with blanks ...


> Correct. :-)


whoops, yes right, thank you.
I have corret this and the configuration error went away.
Now I'm sorry to say that I'am still unable to get it started.
In few words what I have done:
I expanded the following string with "exim -be"

"${lookup ldap {ldap://mailserv.fh-giessen.de/ou=groups,o=FH%20Giessen,c=DE?cn?sub?(mail=testlist*)}{$value@???}fail}"

It is working pretty good I receive the expected output.
Next I set the headers_rewrite option of one of my transports using exactly the same
lookup definition which I had tested before (see above).
It looks like this (I keep it now simple in one line):
headers_rewrite = *@*fh.giesssen.de "${lookup ldap {ldap://mailserv.fh-giessen.de/ou=groups,o=FH%20Giessen,c=DE?cn?sub?(mail=testlist*)}{$value@???}fail}" t

I don't get a configuration error when I restart Exim, but when I try to deliver a mail by the use of this director
Exim writes the following error output to his mainlog:
2002-04-10 08:49:50 16vBrD-000818-00 failed to open //mailserv.fh-giessen.de/ou=groups,o=FH%20Giessen,c=DE?cn?sub?(mail=testlist*)}{$value@???}fail}" when checking for Oliver.Egginger@??? in "//mailserv.fh-giessen.de/ou=groups,o=FH%20Giessen,c=DE?cn?sub?(mail=testlist*)}{$value@???}fail}"": No such file or directory
2002-04-10 08:49:50 16vBrD-000818-00 failed to read delivery status for testlist-dv@??? from delivery subprocess
2002-04-10 08:49:50 16vBrD-000818-00 pipe transport process returned non-zero status 0x0100: exit code 1
2002-04-10 08:49:50 16vBrD-000818-00 == testlist-dv@??? <testlist-dv@???> T=list_transport defer (-1)
2002-04-10 08:49:50 16vBrD-000818-00 Frozen

I suppose that the Exim parser is working under different terms in this context (by comparison to "exim -be").
Stupidly I havn't any practical idea at the moment.
Could it be that this have something to do with ldap quoting ?
I did some tests with "quote_ldap" but with no success.

- oliver



--
Oliver Egginger
FH Giessen-Friedberg
DV-Zentrum
Wiesenstrasse 14
35390 Giessen
Tel. +49 641 309-1283
Fax +49 641 309-2908
Mail: Oliver.Egginger@???


*************************************************************************
Die aktuellen Sprechzeiten des DV-Zentrums für
E-Mail-Angelegenheiten finden Sie unter:
http://www.fh-giessen.de/WEB_NADM/dvz/personen.shtml
*************************************************************************