Add status checks for managed mailboxes

This commit is contained in:
parkel committed 2026-11-19 23:43:17 +01:00
1 parent 0804182f17
commit 32f56deae4
4 files changed
+256 -21

No files matched your search

+23
View File
@@ -272,6 +272,29 @@ 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.
### Check a mailbox installation
Run the status command on the mail node with the same manifest.
```sh
sudo /opt/coulobre/bin/coulobre-mail-node status coulobre-mailbox-1.json
```
The check reads the local registry, mailbox home and lookup files. It
queries the running Postfix service for the domain and recipient and
tests the saved login against Dovecot's local authentication service.
The JSON report includes the address, state and a diagnostic when the
installation needs attention.
| State | Exit code | Meaning |
| --- | --- | --- |
| `configured` | 0 | The local mailbox and service checks passed. |
| `not_installed` | 2 | The mailbox is absent from the local registry and mail services. |
| `needs_attention` | 2 | An installation, configuration or service check failed. |
Exit code `1` indicates an invalid manifest or an invocation error such as
running the check without root privileges.
## Request an Apache configuration preview
Start RabbitMQ and set `COULOBRE_BROKER_URL` to its AMQP URL. The development