[Dovecot] Dovecot 2.0.15 quota configuration with mbox

David Ocana david.ocana at bsc.es
Wed Nov 9 11:54:28 EET 2011


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-0002.bin>


More information about the dovecot mailing list