Change storage limits for existing mailboxes #31

Merged
parkel merged 3 commits from feature/edit-mailbox-storage-limits into main 2026-11-21 13:33:30 +01:00
2 changed files with 33 additions and 1 deletions
Showing only changes of commit 5de5611f1f - Show all commits

No files matched your search

+5
View File
@@ -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)
+28 -1
View File
@@ -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