Re: [Exim] LDAP and the localuser router

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Rodney Arne Karlsen
Fecha:  
A: exim-users
Asunto: Re: [Exim] LDAP and the localuser router
Hi all

Thanks for the responses. Below is the local user director I found at
http://www.bastard.net/~kos/mailrouter/sample-configure Most of the
file I have been able to "translate" though this one is bugging me.

localuser:
driver = aliasfile
transport = bsd_delivery
search_type = ldap
query = "ldap:///uid=$local_part,dc=$domain,o=top?uid"
#user = ${lookup ldap{ldap:///uid=${local_part},dc=${domain},o=top?uidNumber}{$value}fail}
#group = ${lookup ldap{ldap:///uid=${local_part},dc=${domain},o=top?gidNumber}{$value}fail}
user = mail
group = mail

I tryed converting it to

localuser:
driver = accept
transport = maildir_delivery
# search_type = ldap
data = ${lookup ldap{ldap:///uid=$local_part,dc=$domain,o=top?uid}}
#user = ${lookup
ldap{ldap:///uid=${local_part},dc=${domain},o=top?uidNumber}{$value}fail}
#group = ${lookup
ldap{ldap:///uid=${local_part},dc=${domain},o=top?gidNumber}{$value}fail}
user = mail
group = mail

before I read the manual on the accept router.

All my servers have been using the usual /var/spool/mail delivery system
in the past so my atempt to adapt to use maildir may also be broken.

Derrick, if you have time, I would love to take a look at your config. I
am always wiling look at new ways of doing things to improve the
workings of my systems.

Thanks

Rodney Arne Karlsen


Philip Hazel wrote:

>On Thu, 4 Jul 2002, Rodney Arne Karlsen wrote:
>
>
>
>>I notice that in the v3 configs you could use a query to verify that the
>>user is local, but in v4 this does not seem posable.
>>
>>
>
>An LDAP query? That should be as possible in v4 as it was in v3.
>
>
>
>>Am I just not finding the right part of the manual or have we lost a
>>feature in the transition from 3 to 4?
>>
>>
>
>I don't think so. If you post your v3 director, I'm sure somebody will
>be able to turn it into a v4 router for you.
>
>
>
>







----------------------------------
EMAIL DISCLAIMER:
WARNING:
Any unauthorised use or interception of this email is illegal. If this email
is not intended for you, you may not copy, distribute nor disclose the contents
to anyone. Save for bona fide company matters, Rigel Services cc t/a Compu-Doc
and Compu-Doc On-Line does not accept any responsibility for the opinions
expressed in this email.

For further details please see:
http://www.compudoc.co.za/emaildisclaimer.php
----------------------------------