Nope. In fact, if the quota already exists on the maildir, it will be
checked.
But it isn't.
Then you need to create it.
Is it possible to force the Courier server to ignore maildirsize file and
recalculate the Maildir size all the time? I would like to see it as an
optional feature, not the default.
I'd like integrate Courier-IMAP with Exim MTA, and use the internal Exim's
delivery agent and Exim's quota implementation. I.e. Exim has a special
timeout if quota is exceeded. Just now it is not possible because Exim
doesn't handle maildirsize cache file. I think the easier way is to hack
the Courier-IMAP to not use the maildirsize file and to get the quota
value from LDAP directly (or via MAILDIRQUOTA).
I've created maildir, delivered some mails then changed quota. After that
the Courier-IMAP didn't noticed changes. AFAIK Courier always get the
quota value from maildirsize file.
Correct.
I don't understand why it can't get it from MAILDIRQUOTA variable?
authldap module sets this variable based on LDAP record.
There's a very big difference between initially creating a quota, and
changing it. Quotas on accounts should not change very often. Therefore,
if you decide to adjust the quota, you'll just have to manually fix
maildirsize.
Other way to change quota value than changing LDAP database would be hard
to implement.