Hello, I've been trying to set up dovecot 2.0.15, everything seems to work pretty well except for the quota feature. I would like to set a quota limit only for the Inbox folder. I configured two namespaces, according to some posts from Timo Sirainen (http://dovecot.org/list/dovecot/2006-July/014530.html) & (http://www.dovecot.org/list/dovecot/2011-January/056131.html) but I can't configure the quota plugin to act the way I pretend. Here's my namespace configuration: namespace { separator = / prefix = INBOX/ location = mbox:/var/empty:INBOX=/mail/%d/%n:INDEX=/var/dovecot/%d/%n inbox = yes hidden = yes } namespace { separator = / prefix inbox = no location = mbox:/mail/%d/MAILBOXES/%n:INDEX=/var/dovecot/%d/%n } Quota config: plugin { quota = dirsize:User quota # I've tried with: quota_rule = INBOX:storage=819200K quota_rule = INBOX/*:storage=819200K quota_rule = INBOX/Inbox:storage=819200K # Works with: quota_rule = *:storage=819200K quota_rule = ?:storage=819200K (Same behavior as '*') } Using '*' and '?', is the only way I get it to work, but obviously, quota is calculated summing up all the mailbox folders. I don't know what else to change, any ideas? Is the two namespace configuration correct? Thanks in advance. David -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4439 bytes Desc: S/MIME Cryptographic Signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20111109/e390e591/attachment-0004.bin>
Timo Sirainen
2011-Nov-09 17:56 UTC
[Dovecot] Dovecot 2.0.15 quota configuration with mbox
On Wed, 2011-11-09 at 10:54 +0100, David Ocana wrote:> I've been trying to set up dovecot 2.0.15, everything seems to work > pretty well except for the quota feature. I would like to set a quota > limit only for the Inbox folder. I configured two namespaces, > according to some posts from Timo Sirainen > > namespace { > separator = / > prefix = INBOX/ > location = mbox:/var/empty:INBOX=/mail/%d/%n:INDEX=/var/dovecot/%d/%n > inbox = yes > hidden = yes > } > > plugin { > quota = dirsize:User quotaquota = dirsize:User quota:ns=INBOX/ This limits the quota only to mailboxes in INBOX/ namespace.> # I've tried with: > quota_rule = INBOX:storage=819200K > quota_rule = INBOX/*:storage=819200K > quota_rule = INBOX/Inbox:storage=819200KQuota rules don't work in this way. There are no per-mailbox quotas really, at least in the way you're thinking about.