List Info

Thread: Re: Maildrop & LDAP




Re: Maildrop & LDAP
country flaguser name
United States
2007-03-28 05:13:45
Sam Varshavchik wrote:
> Daniel L. Miller writes:
>
>> Sam Varshavchik wrote:
>>> Daniel L. Miller writes:
>>>
>>>> In Postfix, I can define the mail root as
/var/mail, and I can use 
>>>> the LDAP filter to return a result of
"/<domain>/<user>/" by just 
>>>> processing the mail field of "userdomain".  So, at least for 
>>>> Postfix, I don't have to actually store
each user's mail folder in 
>>>> the LDAP database - it gets generated from
the mail address and the 
>>>> defined root folder.
>>>>
>>>> Can I do this using Maildrop?  If it makes
any difference, I am 
>>>> running on an Ubuntu/Debian server.
>>>
>>> In authldaprc, LDAP_MAILROOT can be set to a
fixed prefix that gets 
>>> prepended to LDAP_HOMEDIR, however this defines
the account's home 
>>> directory, not maildir.  maildrop expects to
deliver to 
>>> $HOME/Maildir by default, but you should be
able to manually 
>>> override it by following the instructions in
maildrop's INSTALL.
>> I don't see any way to perform string manipulations
or specify constant
>> values in authldaprc - it looks like everything is
just LDAP=Authlib
>
> LDAP_MAILROOT is a fixed string that gets prepended to
the 
> LDAP_HOMEDIR LDAP attribute's value.
Yes - I've already set that to /var/mail.  The problem is,
given a value 
of "userdomain.com" in a LDAP mail field -
how to convert that to 
"/domain.com/user" for the LDAP_HOMEDIR.

-- 
Daniel


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Courier-maildrop mailing list
Courier-maildroplists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courie
r-maildrop

Re: Maildrop & LDAP
country flaguser name
United States
2007-03-28 06:09:47
Daniel L. Miller writes:

> Sam Varshavchik wrote:
>> Daniel L. Miller writes:
>>
>>> Sam Varshavchik wrote:
>>>> Daniel L. Miller writes:
>>>>
>>>>> In Postfix, I can define the mail root
as /var/mail, and I can use 
>>>>> the LDAP filter to return a result of
"/<domain>/<user>/" by just 
>>>>> processing the mail field of
"userdomain".  So, at least for 
>>>>> Postfix, I don't have to actually store
each user's mail folder in 
>>>>> the LDAP database - it gets generated
from the mail address and the 
>>>>> defined root folder.
>>>>>
>>>>> Can I do this using Maildrop?  If it
makes any difference, I am 
>>>>> running on an Ubuntu/Debian server.
>>>>
>>>> In authldaprc, LDAP_MAILROOT can be set to
a fixed prefix that gets 
>>>> prepended to LDAP_HOMEDIR, however this
defines the account's home 
>>>> directory, not maildir.  maildrop expects
to deliver to 
>>>> $HOME/Maildir by default, but you should be
able to manually 
>>>> override it by following the instructions
in maildrop's INSTALL.
>>> I don't see any way to perform string
manipulations or specify constant
>>> values in authldaprc - it looks like everything
is just LDAP=Authlib
>>
>> LDAP_MAILROOT is a fixed string that gets prepended
to the 
>> LDAP_HOMEDIR LDAP attribute's value.
> Yes - I've already set that to /var/mail.  The problem
is, given a value 
> of "userdomain.com" in a LDAP mail field -
how to convert that to 
> "/domain.com/user" for the LDAP_HOMEDIR.

Put domain.com/user in another LDAP attribute.



------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Courier-maildrop mailing list
Courier-maildroplists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courie
r-maildrop

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )