Support local mailbox provisioning over a restricted Unix socket

This commit is contained in:
parkel committed 2026-11-21 01:46:23 +01:00
1 parent 640bec5d1c
commit 8dfb64bf8c
5 files changed
+104 -1

No files matched your search

+21
View File
@@ -414,6 +414,27 @@ installation needs attention.
Exit code `1` indicates an invalid manifest or an invocation error such as
running the check without root privileges.
### Enable local mailbox provisioning
On a mail node with the same Postfix and Dovecot setup, install Coulobre in a
root-owned virtual environment at `/opt/coulobre` and enable the provisioning
socket.
```sh
getent group coulobre-mail-provisioning >/dev/null || sudo groupadd --system coulobre-mail-provisioning
sudo install -m 0644 deploy/systemd/coulobre-mail-apply.socket \
deploy/systemd/coulobre-mail-apply@.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now coulobre-mail-apply.socket
```
Grant the socket group only to the service identity responsible for mailbox
provisioning. Send one version 1 mailbox manifest as UTF-8 JSON to
`/run/coulobre-mail-apply.sock`, with a limit of 4 KiB. Shut down the writing
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.
## Inspect a DirectAdmin backup
Use an account archive from DirectAdmin's Site Backup, Manage User Backups