Re: [Exim] Putting aliases into LDAP?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Tony Earnshaw
Fecha:  
A: exim-users
Asunto: Re: [Exim] Putting aliases into LDAP?
tir, 2003-02-04 kl. 21:44 skrev Derek Simkowiak:

>     I'm looking for an example config of putting aliases into LDAP.
> Specifically, I want to know about aliases that forward to several
> different email addresses (either local, not local, or "virtual").


Under Exim 4.12 / Openldap 2.1.10 I have the following ldif for system
aliases, i.e. those normally in /etc/aliases. The same principal works
for *anything* in Exim, includin virtual domains, mail forwarding etc.
etc. Just choose/combine your attributes according to what you want and
adapt a separate router for each whatever-it-is-you-want. I even have it
working for me for AUTH PLAIN and AUTH CRAM-MD5.

dn: cn=exim,ou=mailaliases,ou=groups,dc=example,dc=org
objectClass: top
objectClass: person
objectClass: inetLocalMailRecipient
structuralObjectClass: person
creatorsName: cn=Admin,dc=billy,dc=demon,dc=nlexample,dc=org
mailRoutingAddress: tonye@???
sn: exim
cn: exim
mailHost: localhost
mailLocalAddress: bin@???
mailLocalAddress: daemon@???
mailLocalAddress: adm@???
mailLocalAddress: admin@???
mailLocalAddress: lp@???
<snip>

Following router:

system_aliases:
  driver = redirect
  allow_fail
  allow_defer
  data   = ${lookup ldapm \
    {user="cn=exim,ou=services,ou=groups,dc=example,dc=org" pass=exim \
    ldaps://localhost/\
    ou=groups,dc=example,dc=org?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