[Dovecot] Wrong size calculating with maildirquota
Hello,
I'm using dovecot-1.0.5 with postfix. There is a problem which dovecot folder's size calculating wrong. It doesn't calculates whole folders' sum. Only maildirsize file keeps the first requested folder's size (in this example, Inbox). The example shows Inbox's size, another folder's size didn't add although connecting with IMAP. As the effect, I can not manage users' quota. Is there any hint with using namespace.
Include quota size infos in control file,
[root@xxxx Maildir]# cat /var/no-quotas/control/oneusername/maildirsize
512000000S
4941014 190
1849 1
40788 1
Also, namespace descriptions in dovecot.conf,
namespace private {
separator = /
prefix =
inbox = yes
location = maildir:~/Maildir:INDEX=/var/no-quotas/index/%u:CONTROL=/var/no-quotas/control/%u
}
namespace private {
separator = /
prefix = mail/
#hidden = yes
location = maildir:~/Maildir/.mail:INDEX=/var/no-quotas/index/%u:CONTROL=/var/no-quotas/control/%u
}
thanks in advance.
On Tue, 2007-09-18 at 15:26 +0300, Umut Arus wrote:
namespace private {
separator = /
prefix =
inbox = yes
location = maildir:~/Maildir:INDEX=/var/no-quotas/index/%u:CONTROL=/var/no-quotas/control/%u
}
namespace private {
separator = /
prefix = mail/
#hidden = yes
location = maildir:~/Maildir/.mail:INDEX=/var/no-quotas/index/%u:CONTROL=/var/no-quotas/control/%u
}
This configuration looks pretty weird. Are you sure you need two maildirs in two different namespaces? Also this configuration means that the second namespace's INBOX shows up in the first namespace as "mail" mailbox, which I think could confuse quota.
If you just want ~/Maildir as INBOX and all the other mailboxes under ~/Maildir/.mail/ you could use:
namespace private { separator = / prefix = mail/ location = maildir:~/Maildir/.mail:INBOX=~/Maildir:INDEX=...etc..
participants (2)
-
Timo Sirainen
-
Umut Arus