Michael Glad glad at cs.au.dk
Fri Jan 29 10:01:40 EST 2010


Dan White wrote:
> On 29/01/10 11:14 +0100, Michael Glad wrote:
>> It seems that I've accidentially enabled IMAP quotas on one of my 
>> cyrus servers -- users complain
>> that saving mails into certain folders fails with an  'over quota' 
>> message.
>>
>> There's indeed a file in the quota directory:
>>
>> bash-3.2$ cat /var/lib/imap/quota/u/user
>> 226215
>> 0
>>
>> Yesterday evening, I shut down cyrus and removed the  
>> /var/lib/imap/quota/u directory and restarted cyrus, but the file has 
>> reappeared.
>>
>> Using cyradm, I can confirm that the affected folders are indeed 
>> under quota:
>>
>> localhost> lqm user/abc/folder1/folder2/folder3/folder4
>> user STORAGE 220/0
>> localhost> lqm user/abc/folder1/folder2/folder3
>>
>> localhost>
>>
>> I am running Cyrus 2.3.16. The cyrus documentation and web resource 
>> does not contain much info about
>> how to _disable_ quotas, so any input from the list is welcomed.
>
> This is discussed in:
>
> http://cyrusimap.web.cmu.edu/imapd/overview.html
>
> See sections "Quota Roots" and "Removing Quota Roots".
>
Thank you  for the pointer, should have found it by myself. I tried it, 
see below, but the quota root file keeps
reappering,.

 -- Michael

---------------------------------------------
[root at be~]# rm -rf /var/lib/imap/quota/u; service cyrus-imapd stop;   rm 
-rf /var/lib/imap/quota/u; su cyrus
Shutting down cyrus-imapd: /usr/lib/cyrus-imapd/quota -f
Exporting cyrus-imapd databases:                           [  OK  ]
bash-3.2$ /usr/lib/cyrus-imapd/quota -f
   Quota   % Used     Used Root
bash-3.2$ exit
[root at be~]#  service cyrus-imapd start
Importing cyrus-imapd databases:                           [  OK  ]
Starting cyrus-imapd:                                      [  OK  ]
[root at be~]# cat /var/lib/imap/quota/u
cat: /var/lib/imap/quota/u: No such file or directory

[a few minutes passing]

[root at be~]# cat /var/lib/imap/quota/u/user
943
0


More information about the Info-cyrus mailing list