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

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Oliver Egginger
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [Exim] LDAP lookup in rewrite rule (Exim 3.33)
Thank you very much indeed for your patience.
It's working now.
:-)

regards
oliver

Only for the archive:
I used this syntax:

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

It looks up the complet adress in the LDAP-Directory if it found a match it replaces the original adress by the value which was received from the directory.
background:
We got alias names for mailman lists.
If someone send a mails by an aliases to such lists, mailman hold it back because of an implicit adress.
This rewrite rule fix this, without to have to change something within mailmans configuration.






On Friday, 12. Apr, Philip Hazel wrote :
> On Fri, 12 Apr 2002, Oliver Egginger wrote:
> > Do you mean
> > "${lookup ldap {ldap:://mailserv
> >                           ^^^
> > It doesn't works, alas.
> > Neither in "exim -be" nor in Exim self.

>
> Well, it won't work in "exim -be", because you aren't giving a list in
> that case.
>
> > Quoting didn't work too and I can't
>
> To include a colon in a list you must either
>
> (a) Double it
> (b) Change the list separator character, e.g.
>
> something = <, a, b, c
>
> uses , as the list separator.