Re: [Dovecot] Shared Mailboxes with VirtualUsers and mail_location retrieved from ldap
On 09/08/2011 03:07 PM, Timo Sirainen wrote:
On Thu, 2011-09-08 at 12:14 +0100, mailing lists wrote:
yes, my virtual users have separate directories for home and mail. Their locations are stored in ldap attributes (with random generated paths), so a flat scheme like /var/maildr/%%u isn't valid.
Sorry, you're out of luck with that kind of a setup. Only the %%h can look up a home directory from LDAP. Maybe some day in future there will be other variables that can be looked up.
and how to I might configure dovecot to use the mail directory as a subdirectory of the home directory?
this way all lookups for home (with %%h fetched from ldap) will return the correct locationand mail will be in (i.e.) ~/mailSubDir
is this configuration possible?
On Fri, Sep 09, 2011 at 08:18:40AM +0100, mailing lists wrote:
and how to I might configure dovecot to use the mail directory as a subdirectory of the home directory?
this way all lookups for home (with %%h fetched from ldap) will return the correct locationand mail will be in (i.e.) ~/mailSubDir
is this configuration possible?
In the main dovecot.conf:
mail_location = maildir:~/mailSubDir
In the ldap-config:
user_attrs = homeFilter=home
-jf
participants (2)
-
Jan-Frode Myklebust
-
mailing lists