So my understanding for now is this:
/var/mail
- has quotas
- for mailboxes hosted by this file system 'getrootquota' should
report used/total quota sizes.
/home/h1
- has or has not quotas. This is the same, because if 'homesvr'
doesn't support rquota, you can't check or even ignore
them.
- for mailboxes hosted by this file system 'getrootquota' should
report nothing.
Yes, this is my situation.
If this is correct, this problem should be covered by a patch I've send
to Timo two days ago. You may have a look at this:
http://dovecot.markmail.org/message/7e6bev4l3hen57ii?q=Multiple+quota+roots+...
Great. d/led "dovecot-*quota*-*root*-matching.patch.gz " and patched.
Here is my current configuration:
mail_location = mbox:~/mail:INBOX=/var/mail/%u
plugin {
quota = fs:INBOX:mount=/var/mail
}
I don't know if I patched correctly or not.
I have got this error when I login:
dovecot: Jul 15 18:13:20 Info: imap-login: Login: user=<01234567g>,
method=PLAIN, rip=158.132.10.68, lip=158.132.10.13
dovecot: Jul 15 18:13:21 Info: IMAP(01234567g): Loading modules from
directory: /usr/local/.dovecot111.test/lib/dovecot/imap
dovecot: Jul 15 18:13:21 Info: IMAP(01234567g): Module loaded:
/usr/local/.dovecot111.test/lib/dovecot/imap/lib10_quota_plugin.so
dovecot: Jul 15 18:13:21 Info: IMAP(01234567g): Module loaded:
/usr/local/.dovecot111.test/lib/dovecot/imap/lib11_imap_quota_plugin.so
dovecot: Jul 15 18:13:21 Info: IMAP(01234567g): Effective uid=3475,
gid=70, home=/home/h1/sc/01234567g
dovecot: Jul 15 18:13:21 Info: IMAP(01234567g): Quota root: name=INBOX
backend=fs args=mount=/var/mail
dovecot: Jul 15 18:13:21 Info: IMAP(01234567g): mbox:
data=/home/h1/sc/01234567g/mail:INBOX=/var/mail/01234567g:INDEX=/localdisk/dovecot.cache/cache/01234567g
dovecot: Jul 15 18:13:21 Info: IMAP(01234567g): fs:
root=/home/h1/sc/01234567g/mail,
index=/localdisk/dovecot.cache/cache/01234567g, control=,
inbox=/var/mail/01234567g
dovecot: Jul 15 18:13:21 Info: IMAP(01234567g): fs quota add storage dir
= /home/h1/sc/01234567g/mail
dovecot: Jul 15 18:13:21 Info: IMAP(01234567g): fs quota block device =
homesvr:/h1
dovecot: Jul 15 18:13:21 Info: IMAP(01234567g): fs quota mount point =
/home/h1
dovecot: Jul 15 18:13:21 Error: IMAP(01234567g): fcntl(0, F_GETFL)
failed: Bad file number
dovecot: Jul 15 18:13:21 Fatal: IMAP(01234567g): fd_set_nonblock(0)
failed: Bad file number