Re: [Exim] LDAP alias and receiver-verify

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Patrick von der Hagen
CC: exim-users
Sujet: Re: [Exim] LDAP alias and receiver-verify
On Sun, 4 Mar 2001, Patrick von der Hagen wrote:

> I would like to use "receiver_verify" but my list of valid adresses is
> stored in LDAP. Well, perhaps I have some kind of "blind spot" but I can't
> find out or imagine how to tell "receiver_verify" to do a ldap-lookup.


receiver_verify runs you directors/routers. If they do an LDAP lookup,
then receiver_verify gets it automatically.

> And another BUT.
> Let's say I have an entry like "cn=hagen, delivery=hagen@???".
> Now server1 receives mail for hagen, does a ldap-lookup and sends the mail
> to server2. Nice.
> Now I am on server2 and receive mail for hagen@domain. The alias-director is
> used and a ldap-lookup yields "hagen@???". Then the
> adress-reception starts again and this time looks for information about
> "hagen@???". Again, alias-director, ldap-lookup yields
> "hagen@???". Third run, the alias-director realises that it
> already looked up "hagen@???" and skips, then .forward is checked
> and finaly local delivery is invoked.
>
> Well, the result is absolutely ok. But I don't like the design 100%. IMHO
> there is one ldap-lookup more than really necessary, but it will probably be
> cached. Though I don't have much traffic I wonder about performance-impacts
> and if it could somehow be skipped.


Use new_director on your aliasing director.

> BTW, there is one specific problem left. I run some mailinglists on server1,
> so in ldap I would have to have "list->list@server1" but on server1 I would
> run into problems. I would need an alias like "list: shell-command".
> Right now I am not sure if it was possible to have two alias-directors on
> server1? The first doing ldap and the second giving the shell-command?
> The ldap-alias-director would be invoked once, pointing back to server1,
> then it would be skipped and the second alias-director would yield the
> shell-invocation?


There is no reason why not. You can have as many aliasfile directors as
you want.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.