[Dovecot] second fs quota root crashes

Juergen Obermann Juergen.Obermann at hrz.uni-giessen.de
Tue Nov 3 14:36:52 EET 2009


On Thu, Oct 29, 2009 at 12:59:40PM -0400, Timo Sirainen wrote:
> On Thu, 2009-10-29 at 14:21 +0100, Juergen Obermann wrote:
> > The patch in http://hg.dovecot.org/dovecot-1.2/rev/439e14ff1467 helps with the
> > crash of the imap client, but the second quota still does not work. 
> 
> What does it show if you give:
> 
> a GETQUOTA "Home-Verzeichnis"
> b GETQUOTA INBOX
> c GETQUOTAROOT INBOX
> d GETQUOTAROOT <some other mailbox name than INBOX>
> 
> i.e. is the problem that there really isn't those two quotas, or one of
> them returns wrong value, or one of them just isn't listed, or..?
> 
> > The below
> > log shows, that only the first fs quota is used for the inbox and the mail
> > folders. 
> 
> I thought the logs showed both of the quotas.
> 
> > Even adding 'mount=/home/hrz' to the first quota setting does not help.
> > Btw what would be the right mount path setting for an automounter mountpoint
> > /home for home filesystems?
> 
> mount=%h maybe?

Here ar my test results. If I set

  quota = fs:Home-Verzeichnis:noenforcing
  quota2 = fs:INBOX:noenforcing:mount=/var/mail

then only the first quota for Home-Verzeichnis gets reported for INBOX, which is
wrong, and for all other mail folders in my home filesystem, which is correct.

horus{g033}1040:>/opt/local/sbin/dovecot --exec-mail ext /opt/local/libexec/dovecot/imap
* PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT THREAD=REFERENCES THREAREFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC EARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH QUOTA] Logged in as g033
a GETQUOTA "Home-Verzeichnis"
* QUOTA "Home-Verzeichnis" (STORAGE 1567704 2000000)
a OK Getquota completed.
b GETQUOTA INBOX
* QUOTA "INBOX" ()
b OK Getquota completed.
c GETQUOTAROOT INBOX
* QUOTAROOT "INBOX" "Home-Verzeichnis"
* QUOTA "Home-Verzeichnis" (STORAGE 1567704 2000000)
c OK Getquotaroot completed.
d GETQUOTAROOT dovecot
* QUOTAROOT "dovecot" "Home-Verzeichnis"
* QUOTA "Home-Verzeichnis" (STORAGE 1567704 2000000)
d OK Getquotaroot completed.
^C* BYE Server shutting down.

If I add mount=%h to my first quota rule I get no quota values at all

  quota = fs:Home-Verzeichnis:noenforcing:mount=%h
  quota2 = fs:INBOX:noenforcing:mount=/var/mail


horus{g033}1041:>/opt/local/sbin/dovecot --exec-mail ext /opt/local/libexec/dovecot/imap
* PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT THREAD=REFERENCES THREAREFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC EARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH QUOTA] Logged in as g033
a GETQUOTA "Home-Verzeichnis"
* QUOTA "Home-Verzeichnis" ()
a OK Getquota completed.
b GETQUOTA INBOX
* QUOTA "INBOX" ()
b OK Getquota completed.
c GETQUOTAROOT INBOX
* QUOTAROOT "INBOX"
c OK Getquotaroot completed.
d GETQUOTAROOT dovecot 
* QUOTAROOT "dovecot"
d OK Getquotaroot completed.
^C* BYE Server shutting down.

My current quota values are:

horus{g033}1043:>quota -v     
Disk quotas for g033 (uid 10033):
Filesystem     usage  quota  limit    timeleft  files  quota  limit    timeleft
/var/mail         85 2000000 2097150                  1    100    110           
/home/hrz    1567704 2000000 2200000              22633 200000 220000  


Thanks,
Jürgen

-- 
Hochschulrechenzentrum der | Mail: Juergen.Obermann at hrz.uni-giessen.de
Justus-Liebig-Universitaet | WWW:  http://www.uni-giessen.de/~g033
Heinrich-Buff-Ring 44      | Tel:  0641-99-13054 (0641-99-13001)
D-35392 Giessen, Germany   | Fax:  0641-99-13009


More information about the dovecot mailing list