IMAP QUOTA limits are always returned even if no domain default limit and no user override is set.
-- WebAdmin --
Manage Domains > Domain > Account Defaults > Quotas and Restrictions
'Quotas and Restrictions' = 5000000K
'Limit total number of messages to:' = Unchecked
'Limit each folder size to:' = Unchecked
'Limit total number of messages to:' = Unchecked
.
-- CLI --
<#> update domain example.com
<domain#> update account testuser
<domain-account#> config Quota
<domain-account-quota#> show
messageCount = 10000000 [inherited]
messageSize = 5000000 [inherited]
totalMessageCount = 100000000 [inherited]
totalMessageSize = 5000000 [inherited]
<domain-account-quota#> done
<domain-account#> back
<domain#> config accountDefaultQuotas
<domain-accountDefaultQuotas#> show
messageCount = 10000000
messageSize = 4294967295
totalMessageCount = 100000000
totalMessageSize = 5000000
.
-- IMAP --
> a GETQUOTAROOT ""
< * QUOTAROOT "" "/" ""
< * QUOTA "/" (STORAGE 0 4294967295 MESSAGE 0 10000000)
< * QUOTA "" (STORAGE 728711 5000000 MESSAGE 64933 100000000)
< a OK GETQUOTAROOT completed
Now the big problem here is that is is impossible to not set (messageCount, messageSize, totalMessageCount, totalMessageSize). If via the WebAdmin uncheck the box for these the will default to the maximum allowed value.
Expected behaviour if these setting have been uncheck via WebAdmin or the value is say 0 (zero) is to not apply the limit and to not send the respective IMAP QUOTA response
-- IMAP --
> a GETQUOTAROOT ""
< * QUOTAROOT "" "/" ""
< * QUOTA "" (STORAGE 728711 5000000)
< a OK GETQUOTAROOT completed
Expected IMAP QUOTA response if the WebAdmin is set like above/top