Re: [Exim] Forwarding via LDAP lookup

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Barry Pederson
Fecha:  
Cc: exim-users
Asunto: Re: [Exim] Forwarding via LDAP lookup
Philip Hazel wrote:
>
> On Mon, 20 Aug 2001, Dave Lewney wrote:
>
> > (I suspect the answer is no, but ...)
> > Is it possible to achieve forwarding via an LDAP lookup for an attribute
> > that would hold the contents of a .forward file ?
>
> The answer is yes! Check out the "data" option of the forwardfile
> director (new in release 3.30).


I don't know anything about this new data option, but under older exims
you could have a director like:

----------------
ldap_forward:
driver = aliasfile
search_type = ldap
query
="ldap:///o=Foo,c=US?mailforwardingaddress?sub?(mail=$local_part@$domain)"

----------------

(that last "query" line may have wrapped)
to lookup a "mailforwardingaddress" attribute based on an entry's "mail"
attribute.

    Barry