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.