Re: [Exim] address rewrite with LDAP

Góra strony
Delete this message
Reply to this message
Autor: Tony Earnshaw
Data:  
Dla: James P. Roberts
CC: Michael Bramer, exim-users
Temat: 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