From 5de5611f1ffcb91cf472240c4503c327e36dc7d2 Mon Sep 17 00:00:00 2001 From: Peter van Arkel Date: Sat, 21 Nov 2026 13:32:08 +0100 Subject: [PATCH] Document mailbox quota updates and retries --- docs/deployment.md | 5 +++++ docs/development.md | 29 ++++++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/docs/deployment.md b/docs/deployment.md index 7b694d6..4ef32aa 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -482,6 +482,11 @@ Set a per-mailbox storage limit on the hosting plan for new mailbox requests. Enable Dovecot quota enforcement on the mail node before provisioning them. [Mailbox storage limits](development.md#enforce-mailbox-storage-limits) +For an existing mailbox, change its limit from the account page. Coulobre +queues the update for mailboxes provisioned through the local worker. Use +the node command for manually provisioned mailboxes. +[Change a mailbox storage limit](development.md#change-a-mailbox-storage-limit) + Back up mail on the node that hosts the mailbox. The archive can be used to recover messages and folders into a newly provisioned mailbox with the same address. [Mailbox backup and restore](development.md#back-up-and-restore-a-mailbox) diff --git a/docs/development.md b/docs/development.md index ca8361c..fe5a49e 100644 --- a/docs/development.md +++ b/docs/development.md @@ -37,7 +37,9 @@ assigned limit. Leave the field blank to omit a Coulobre storage limit. Changing or reassigning a plan preserves existing databases and mailboxes. If the new limit is at or below current usage, the panel blocks additional -requests of that type. Storage limit changes apply to new mailbox requests. +requests of that type. Changing the plan's storage limit applies to new +mailbox requests. Use **Change storage limit** for an individual mailbox. +[Change a mailbox storage limit](#change-a-mailbox-storage-limit) ## Give a reseller access to assigned accounts @@ -502,6 +504,28 @@ address using a password hash. Postfix accepts listed recipients and hands delivery to Dovecot over the local LMTP socket. Reapply the same manifest to resume installation with the same credentials. +### Change a mailbox storage limit + +On the account page, select **Change storage limit** next to the mailbox. +Enter the new limit in MiB or leave the field blank for unlimited storage. +This action requires mailbox provisioning and change permissions. For a +mailbox already provisioned through the panel, saving queues an update on +the local mail node. Use **Retry provisioning** to retry a failed update +before setting another limit. + +For a mailbox provisioned manually, download its updated manifest and run +the following command on the mail node. + +```sh +sudo /opt/coulobre/bin/coulobre-mail-node set-quota coulobre-mailbox-1.json +``` + +The command changes the quota for the existing mailbox with that address. +Its messages and credentials remain available. If a lower limit is below +current usage, Dovecot enforces the limit on new mail. Reconnect IMAP clients +to pick up the new setting. If the command is interrupted, retry it with +the same manifest. + ### Check a mailbox installation Run the status command on the mail node with the same manifest. @@ -578,6 +602,9 @@ provisioning. Send one version 1 or 2 mailbox manifest as UTF-8 JSON to half of the connection and read the JSON reply to EOF. For a valid manifest, the reply identifies the mailbox and reports `configured` or `failed`. The generated password stays in a root-only credentials file on the mail node. +For an existing mailbox, the same socket accepts a request with +`"operation": "set_quota"` and the updated manifest under `"mailbox"`. +The reply includes both fields. ## Inspect a DirectAdmin backup