[Dovecot] Separate quotas not displayed correctly
Hello all,
My system is set up to have quotas both on /var/mail, where emails are received, and on /export/home, where users' homedirs are. But the client (Thunderbird) shows the same /export/home values both for the Inbox and for the folders in the homedir, so a user cannot know where she stands on her /var/mail use.
This is Dovecot 1.1.5. As per the wiki, the dovecot.conf file contains this:
quota = fs:INBOX:mount=/var/mail quota2 = fs:Others:mount=/export/home
A sample user: # quota -v testimap Disk quotas for testimap (uid 1143): Filesystem usage quota limit timeleft files quota limit timeleft /export/home 6490 10000 15000 0 0 0 /var/mail 0 20000 25000 0 0 0
When Icheck the Quota tab in the Properties of the Inbox, the field contains "Others", and the value are 6490 out of 10000.
Any idea why this doesn't display the value of /var/mail?
Laurent
/ Leader de Projet & Communauté | I'm working, but not speaking for \ G11N http://fr.opensolaris.org | Bull Services http://www.bull.com / FOSUG http://guses.org |
On Fri, 2008-10-31 at 10:45 +0100, Laurent Blume wrote:
Hello all,
My system is set up to have quotas both on /var/mail, where emails are received, and on /export/home, where users' homedirs are. But the client (Thunderbird) shows the same /export/home values both for the Inbox and for the folders in the homedir, so a user cannot know where she stands on her /var/mail use.
First of all see if the problem is with Thunderbird or Dovecot. Ask the quota values directly from Dovecot:
telnet localhost 143 a login user pass b getquotaroot inbox c getquotaroot some-other-box
If b/c didn't return correct values, try also:
d getquota INBOX e getquota Others
Timo Sirainen a écrit :
First of all see if the problem is with Thunderbird or Dovecot. Ask the quota values directly from Dovecot:
telnet localhost 143 a login user pass b getquotaroot inbox c getquotaroot some-other-box
If b/c didn't return correct values, try also:
d getquota INBOX e getquota Others
I'm not sure if this is good. It does answer the correct values, but when asking the quota, returns all of them, even when asking for a single folder. Well, see for yourself:
1 OK Logged in. 2 getquotaroot inbox
- QUOTAROOT "inbox" "INBOX" "Others"
- QUOTA "INBOX" (STORAGE 0 20000)
- QUOTA "Others" (STORAGE 6490 10000) 2 OK Getquotaroot completed. 3 getquotaroot Trash
- QUOTAROOT "Trash" "INBOX" "Others"
- QUOTA "INBOX" (STORAGE 0 20000)
- QUOTA "Others" (STORAGE 6490 10000) 3 OK Getquotaroot completed. 4 getquota INBOX
- QUOTA "INBOX" (STORAGE 0 20000) 4 OK Getquota completed. 5 getquota Others
- QUOTA "Others" (STORAGE 6490 10000) 5 OK Getquota completed. 6 logout
- BYE Logging out 6 OK Logout completed.
Of course, I snooped the packets to see what Thunderbird is doing: it's exactly the same as above, it does a quotaroot on each folder, it doesn't do a getquota. It seems to only use the last line received, which is always the one for Others.
From what I read in the RFC, it seems to be a bug in Dovecot, it should reply only for the given mailbox, am I right?
Laurent
/ Leader de Projet & Communauté | I'm working, but not speaking for \ G11N http://fr.opensolaris.org | Bull Services http://www.bull.com / FOSUG http://guses.org |
On Mon, 2008-11-03 at 10:21 +0100, Laurent Blume wrote:
2 getquotaroot inbox
- QUOTAROOT "inbox" "INBOX" "Others"
- QUOTA "INBOX" (STORAGE 0 20000)
- QUOTA "Others" (STORAGE 6490 10000) 2 OK Getquotaroot completed. .. From what I read in the RFC, it seems to be a bug in Dovecot, it should reply only for the given mailbox, am I right?
I guess it's more like a non-implemented feature. I'll add to my TODO.
Timo Sirainen a écrit :
I guess it's more like a non-implemented feature. I'll add to my TODO.
Any ETA for it? Even a rough guesstimate. It's part of our requirements for deployment of a new version, just need to reschedule it differently if it's going to be available only a la later date
Thanks,
Laurent
/ Leader de Projet & Communauté | I'm working, but not speaking for \ G11N http://fr.opensolaris.org | Bull Services http://www.bull.com / FOSUG http://guses.org |
On Mon, 2008-11-03 at 10:56 +0100, Laurent Blume wrote:
Timo Sirainen a écrit :
I guess it's more like a non-implemented feature. I'll add to my TODO.
Any ETA for it? Even a rough guesstimate. It's part of our requirements for deployment of a new version, just need to reschedule it differently if it's going to be available only a la later date
Sorry, I can't really give any dates. It's a very low priority to me. Maybe if/when I happen to do changes there for other reasons.. I almost thought that I would have done it today because getting quota working with shared mailboxes was somewhat related to this, but looks like it wasn't necessary after all.
I think it's not going to be a simple code change since there's currently no mailbox <-> quota root mapping, and this pretty much would require that.
participants (2)
-
Laurent Blume
-
Timo Sirainen