Provision local mailboxes from Coulobre Panel

This commit is contained in:
parkel committed 2026-11-21 01:51:42 +01:00
1 parent 8dfb64bf8c
commit b53f6ba8d6
13 files changed
+315 -7

No files matched your search

+32
View File
@@ -273,3 +273,35 @@ Operators need permission to view hosting accounts and DNS zones and the
Each request captures the reviewed SOA serial and records. You can edit the
zone while it publishes. Publish the newer revision after the current request
finishes. Use **Retry publishing** if the current revision failed.
## Provision local mailboxes from the panel
Set up [Postfix and Dovecot 2.3](development.md#apply-a-mailbox-manifest) on the
Ubuntu 24.04 panel host and enable the
[mailbox provisioning socket](development.md#enable-local-mailbox-provisioning).
Install the dedicated worker that connects to that socket.
```sh
sudo useradd --system --user-group --no-create-home --home-dir /nonexistent \
--shell /usr/sbin/nologin coulobre-mail-provisioner
sudo install -m 0644 deploy/systemd/coulobre-mailbox-provisioner.service /etc/systemd/system/
sudo systemctl daemon-reload
```
Set `COULOBRE_LOCAL_MAILBOX_PROVISIONING=1` in `/etc/coulobre/panel.env`, then
apply pending migrations and restart the panel services.
```sh
panel_manage migrate --noinput
sudo systemctl restart coulobre-panel coulobre-worker coulobre-beat
sudo systemctl enable --now coulobre-mailbox-provisioner.service
```
Open a hosting account and select **Provision mailbox** for a mailbox request.
Reload the account page to see the status. Use **Retry provisioning** after a
reported failure. Operators need permission to view hosting accounts and
mailbox requests and the **Can add mailbox provisioning** permission.
The initial password stays in the root-only credentials file on the mail node.
To locate that file, download the manifest and use the node's `apply` command.
Reapplying the manifest preserves the password and prints the file path.