Re: [Exim] address rewrite with LDAP

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Tony Earnshaw
Data:  
Para: James P. Roberts
CC: Michael Bramer, exim-users
Assunto: Re: [Exim] address rewrite with LDAP
lør, 2002-12-14 kl. 14:23 skrev James P. Roberts:

> Ummm... Isn't this what /etc/aliases is for?


Yers, but this is ldap.
_____

Class: "It works for me."
Use: Everyday
Accuracy: May need some working on, but the idea is sound.
_____

Openldap:
include /usr/local/etc/openldap/schema/misc.schema
_____

objectClass: inetLocalMailRecipient
mail: M.Bramer@???
mailRoutingAddress: mb@???
_____

system_aliases:
  driver = redirect
  allow_fail
  allow_defer
  data  = ${lookup ldapm {ldaps://localhost/\
    o=domain.com?mailRoutingAddress?sub?\
(&(objectClass=inetLocalMailRecipient)(mailLocalAddress=${quote_ldap:$local_part@$domain}))\
    }\
    {$value} fail }
# user = exim
  file_transport = address_file
  pipe_transport = address_pipe
_____


Best,

Tony

--

Tony Earnshaw

When all's said and done ...
there's nothing left to say or do.

e-post:        tonni@???
www:        http://www.billy.demon.nl