quota_mailbox_message_count
New for 2.4 is quota_mailbox_message_count. I have set limits for: quota_storage_size quota_message_count quota_mailbox_message_count Defaults in dovecot.conf and per user value from userdb sql. These are working proved by the rejection of test messages.
- To monitor users' quotas one can run: doveadm quota get -A
This lists values for Types STORAGE and MESSAGE. Is there a way to list mailbox_message_count values? It is per mailbox so might need a mailbox option on doveadm. doveadm-quota(1) shows -A and -u.
- How does one send quota warning messages when quota_mailbox_message_count crosses thresholds?
The documentation [1] has examples for quota_storage_size and quota_message_count but not quota_mailbox_message_count. I am missing quota_mailbox_message_percentage.
Thank you.
On 30/12/2025 13:05 EET James via dovecot <dovecot@dovecot.org> wrote:
New for 2.4 is quota_mailbox_message_count. I have set limits for: quota_storage_size quota_message_count quota_mailbox_message_count Defaults in dovecot.conf and per user value from userdb sql. These are working proved by the rejection of test messages.
- To monitor users' quotas one can run: doveadm quota get -A
This lists values for Types STORAGE and MESSAGE. Is there a way to list mailbox_message_count values? It is per mailbox so might need a mailbox option on doveadm. doveadm-quota(1) shows -A and -u.
- How does one send quota warning messages when quota_mailbox_message_count crosses thresholds?
The documentation [1] has examples for quota_storage_size and quota_message_count but not quota_mailbox_message_count. I am missing quota_mailbox_message_percentage.
At the moment it's not possible, as it has not been considered similarly as other quota rules. Currently the best way is to count the number of mailboxes in private namespace with e.g. doveadm mailbox list.
Aki
On 30/12/2025 17:14, Aki Tuomi via dovecot wrote:
- How does one send quota warning messages when quota_mailbox_message_count crosses thresholds?
The documentation [1] has examples for quota_storage_size and quota_message_count but not quota_mailbox_message_count. I am missing quota_mailbox_message_percentage.
At the moment it's not possible, as it has not been considered similarly as other quota rules. Currently the best way is to count the number of mailboxes in private namespace with e.g. doveadm mailbox list.
For completeness we should include quota_mailbox_count. I leave this unlimited.
It seems hash to block receipts without warning. I could write a script that does "ls | wc" or add it to my JEE server that handles mail meta data, policy and some other services. It would be good to have it as a dovecot triggered warning rather than, or in addition to, an asynchronous check.
I welcome the addition of quota_mailbox_message_count. Some users have
20,000 messages in their INBOXes with a significant proportion being unread. It only slows themselves but a little coercion to archive or delete is a good thing.
I can advise users without a hard limit so for now I will leave quota_mailbox_message_count unlimited.
participants (2)
-
Aki Tuomi
-
James