The Dovecot version is 1.2.8 and i am using an LDAP for a user database. The problem is following... i would like to use a quota dictionary backend from file rather than sql proxy for some reasons. Is it possible to get the full path for dovecot-quota file location from LDAP like from mail variable (/mailboxes/storage_01/domain.org/u/us/use/user/dbox/dovecot-quota)?
/etc/dovecot/dovecot-ldap.conf
user_attrs = storageBase=home,mailMessageStore=mail=dbox:~/%$/dbox/,mailQuota=quota_rule=*:bytes=%$,mailQuotaMessageLimit=quota_rule2=*:messages=%$
Also is it also possible the same for sieve location?
I can solve the problem by adding in dovecot.conf
sieve = /var/sieve/%Ld/%Ln/dovecot.sieve
but i would like to have it all in one place ...
t
-- View this message in context: http://old.nabble.com/Dovecot-1.2.%2B-tp26803721p26803721.html Sent from the Dovecot mailing list archive at Nabble.com.
On Tue, 2009-12-15 at 16:42 -0800, Tom Mihalicek wrote:
/etc/dovecot/dovecot-ldap.conf
user_attrs = storageBase=home,mailMessageStore=mail=dbox:~/%$/dbox/,mailQuota=quota_rule=*:bytes=%$,mailQuotaMessageLimit=quota_rule2=*:messages=%$
What's the difference between storageBase and mailMessageStore? To me it seems like you should be setting mailMessageStore=home and then make everything use ~/ instead of absolute paths.
I forgot to mention that the storageBase is intended to be a SAN mounted point (/mailboxes/storage_01,/mailboxes/storage_02) so i can add them as they grow in size (i dont like resizing), and that the mail part appends (domain.org/u/us/use/user). I could do this with the sepparate LDAP attribute that actually joins that two attributes but i tried to make it this way.
Timo Sirainen wrote:
On Tue, 2009-12-15 at 16:42 -0800, Tom Mihalicek wrote:
/etc/dovecot/dovecot-ldap.conf
user_attrs = storageBase=home,mailMessageStore=mail=dbox:~/%$/dbox/,mailQuota=quota_rule=*:bytes=%$,mailQuotaMessageLimit=quota_rule2=*:messages=%$
What's the difference between storageBase and mailMessageStore? To me it seems like you should be setting mailMessageStore=home and then make everything use ~/ instead of absolute paths.
-- View this message in context: http://old.nabble.com/Dovecot-1.2.%2B-dictionary-quota-file-tp26803721p26818... Sent from the Dovecot mailing list archive at Nabble.com.
On Wed, 2009-12-16 at 12:47 -0800, Tom Mihalicek wrote:
I forgot to mention that the storageBase is intended to be a SAN mounted point (/mailboxes/storage_01,/mailboxes/storage_02) so i can add them as they grow in size (i dont like resizing), and that the mail part appends (domain.org/u/us/use/user). I could do this with the sepparate LDAP attribute that actually joins that two attributes but i tried to make it this way.
Home directory is supposed to be a private directory for user. Now you're using a shared directory as home, and that's going to break some things. For example .dovecot.lda-dupes file is created to home directory by deliver, and that's going to fail with your current setup.
So I think you should try to make it so that userdb returns home=/mailboxes/storage_01/domain.org/u/us/use/user
then in dovecot.conf set everything like:
mail_location = dbox:~/dbox
plugin { quota = dict:user::file:%h/dovecot-quota }
and sieve would automatically be using the home directory.
Okay, thanks for advice, i will use a ldap attribute with complete path and thats it.
Timo Sirainen wrote:
On Wed, 2009-12-16 at 12:47 -0800, Tom Mihalicek wrote:
I forgot to mention that the storageBase is intended to be a SAN mounted point (/mailboxes/storage_01,/mailboxes/storage_02) so i can add them as they grow in size (i dont like resizing), and that the mail part appends (domain.org/u/us/use/user). I could do this with the sepparate LDAP attribute that actually joins that two attributes but i tried to make it this way.
Home directory is supposed to be a private directory for user. Now you're using a shared directory as home, and that's going to break some things. For example .dovecot.lda-dupes file is created to home directory by deliver, and that's going to fail with your current setup.
So I think you should try to make it so that userdb returns home=/mailboxes/storage_01/domain.org/u/us/use/user
then in dovecot.conf set everything like:
mail_location = dbox:~/dbox
plugin { quota = dict:user::file:%h/dovecot-quota }
and sieve would automatically be using the home directory.
-- View this message in context: http://old.nabble.com/Dovecot-1.2.%2B-dictionary-quota-file-tp26803721p26818... Sent from the Dovecot mailing list archive at Nabble.com.
participants (2)
-
Timo Sirainen
-
Tom Mihalicek