Re: [Dovecot] Dovecot 2.0.15 quota configuration with mbox
On Thu, 2011-11-10 at 12:14 +0100, David Ocana wrote: 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 quota quota = dirsize:User quota:ns=INBOX/ Actually I forgot to mention that I also tried that, but I got the following error: Error: Initialization failed: Failed to initialize quota: Quota root User quota: Unknown parameter for backend dirsize: ns=INBOX/ Oh. Yeah, dirsize backend doesn't have all the features that other backends have, because it's so little used. You could switch to dict file quota..
Re: [Dovecot] Dovecot 2.0.15 quota configuration with mbox
On 09/11/11 18:56, Timo Sirainen wrote: 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 quota quota = dirsize:User quota:ns=INBOX/ Actually I forgot to mention that I also tried that, but I got the following error: Error: Initialization failed: Failed to initialize quota: Quota root User quota: Unknown parameter for backend dirsize: ns=INBOX/ That's why I was trying to change quota settings by using the quota_rule directive. 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=819200K Quota rules don't work in this way. There are no per-mailbox quotas really, at least in the way you're thinking about. I see, I guess they're per-namespace quotas, right? I got the wrong idea after watching the following, which was exactly what I wanted to do :p quota_rule = mailbox name:limit configuration May be that, using dirsize backend lets you no other option than calculating quota for the whole user's mailbox? smime.p7s Description: S/MIME Cryptographic Signature
[Dovecot] Dovecot 2.0.15 quota configuration with mbox
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 smime.p7s Description: S/MIME Cryptographic Signature
Re: [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 quota quota = 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=819200K Quota rules don't work in this way. There are no per-mailbox quotas really, at least in the way you're thinking about.