67 KiB
Install Coulobre Panel on one server
This setup runs the panel, its Celery worker and scheduler, MariaDB, RabbitMQ, and Apache on one Ubuntu server. Use Ubuntu 24.04 or later. Apache serves the panel and its static files and connects to Gunicorn over a Unix socket.
Install the package and configure local services
Run these commands from a Coulobre checkout or an unpacked source release
on the server. The source release includes the deploy/ examples used below.
sudo apt install apache2 mariadb-server rabbitmq-server python3-venv python3-dev \
build-essential pkg-config default-libmysqlclient-dev
sudo useradd --system --user-group --no-create-home --home-dir /nonexistent \
--shell /usr/sbin/nologin coulobre-panel
sudo python3 -m venv /opt/coulobre
sudo /opt/coulobre/bin/pip install '.[server,mariadb]'
sudo install -d -m 0750 /etc/coulobre
sudo install -d -o coulobre-panel -g coulobre-panel -m 0755 /var/www/coulobre-panel-static
if ! sudo test -e /etc/coulobre/panel.env; then
sudo install -m 0600 deploy/panel.env.example /etc/coulobre/panel.env
fi
Generate separate random values for the Django secret key, the database password, and the broker password. Use this command for each value.
python3 -c 'import secrets; print(secrets.token_urlsafe(48))'
Start MariaDB and RabbitMQ. In sudo mariadb, create the panel database and
login. Substitute the generated database password.
sudo systemctl enable --now mariadb rabbitmq-server
CREATE DATABASE coulobre_panel CHARACTER SET utf8mb4;
CREATE USER 'coulobre'@'localhost' IDENTIFIED BY 'replace-with-database-password';
GRANT ALL PRIVILEGES ON coulobre_panel.* TO 'coulobre'@'localhost';
Create a dedicated RabbitMQ virtual host and login. Enter the generated broker
password when prompted by rabbitmqctl add_user.
sudo rabbitmqctl add_vhost coulobre
sudo rabbitmqctl add_user coulobre
sudo rabbitmqctl set_permissions -p coulobre coulobre '.*' '.*' '.*'
Set listeners.tcp.1 = 127.0.0.1:5672 in /etc/rabbitmq/rabbitmq.conf and
restart RabbitMQ to bind its AMQP listener to loopback. Keep MariaDB and
RabbitMQ management and cluster ports private. RabbitMQ listener settings
Edit /etc/coulobre/panel.env with sudoedit. Set COULOBRE_ALLOWED_HOSTS
to the hostname browsers will use, enter the Django secret and the database
password, and place the broker password after coulobre: in
COULOBRE_BROKER_URL. The sample connects to MariaDB through its local Unix
socket and uses the dedicated RabbitMQ virtual host.
Prepare the panel
Run the Django management commands as the service user with the same environment the systemd services will use.
panel_manage() {
sudo systemd-run --quiet --wait --pipe --collect --uid=coulobre-panel \
--property=EnvironmentFile=/etc/coulobre/panel.env \
/opt/coulobre/bin/python -m django "$@"
}
panel_manage check --deploy
panel_manage migrate --noinput
panel_manage collectstatic --noinput
sudo systemd-run --quiet --pty --collect --uid=coulobre-panel \
--property=EnvironmentFile=/etc/coulobre/panel.env \
/opt/coulobre/bin/python -m django createsuperuser
HTTPS proxy mode enables HSTS for the panel hostname. Django reports W005
and W021 for the optional subdomain and browser preload settings.
Configure Apache and DNS
Install the shared Apache directives and enable the modules for your setup.
Replace the example hostname in the chosen virtual host with the hostname
from COULOBRE_ALLOWED_HOSTS.
sudo install -m 0644 deploy/apache/panel-proxy.inc /etc/coulobre/panel-proxy.inc
sudo a2enmod headers proxy proxy_http
Public server
Publish A or AAAA records for the IPv4 and IPv6 addresses that can reach the
panel. Allow TCP ports 80 and 443 at the firewall. If the server is behind NAT,
use the router's public address in DNS and forward those ports to Apache.
Install the TLS virtual host, enable mod_ssl, and set the certificate and key
paths for the panel hostname.
sudo a2enmod ssl
sudo install -m 0644 deploy/apache/panel-tls.conf.example \
/etc/apache2/sites-available/coulobre-panel.conf
LAN only
Use the same TLS virtual host with a hostname that internal DNS resolves to the
server's private address. Use a certificate that clients on the LAN trust, such
as one issued by your internal CA. Limit access to the panel's HTTP and HTTPS
ports to your private network. On a host with public and private web traffic,
use the private address in the panel's virtual hosts in place of *.
External reverse proxy
Point the public DNS records at the reverse proxy. Configure it to redirect
HTTP to HTTPS, preserve the requested hostname when forwarding, and replace
X-Forwarded-For with the client address. The origin example uses HTTP on a
private network. Use a TLS connection to Apache if the upstream connection
crosses an untrusted network.
sudo a2enmod remoteip
sudo install -m 0644 deploy/apache/panel-origin.conf.example \
/etc/apache2/sites-available/coulobre-panel.conf
Set 192.168.10.20 to the private listener address on the Apache host and
192.168.10.10 to the network peer address of your reverse proxy. Use the
proxy address in both RemoteIPInternalProxy and the CONN_REMOTE_ADDR
access rule. Restrict the origin port to the proxy at the firewall too. The
rule checks the peer connection, so it still applies when Apache recognizes a
different visitor IP from the trusted proxy.
Apache client IP handling
Each virtual host sends its HTTPS indicator to Gunicorn itself. The TLS virtual host handles HTTPS at Apache, while the private origin is reserved for the external proxy's HTTPS traffic. Apache passes a single visitor IP based on the connection or a trusted proxy. Django HTTPS proxy settings
The addresses for hosted sites, mail, and authoritative DNS can differ from the panel hostname. Configure the corresponding public DNS records for each service using its reachable address.
Start the services
Install and enable the three units. The panel's socket directory is available to Apache workers. The scheduler stores its state in a private directory and there is one scheduler for the installation.
sudo install -m 0644 deploy/systemd/coulobre-panel.service \
deploy/systemd/coulobre-worker.service deploy/systemd/coulobre-beat.service \
/etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now coulobre-panel.service coulobre-worker.service coulobre-beat.service
sudo a2ensite coulobre-panel
sudo apache2ctl configtest
sudo systemctl reload apache2
Sign in with the administrator account. Add a hosting account and request an
Apache preview to verify that RabbitMQ, the scheduler, and the worker are
connected. Follow their logs with journalctl.
sudo journalctl -u coulobre-panel -u coulobre-worker -u coulobre-beat
Upgrade an existing panel
Download and unpack the new source release. Back up the panel database and
the configuration in /etc/coulobre/ and in the service files you manage.
Stop the web process and scheduler. Let running jobs finish, then stop the
worker and any enabled provisioning, backup, or health collector units.
sudo systemctl stop coulobre-panel.service coulobre-beat.service
After the running jobs finish, stop the general worker. If service health is enabled, stop both its timer and service before changing the package.
sudo systemctl stop coulobre-worker.service
# If service health is enabled:
# sudo systemctl stop coulobre-health.timer coulobre-health.service
From the unpacked source release, upgrade the existing virtual environment and use the management command helper.
sudo /opt/coulobre/bin/pip install --upgrade '.[server,mariadb]'
panel_manage migrate --noinput
panel_manage collectstatic --noinput
Review the release notes and apply any configuration or unit changes they describe. Upgrade remote mail and DNS nodes before using the new panel actions on them. Install updated service files from the same source release on the panel and each node. Connection details and password rotation for remote mail require the credential relay.
Reload systemd and start the main services and any optional units you stopped. Verify the deployment with a test account before opening it to customers.
sudo systemctl daemon-reload
sudo systemctl start coulobre-panel.service coulobre-worker.service coulobre-beat.service
Verify a new installation
Use a test hosting plan, account, and domain for these checks. Enable the local services that the installation will offer before checking them.
- Sign in through the hostname clients will use. Check the HTTPS certificate, login, and static files. If you use a reverse proxy, also confirm that connections from outside the trusted proxy cannot use its HTTP origin.
- Assign the test account to a customer. Verify that customer can open it and that a second customer cannot. With a plan that limits the number of databases or mailboxes, try a request beyond each configured limit.
- Request an Apache preview and activate the site. Serve a test PHP page, enable HTTPS, and retrieve a file using a key uploaded through the panel. If website quotas are enabled, check that the site user receives a quota error when writing beyond the test plan's storage limit.
- Provision a database and write a test row with its application login. Send
a message to a provisioned mailbox and verify its delivery. If a mailbox
quota is enabled, check the limit with
doveadm quota get -u ADDRESS. - Publish the test zone. Query the authoritative nameserver directly with
dig @NAMESERVER DOMAIN A +norecurseand verify the expected answer and theaaflag. Run a backup and restore drill - If you enabled password rotation, rotate a test login and use the replacement to reconnect. Check that the previous password is rejected. If phpMyAdmin is enabled, launch it again from the test account.
- Suspend and resume a test account, then confirm that it can still sign in to the panel. Use a disposable account to verify retirement and name release. Retirement policies
Activate local websites from the panel
Use the local activation worker when the panel and the Ubuntu 26.04 web node share a server. Install Apache and PHP 8.5 FPM on the host and follow the web node setup and socket setup.
Create a dedicated account and install the worker. Its systemd unit grants access to the activation socket for this worker process.
sudo useradd --system --user-group --no-create-home --home-dir /nonexistent \
--shell /usr/sbin/nologin coulobre-provisioner
sudo install -m 0644 deploy/systemd/coulobre-provisioner.service /etc/systemd/system/
sudo systemctl daemon-reload
Set COULOBRE_LOCAL_WEB_ACTIVATION=1 in /etc/coulobre/panel.env, apply pending
database migrations, and restart the panel services.
panel_manage migrate --noinput
sudo systemctl restart coulobre-panel coulobre-worker coulobre-beat
sudo systemctl enable --now coulobre-provisioner.service
Open a completed Apache preview and select Activate site. The panel queues the request and shows its progress when you select Refresh status. Use Retry activation after a reported failure. Operators need permission to view hosting accounts and web provisioning plans and the Can add web activation permission.
The worker applies the domain shown in the preview. If the account's primary domain changes before the worker starts, create a preview for the new domain. An existing web node reservation stays bound to the domain it was created for.
The same worker measures allocated space in a website's document root. Use Measure website storage on a deployed hosting account and reload the page to see the latest result. Website storage measurement
To enforce hard limits, prepare a dedicated ext4 volume with user quotas for the managed sites. Use Change storage limit on the deployed account to apply the hosting plan's default or choose a per-site value. Website storage quotas
Configure PHP per website
Under Hosting plans, set default PHP memory, upload size, request timeout, or PHP-FPM worker limits. The panel captures these values when an operator first requests local activation. A repeat activation preserves an installed pool's settings.
On an active account, use Change PHP settings to set site values or apply the current plan defaults. This requires permission to view the account and Can change site php settings. Plan edits and reassignment take effect when an operator reapplies the defaults. Leave individual values blank to use the web node defaults. Coulobre's default pool allows two workers.
The upload setting applies per file. The pool sets the maximum POST body to one MiB above the chosen upload size. When both limits are set, choose a memory limit at least one MiB higher than the upload size. The timeout applies to PHP execution and the time PHP-FPM spends serving the request. Apache, reverse proxies, and PHP input limits can impose their own shorter limits. PHP upload directives · PHP-FPM pool directives
The web activation worker tests the pool configuration and reloads PHP-FPM before reporting success. Reload the account page to see the last applied values and the result of the current request.
Serve additional hostnames on a website
After activating a website, use Add alias on the hosting account. The alias uses the same document root and PHP-FPM pool as the primary domain. Operators need Can manage website aliases and permission to view hosting accounts. Apache hostname matching selects the virtual host for the alias. Apache name-based virtual hosts
Point the alias to the same address or reverse proxy as the primary domain. Add the DNS records where that hostname is managed. A reverse proxy must forward the alias in the original Host header. Only use hostnames that you control. The panel reserves each hostname for one website and checks existing Apache hostnames when activating an alias.
Once the alias is active, select Enable HTTPS with the permissions and local HTTPS worker described below. The alias uses its own Certbot lineage. HTTP-01 must reach the web node for the alias hostname. Certbot renews it using the same renewal hook as the primary website.
Selecting Remove disables the alias virtual hosts and deletes the dedicated Certbot lineage. Check the result in the account before reusing the hostname. Remove aliases before deleting an account or editing its primary domain. An unmatched hostname can still reach Apache's default virtual host while its DNS points at the node. Use a default virtual host that serves no tenant content when unknown hosts should be rejected. Apache default virtual host · Deleting a Certbot certificate
Enable HTTPS for hosted websites
Once a site is active, obtain the website certificate with Certbot on the web node and enable its HTTPS virtual host. Each site uses its own certificate. The renewal hook reloads Apache after Certbot renews it. Hosted website HTTPS setup
Request HTTPS from the panel
Set up Apache's HTTP-01 webroot and the Certbot renewal hook on the local web node. Register a Certbot account if this node does not already have one, using an email address monitored by the operator. Hosted website HTTPS setup
sudo certbot register --email hostmaster@example.org --agree-tos
sudo groupadd --system coulobre-https-provisioning
sudo useradd --system --user-group --no-create-home --home-dir /nonexistent \
--shell /usr/sbin/nologin coulobre-https-provisioner
sudo install -m 0644 deploy/systemd/coulobre-https-apply.socket \
deploy/systemd/coulobre-https-apply@.service \
deploy/systemd/coulobre-https-provisioner.service /etc/systemd/system/
sudo systemctl daemon-reload
Set COULOBRE_LOCAL_WEB_HTTPS=1 in /etc/coulobre/panel.env, then apply
pending migrations and restart the panel services.
panel_manage migrate --noinput
sudo systemctl restart coulobre-panel coulobre-worker coulobre-beat
sudo systemctl enable --now coulobre-https-apply.socket \
coulobre-https-provisioner.service
On an active site's Apache preview, select Enable HTTPS and use Refresh status to follow the request. This requires the Can add website HTTPS request permission and access to view hosting accounts and web provisioning plans. The worker uses the manifest's primary domain and keeps Certbot logs and credentials on the web node. If the request fails, check the diagnostic and use Retry HTTPS after resolving the problem. Certbot handles later renewals.
The panel uses HTTP-01 for initial issuance. For DNS validation, obtain the certificate on the web node with its configured Certbot DNS plugin and the expected lineage name. The panel can then enable HTTPS using that certificate. Certbot renews it with its saved authenticator. Certbot DNS plugins
Set up SFTP access for hosted websites
Use OpenSSH on the local web node. The site account starts in /public
inside its hosting directory. OpenSSH allows public key authentication
and restricts the connection to file transfers.
OpenSSH server configuration
sudo apt install openssh-server
sudo groupadd --system coulobre-sftp
sudo install -d -m 0755 /etc/ssh/coulobre-authorized-keys
sudo install -m 0644 deploy/openssh/coulobre-sftp.conf.example \
/etc/ssh/sshd_config.d/00-coulobre-sftp.conf
sudo sshd -t
sudo systemctl reload-or-restart ssh.service
Install the worker and socket to manage keys from the panel.
sudo groupadd --system coulobre-sftp-provisioning
sudo useradd --system --user-group --no-create-home --home-dir /nonexistent \
--shell /usr/sbin/nologin coulobre-sftp-provisioner
sudo install -m 0644 deploy/systemd/coulobre-sftp-apply.socket \
deploy/systemd/coulobre-sftp-apply@.service \
deploy/systemd/coulobre-sftp-provisioner.service /etc/systemd/system/
sudo systemctl daemon-reload
Set COULOBRE_LOCAL_WEB_SFTP=1 in /etc/coulobre/panel.env, then apply
pending migrations and restart the panel services.
panel_manage migrate --noinput
sudo systemctl restart coulobre-panel coulobre-worker coulobre-beat
sudo systemctl enable --now coulobre-sftp-apply.socket \
coulobre-sftp-provisioner.service
On an active hosting account, open SFTP access. Assigned customers can manage keys for their accounts. Operators need Can view hosting account and Can change site SFTP access.
Select one or more .pub files to add keys to the hosting account.
A file can contain one OpenSSH public key per line. Each key has its own
fingerprint and Remove key action. Use Revoke SFTP access to
remove all keys for new connections. Revoke access and close any existing
SFTP sessions before transferring the hosting account to another customer.
Connect to the web node's SSH hostname and port, which may differ from
the hostname that a reverse proxy uses for web traffic.
Back up hosted website files
Use the web node commands to archive a website's document root and restore the entire tree or a selected file. The archive stays on the web node at the path supplied by the operator. Website backup and restore
Provision local databases from the panel
Enable the database provisioning socket on the panel host. Install the MariaDB worker under a dedicated identity with access to that socket.
sudo useradd --system --user-group --no-create-home --home-dir /nonexistent \
--shell /usr/sbin/nologin coulobre-db-provisioner
sudo install -m 0644 deploy/systemd/coulobre-database-provisioner.service /etc/systemd/system/
sudo systemctl daemon-reload
Set COULOBRE_LOCAL_DATABASE_PROVISIONING=1 in /etc/coulobre/panel.env, then
apply pending migrations and restart the panel services.
panel_manage migrate --noinput
sudo systemctl restart coulobre-panel coulobre-worker coulobre-beat
sudo systemctl enable --now coulobre-database-provisioner.service
Open a hosting account and select Provision database for a database request. Reload the account page to see the status. Use Retry provisioning after a reported failure. Operators need permission to view hosting accounts and database requests and the Can add database provisioning permission.
The MariaDB node stores the application login in the root-only file
/var/lib/coulobre/database-node/<database-name>.json. Use the credentials
from that file when configuring the hosted application.
Use the MariaDB node commands to create a compressed SQL dump for an individual managed database and restore it to an empty database with the same identity. Database backup and restore
Back up an account's website and databases
Download an account backup manifest from the panel. Use it to create one ZIP on a single server or bundle native archives from separate nodes. The CLI can also include mailbox archives when the downloaded manifest lists mailboxes. Account backup and recovery
Start local account backups from the panel
Enable this option when the panel, website, and the account's MariaDB databases run on the same server. The backup service uses the default MariaDB socket and the website and database registries on that server.
sudo groupadd --system coulobre-backup-requests
sudo useradd --system --user-group --no-create-home --home-dir /nonexistent \
--shell /usr/sbin/nologin coulobre-backup-worker
sudo install -m 0644 deploy/systemd/coulobre-account-backup.socket \
deploy/systemd/coulobre-account-backup@.service \
deploy/systemd/coulobre-backup-worker.service /etc/systemd/system/
sudo systemctl daemon-reload
Set COULOBRE_LOCAL_ACCOUNT_BACKUPS=1 in /etc/coulobre/panel.env, then apply
pending migrations and restart the panel services.
panel_manage migrate --noinput
sudo systemctl restart coulobre-panel coulobre-worker coulobre-beat
sudo systemctl enable --now coulobre-backup-worker.service
Open the account and select Create backup. Operators need permission to view hosting accounts, Apache previews, and database requests, plus Can add account backup job. Reload the page to see the status and the path of the completed ZIP. Only one backup can be queued or running for an account at a time. The node gives each backup up to 30 minutes.
Archives are stored under /var/lib/coulobre/account-backups/ with root-only
access. Retrieve them on the server. The account's Backup archives page
shows all backup requests, archive sizes reported by the node, and expiration
status. Recover archives with the
account bundle commands.
Schedule backups for an account
Select Schedule backups on the account page. Choose a daily time or a weekly day and time, all in UTC. To pause the schedule, clear Enable scheduled backups and save. The account page shows the next scheduled run and identifies the source of each backup in the history. Operators also need Can change account backup schedule to manage schedules.
The scheduler captures the account's current resources when it queues the backup. If an account already has a backup queued or running at dispatch, the scheduler skips that occurrence. After a period offline, it queues at most one missed backup per account and continues with the next future time.
Manage retention of scheduled account backups
Automatic expiration is disabled by default. To offer it in the panel, enable local account backups first, then install the retention drop-in.
sudo install -D -m 0644 deploy/systemd/coulobre-account-backup@.service.d/retention.conf \
/etc/systemd/system/coulobre-account-backup@.service.d/retention.conf
sudo systemctl daemon-reload
Set COULOBRE_LOCAL_BACKUP_RETENTION=1 in /etc/coulobre/panel.env.
panel_manage migrate --noinput
sudo systemctl restart coulobre-panel coulobre-worker coulobre-beat coulobre-backup-worker
Open Backup archives and select Manage retention. Enter a count of 1 to 90 to keep the latest successful scheduled backups or clear the field to disable expiration for the account. Manual backups and scheduled backups marked Protected are kept in addition to that count. Operators need the usual backup permissions, permission to view mailbox requests, and Can manage account backup retention.
The planner selects at most one older archive per account every five minutes. Backups used by a queued or running restore are ineligible. The backup node checks the retained ZIP manifests and their entry lists before removing an older archive. If any retained ZIP is missing or fails those checks, the candidate is kept and the result appears in the archive history. Changing the policy or protecting an archive cancels any expiration for the account that has yet to start. An expiration already in progress can finish.
Expired entries stay in the history and lose their restore actions. Keep
the corresponding .expired records beside the ZIPs to prevent a late
worker delivery from recreating an expired archive.
Restore from local account backups in the panel
Enable local account backups first. Install the restore socket and give the backup worker access to it. The archive and the resources being restored must be on the same server.
sudo groupadd --system coulobre-restore-requests
sudo install -m 0644 deploy/systemd/coulobre-account-restore.socket \
deploy/systemd/coulobre-account-restore@.service /etc/systemd/system/
sudo install -D -m 0644 deploy/systemd/coulobre-backup-worker.service.d/restore.conf \
/etc/systemd/system/coulobre-backup-worker.service.d/restore.conf
Enable the options you need in /etc/coulobre/panel.env.
| Setting | Additional restore permission |
|---|---|
COULOBRE_LOCAL_WEBSITE_RESTORE=1 |
Can add website restore job |
COULOBRE_LOCAL_DATABASE_RESTORE=1 |
Can restore an account database |
COULOBRE_LOCAL_MAILBOX_RESTORE=1 |
Can restore an account mailbox |
Install the socket service drop-in for each enabled action. If you replace an existing website-only restore unit, install the website drop-in to keep website recovery enabled. MariaDB recovery uses the local default MariaDB socket. Mailbox recovery uses local Postfix and Dovecot.
# Website restores
sudo install -D -m 0644 deploy/systemd/coulobre-account-restore@.service.d/website.conf \
/etc/systemd/system/coulobre-account-restore@.service.d/website.conf
# Database restores
sudo install -D -m 0644 deploy/systemd/coulobre-account-restore@.service.d/database.conf \
/etc/systemd/system/coulobre-account-restore@.service.d/database.conf
# Mailbox restores
sudo install -D -m 0644 deploy/systemd/coulobre-account-restore@.service.d/mailbox.conf \
/etc/systemd/system/coulobre-account-restore@.service.d/mailbox.conf
panel_manage migrate --noinput
sudo systemctl daemon-reload
sudo systemctl restart coulobre-panel coulobre-worker coulobre-backup-worker
Operators also need the backup permissions listed above and permission to view mailbox requests for any backup that includes mail. Select the restore action on a completed backup.
- Restore website restores one file or all website files. A single file needs an existing parent directory. Select Replace the existing file at this path to permit overwriting. The old and restored copies must fit within the website quota during staging. The whole website option needs an empty document root.
- Restore database offers databases listed in the backup that still belong to the account. Use the matching empty managed database and keep the application disconnected during recovery. If the import fails after creating objects, inspect the database before attempting another restore.
- Restore mailbox offers mailboxes listed in the backup that still belong to the account. Use a newly provisioned mailbox with no Maildir. Keep delivery and client access paused for that mailbox during recovery, with Postfix and Dovecot running for local checks. The restored mailbox uses the destination credentials and current quota configuration.
The Backup restores section shows each target, source backup, operator,
and result. Keep the request records under
/var/lib/coulobre/account-restores/ while corresponding jobs could still be
delivered. If the panel cannot confirm a restore, check the destination
before submitting another. For resources on separate servers, use the
account bundle commands.
Run a backup and restore drill
Use a disposable account with a website file, a database row, and a delivered mailbox message whose original contents you can compare after recovery. The drill exercises replacement of the test file and recovery into empty targets.
- Choose Create backup with mail included. Wait for Ready and check that the archive exists on the server.
- Change the test file. Restore that path with replacement selected and verify its contents. Move the test site files out of the document root, restore the entire website, and verify the PHP response and static file.
- Empty the disposable database while its application is disconnected. Restore it from the same backup and query for the original row.
- Pause delivery and client access for the test mailbox and move its Maildir aside. Restore the mailbox and verify the original message, then resume delivery and client access. Check each result under Backup restores.
Include mailboxes on the same server
Complete the Postfix and Dovecot setup on the same server. Install the service drop-in so the backup service can create its temporary Maildir copies on the mail volume.
sudo install -D -m 0644 deploy/systemd/coulobre-account-backup@.service.d/mail.conf \
/etc/systemd/system/coulobre-account-backup@.service.d/mail.conf
sudo systemctl daemon-reload
Set COULOBRE_LOCAL_ACCOUNT_BACKUP_MAIL=1 in /etc/coulobre/panel.env and
restart coulobre-panel and coulobre-backup-worker. Operators with
permission to view mailbox requests can select Include mailboxes when
starting or scheduling an account backup. They can also edit an existing
schedule that includes mail. If you disable mailbox backups while such a
schedule is enabled, the subsequent jobs report a failure until you adjust
the schedule or re-enable local mailbox backups. Provision all listed
mailboxes before requesting a backup with mail. For mailboxes on a separate
server, use the
bundle workflow for separate nodes.
Show local database and mailbox connection details
On a single-server installation, the panel can show the credentials for MariaDB databases and mailboxes provisioned by Coulobre. Install the current web package and collect its static files. Use an HTTPS panel deployment with debug mode off.
Create the socket group and install the credential service and the panel drop-in. Only the panel service needs access to this socket.
sudo groupadd --system coulobre-credential-requests
sudo install -m 0644 deploy/systemd/coulobre-service-credentials.socket \
deploy/systemd/coulobre-service-credentials@.service /etc/systemd/system/
sudo install -D -m 0644 deploy/systemd/coulobre-panel.service.d/credentials.conf \
/etc/systemd/system/coulobre-panel.service.d/credentials.conf
For each resource type you want to make available, install its service drop-in
and set the matching flag in /etc/coulobre/panel.env.
# COULOBRE_LOCAL_DATABASE_CREDENTIALS=1
sudo install -D -m 0644 deploy/systemd/coulobre-service-credentials@.service.d/database.conf \
/etc/systemd/system/coulobre-service-credentials@.service.d/database.conf
# COULOBRE_LOCAL_MAILBOX_CREDENTIALS=1
sudo install -D -m 0644 deploy/systemd/coulobre-service-credentials@.service.d/mailbox.conf \
/etc/systemd/system/coulobre-service-credentials@.service.d/mailbox.conf
For a mailbox page to show the IMAP endpoint, set COULOBRE_MAIL_IMAP_HOST
to the hostname where your Dovecot deployment accepts IMAP with implicit TLS
on port 993. Dovecot TLS settings
panel_manage migrate --noinput
panel_manage collectstatic --noinput
sudo systemctl daemon-reload
sudo systemctl restart coulobre-panel
On an account page, choose Connection details beside a database or mailbox and confirm the current panel password. Customers can view logins for their assigned accounts. Operators need permission to view the account and resource and the relevant Can reveal database credentials or Can reveal mailbox credentials permission.
Passwords are read from the service node and rendered on the confirmation response. The panel stores access events and outcomes in Django admin under Service credential accesses. The audit log includes the actor and resource identifiers. After five incorrect confirmations within five minutes, the panel temporarily stops accepting new attempts for that user.
Rotate a database or mailbox password
Enable the corresponding local credential service first. For each local
service that should allow password rotation, install its rotation drop-in
and enable the matching flag in /etc/coulobre/panel.env.
# COULOBRE_LOCAL_DATABASE_CREDENTIALS_ROTATION=1
sudo install -D -m 0644 deploy/systemd/coulobre-service-credentials@.service.d/database-rotation.conf \
/etc/systemd/system/coulobre-service-credentials@.service.d/database-rotation.conf
# COULOBRE_LOCAL_MAILBOX_CREDENTIALS_ROTATION=1
sudo install -D -m 0644 deploy/systemd/coulobre-service-credentials@.service.d/mailbox-rotation.conf \
/etc/systemd/system/coulobre-service-credentials@.service.d/mailbox-rotation.conf
sudo systemctl daemon-reload
sudo systemctl restart coulobre-panel
Open Connection details, choose Rotate password, and confirm the current panel password. A customer can rotate a login on their own account. An operator needs the reveal permission and the corresponding Can rotate database credentials or Can rotate mailbox credentials permission. The service node generates the replacement. Copy it into any application configuration or mail client using that login before its next connection. A new phpMyAdmin sign-in reads the current database password.
If the panel cannot confirm the change, retry from the same form or reopen it to resume the pending request. MariaDB data and grants, and mailbox messages and quotas, are retained. Existing sessions can stay connected until they close. The audit trail records the attempt and outcome. The password stays in the node's root-only registry and is returned only on an authorized confirmation. Resolve an unconfirmed rotation before suspending the account or changing the affected mailbox's quota.
Open phpMyAdmin from the panel
Enable database credential access first. Install phpMyAdmin with PHP's MySQL and cURL extensions. Serve phpMyAdmin on a dedicated HTTPS hostname with its own PHP-FPM pool. The pool needs read access to its bridge configuration and write access to its private session directory.
The examples below use the Ubuntu 26.04 package paths. Adjust the TLS files, hostname, and panel origin in the example configurations before enabling the virtual host. If the distribution's Apache configuration exposes phpMyAdmin globally, disable it and include the package configuration only in the dedicated virtual host.
sudo apt install phpmyadmin php8.5-fpm php8.5-mysql php8.5-curl
sudo useradd --system --user-group --no-create-home --home-dir /nonexistent \
--shell /usr/sbin/nologin coulobre-phpmyadmin
sudo install -d -g coulobre-phpmyadmin -m 0750 \
/etc/coulobre-phpmyadmin /var/lib/coulobre-phpmyadmin
sudo install -d -o coulobre-phpmyadmin -g coulobre-phpmyadmin -m 0700 \
/var/lib/coulobre-phpmyadmin/sessions /var/lib/coulobre-phpmyadmin/tmp
sudo install -g coulobre-phpmyadmin -m 0640 deploy/phpmyadmin/bridge.php.example \
/etc/coulobre-phpmyadmin/bridge.php
sudo install -m 0644 deploy/phpmyadmin/coulobre-signon.php \
/usr/share/phpmyadmin/coulobre-signon.php
sudo install -m 0644 deploy/phpmyadmin/config.inc.php.example \
/etc/phpmyadmin/conf.d/99-coulobre-signon.php
sudo install -m 0644 deploy/phpmyadmin/pool.conf.example \
/etc/php/8.5/fpm/pool.d/coulobre-phpmyadmin.conf
sudo install -m 0644 deploy/phpmyadmin/apache.conf.example \
/etc/apache2/sites-available/coulobre-phpmyadmin.conf
Create a random bridge key with openssl rand -hex 32 and store it in
/etc/coulobre-phpmyadmin/bridge.key, owned by root with group
coulobre-phpmyadmin and permissions 0640. Set the same value in
COULOBRE_PHPMYADMIN_BRIDGE_KEY in the panel environment. Generate a separate
value with openssl rand -hex 32 for
/etc/coulobre-phpmyadmin/session.key with the same ownership and permissions.
Set COULOBRE_PHPMYADMIN_URL=https://tools.example.org/phpmyadmin to the public
base URL. The phpMyAdmin server must be able to reach the configured panel origin
over HTTPS and verify its certificate.
panel_manage migrate --noinput
panel_manage collectstatic --noinput
sudo a2enmod ssl proxy_fcgi
sudo a2ensite coulobre-phpmyadmin
sudo php-fpm8.5 --test
sudo apache2ctl configtest
sudo systemctl reload php8.5-fpm apache2
sudo systemctl restart coulobre-panel
Choose Open phpMyAdmin next to a database. The panel issues a single-use ticket valid for 45 seconds. phpMyAdmin exchanges it server-to-server for the managed login. Existing database grants scope the session to the selected database. Sign out of phpMyAdmin to end its session. phpMyAdmin signon mode
Open a mailbox in Roundcube
On Ubuntu 26.04 with PHP 8.5, use the current Roundcube 1.7 Complete
release from Roundcube Downloads. Verify
the archive and install Roundcube in /opt/roundcube following the
upstream manual setup.
The Ubuntu 26.04 package at version 1.6.11 cannot start with PHP 8.5.
Install the required PHP extensions for Roundcube and its database, as
well as php8.5-curl for the bridge.
Use the mail server already configured for Coulobre. Confirm that a mailbox can sign in over TLS using its full email address. Configure a single IMAP host with a trusted certificate and configure Roundcube's SMTP submission settings for sending mail. The same setup works with the panel's local or remote mailbox credential service.
Use a dedicated PHP-FPM account. Grant that account read access to the Roundcube configuration and bridge key, access to the database, and write access to the Roundcube temporary files and logs. Use the same account for Roundcube maintenance jobs. Keep the application code and configuration owned by root.
sudo useradd --system --user-group --no-create-home --shell /usr/sbin/nologin coulobre-roundcube
sudo install -d -o root -g coulobre-roundcube -m 0750 /etc/coulobre-roundcube
sudo install -o root -g coulobre-roundcube -m 0640 /dev/null /etc/coulobre-roundcube/bridge.key
sudo sh -c 'openssl rand -hex 32 > /etc/coulobre-roundcube/bridge.key'
sudo install -D -m 0644 deploy/roundcube/coulobre_webmail.php \
/opt/roundcube/plugins/coulobre_webmail/coulobre_webmail.php
sudo install -m 0644 deploy/roundcube/pool.conf.example \
/etc/php/8.5/fpm/pool.d/coulobre-roundcube.conf
sudo install -o root -g coulobre-roundcube -m 0640 deploy/roundcube/config.inc.php.example \
/etc/coulobre-roundcube/webmail.inc.php
sudoedit /etc/coulobre-roundcube/webmail.inc.php
Set the panel origin to the exact HTTPS origin users visit, including a
non-default port if one is used. Set imap_host to the mail server's TLS
endpoint. Include the example from the end of Roundcube's
/opt/roundcube/config/config.inc.php.
require '/etc/coulobre-roundcube/webmail.inc.php';
Configure the webmail site with deploy/roundcube/apache.conf.example.
Substitute the hostname and certificate paths, enable Apache's ssl and
proxy_fcgi modules, and enable the site. The example serves
/opt/roundcube/public_html through the dedicated FPM socket and blocks
the web installer. Run the Apache configuration test and reload Apache
and PHP-FPM. Keep certificate verification enabled between Roundcube and
both the panel and the IMAP server.
On the panel, set the following values in /etc/coulobre/panel.env. Use the
same random key from bridge.key for Roundcube only. Set the webmail URL to
the canonical HTTPS base URL so a form POST can arrive without a redirect.
COULOBRE_ROUNDCUBE_URL=https://webmail.example.org
COULOBRE_ROUNDCUBE_BRIDGE_KEY=
Run panel_manage migrate --noinput, collect static files, and restart
coulobre-panel. Use Open webmail beside a mailbox in the account
view. The browser carries a single-use ticket valid for 45 seconds.
Roundcube exchanges the ticket with Coulobre over HTTPS and uses its
ordinary IMAP login. The exchange appears in Service credential
accesses. Opening another mailbox in the same browser switches the
current Roundcube session.
Publish local DNS zones from the panel
To publish to BIND9 on another host, use the separate-node setup.
Enable the DNS publishing socket on the panel host. Install the BIND9 publishing worker under a dedicated identity with access to that socket.
sudo useradd --system --user-group --no-create-home --home-dir /nonexistent \
--shell /usr/sbin/nologin coulobre-dns-publisher
sudo install -m 0644 deploy/systemd/coulobre-dns-publisher.service /etc/systemd/system/
sudo systemctl daemon-reload
Set COULOBRE_LOCAL_DNS_PUBLISHING=1 in /etc/coulobre/panel.env, then apply
pending migrations and restart the panel services.
panel_manage migrate --noinput
sudo systemctl restart coulobre-panel coulobre-worker coulobre-beat
sudo systemctl enable --now coulobre-dns-publisher.service
Open a hosting account and select Publish zone. Reload the account page to see progress and the last SOA serial confirmed by the local BIND9 node. Operators need permission to view hosting accounts and DNS zones and the Can add DNS publication permission.
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
To provision Postfix and Dovecot on another host, use the separate-node setup.
Set up Postfix and Dovecot on the Ubuntu 24.04 or 26.04 panel host and enable the mailbox provisioning socket. Install the dedicated worker that connects to that socket.
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.
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 is kept 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.
Show mailbox connection details in the panel
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
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
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
Filter incoming mail with SpamAssassin
Install the distribution's SpamAssassin and spamass-milter packages on
the host where Postfix receives mail. Use the same setup for a co-located
mail service and a separate mail node. A node shared by multiple Coulobre
installations needs one filter configuration.
sudo apt install spamassassin spamd spamc spamass-milter
sudo adduser spamass-milter postfix
sudoedit /etc/default/spamd /etc/default/spamass-milter /etc/postfix/main.cf
Use the settings from deploy/spamassassin/spamd.default.example and
deploy/spamassassin/spamass-milter.default.example in the corresponding
defaults files. The scanner listens on loopback and uses site-wide rules.
Postfix reaches the milter through a group-restricted socket inside its
queue directory.
Merge the smtpd_milters entry in
deploy/spamassassin/postfix-main.cf.example into the existing list. If a
receiving service overrides smtpd_milters in master.cf, add the entry
there too. The example skips authenticated SMTP and covers messages
received by an SMTP service configured with this milter. Deliveries from
the local sendmail command use Postfix's separate non-SMTP path.
Postfix Milter setup
If Debian 13's spamass-milter.service is generated from
/etc/init.d/spamass-milter, install this drop-in so systemd tracks the
milter process.
sudo install -D -m 0644 deploy/spamassassin/debian-milter.service.conf \
/etc/systemd/system/spamass-milter.service.d/coulobre.conf
sudo systemctl daemon-reload
sudo spamassassin --lint
sudo systemctl enable spamd.service spamass-milter.service
sudo systemctl restart spamd.service spamass-milter.service
sudo postfix check
sudo postfix reload
The example delivers scanned messages with an X-Spam-Status header and
preserves the subject and body. Set the tagging threshold with
required_score in /etc/spamassassin/local.cf. Restart spamd.service
after editing its rules. The example lets Postfix accept mail during a
milter outage and lets the milter pass mail through during a scanner
outage. Messages above the spamc size limit also pass through unscanned.
The per-milter fallback preserves the failure policy of any other filter.
SpamAssassin settings
On a test mail node, check delivery through SMTP to a Coulobre mailbox and inspect the full headers over IMAP.
- Send a normal message and look for
X-Spam-Status: No. - Send the GTUBE test message
and look for
X-Spam-Status: YeswithGTUBEin the matched tests. - Stop
spamd.serviceand send another test message. Confirm it arrives without a scanner-added status. Start the scanner and repeat withspamass-milter.servicestopped. Start both services after testing.
Use spamc -d 127.0.0.1 -K to check the scanner from the mail node. Read
scan results with journalctl -u spamd.service -u spamass-milter.service
and Postfix's filter connection errors with journalctl -t postfix/smtpd
or in the mail log.
Add spamd and spamass-milter to the mail node's
service health checks to monitor the
two units.
Provision mail and DNS on separate servers
Choose one destination per service. For example, run mail locally and publish DNS to a separate authoritative server. The panel uses the same worker and job history for each deployment. On the panel server, install the SSH drop-in only for a service that uses another host.
Several Coulobre installations under the same administration can share a destination. Generate a separate key per sending installation and service. The receiver accepts each key separately, and removing its line revokes that installation's access. Each receiver can manage any Coulobre resource on its service. Assign each domain to one installation for changes to its zones and mailboxes.
Use the values for each service below when following the commands.
| Value | DNS | |
|---|---|---|
node |
dns |
mail |
request_group |
coulobre-dns-provisioning |
coulobre-mail-provisioning |
receiver |
coulobre-dns-request |
coulobre-mail-request |
worker |
coulobre-dns-publisher |
coulobre-mail-provisioner |
| Worker unit | coulobre-dns-publisher.service |
coulobre-mailbox-provisioner.service |
| Panel flag | COULOBRE_LOCAL_DNS_PUBLISHING=1 |
COULOBRE_LOCAL_MAILBOX_PROVISIONING=1 |
Prepare the panel's SSH identity
Start from the same Coulobre source release on both hosts. For DNS, set these variables on the panel host. For mail, substitute the values in the table.
node=dns
request_group=coulobre-dns-provisioning
worker=coulobre-dns-publisher
sudo apt install openssh-client
getent group "$request_group" >/dev/null || sudo groupadd --system "$request_group"
id "$worker" >/dev/null 2>&1 || sudo useradd --system --user-group \
--no-create-home --home-dir /nonexistent --shell /usr/sbin/nologin "$worker"
sudo install -d -o root -g root -m 0755 /etc/coulobre-remote
sudo install -d -o root -g "$worker" -m 0750 "/etc/coulobre-remote/$node"
sudo install -o root -g "$worker" -m 0640 \
"deploy/openssh/$node-node-client.conf.example" "/etc/coulobre-remote/$node/ssh_config"
sudo sh -c 'umask 077; ssh-keygen -t ed25519 -N "" -f "$1/id_ed25519"' \
sh "/etc/coulobre-remote/$node"
sudo chown "$worker:$worker" "/etc/coulobre-remote/$node/id_ed25519"
sudo cat "/etc/coulobre-remote/$node/id_ed25519.pub"
Set HostName and Port in the SSH client configuration. Obtain the
destination's SSH host public key through your existing administrative
connection. Put the hostname or IP address, key type, and public key on one
line in /etc/coulobre-remote/ under the service's known_hosts file. For a
port other than 22, use [hostname]:port in that line. Make the file owned
by root and readable by the worker group. The worker checks this pinned host
key before sending a request. OpenSSH client configuration
Install the node on the destination
On the destination, unpack the source release and install the Coulobre node
commands in /opt/coulobre.
sudo apt install python3-venv openssh-server socat
sudo python3 -m venv /opt/coulobre
sudo /opt/coulobre/bin/pip install .
Set up BIND9 or Postfix and Dovecot, then enable the corresponding DNS socket or mailbox socket. The destination runs the local socket service shipped with Coulobre. Enable SpamAssassin on the mail node for incoming spam filtering.
Save the panel's public key from the previous step as panel-node.pub on
the destination. Create a receiver with only the socket group for that
service. This example uses DNS. Substitute the values for a mail node.
request_group=coulobre-dns-provisioning
receiver=coulobre-dns-request
id "$receiver" >/dev/null 2>&1 || sudo useradd --system --user-group --groups "$request_group" \
--no-create-home --home-dir / --shell /bin/sh "$receiver"
sudo install -d -o root -g root -m 0755 /etc/ssh/coulobre-node-keys
authorized_keys="/etc/ssh/coulobre-node-keys/$receiver"
sudo touch "$authorized_keys"
sudo chown root:root "$authorized_keys"
sudo chmod 0644 "$authorized_keys"
sudo tee -a "$authorized_keys" < panel-node.pub >/dev/null
sudo install -m 0644 deploy/openssh/coulobre-node-requests.conf.example \
/etc/ssh/sshd_config.d/00-coulobre-node-requests.conf
sudo sshd -t
sudo systemctl reload-or-restart ssh.service
The receiver authenticates with the panel's key and runs a fixed relay to the service socket. The socket's systemd service validates and applies the request. OpenSSH server configuration
Enable the remote destination on the panel
Use the matching worker from the table. The commands below use DNS.
node=dns
worker_unit=coulobre-dns-publisher.service
unit="coulobre-$node-apply"
sudo install -m 0644 "deploy/systemd/$unit.socket" \
"deploy/systemd/$unit@.service" "deploy/systemd/$worker_unit" /etc/systemd/system/
sudo install -D -m 0644 "deploy/systemd/$unit@.service.d/remote.conf" \
"/etc/systemd/system/$unit@.service.d/remote.conf"
sudo systemctl daemon-reload
Set the corresponding flag from the table in /etc/coulobre/panel.env. The
flag enables the existing panel actions and queue for that service. Restart
the panel and its general worker so they pick up the setting, then enable
the dedicated worker.
sudo systemctl restart coulobre-panel coulobre-worker coulobre-beat
sudo systemctl enable --now "$worker_unit"
Use Publish zone or Provision mailbox and check the status on the
account page. After correcting a connection or host key problem, use the
corresponding retry action. Check the panel-side relay log with
sudo journalctl -u 'coulobre-dns-apply@*.service' for DNS or
sudo journalctl -u 'coulobre-mail-apply@*.service' for mail.
When moving an existing service, migrate its data and provisioning state and let outstanding jobs finish before switching destinations. For mail on a separate server, use the separate-node backup workflow.
Enable connection details for remote mailboxes
Use a separate SSH identity for credential access. Install the same Coulobre version on both ends. The key grants access to Coulobre-managed mailbox logins on that receiver. Keep it with the relay account on the panel and assign each mailbox domain to one sending installation.
On the panel node, create the relay user and its SSH directory. Generate a
dedicated key pair, copy the public half to the mail node, and install the
verified SSH host key for the destination as known_hosts in the relay
directory.
relay=coulobre-mail-credential-relay
dir=/etc/coulobre-remote/mail-credentials
getent group coulobre-credential-requests >/dev/null || sudo groupadd --system coulobre-credential-requests
sudo useradd --system --user-group --no-create-home --home-dir /nonexistent \
--shell /usr/sbin/nologin "$relay"
sudo install -d -o root -g "$relay" -m 0750 "$dir"
sudo install -o root -g "$relay" -m 0640 deploy/openssh/mail-credential-client.conf.example "$dir/ssh_config"
sudoedit "$dir/ssh_config"
# Install id_ed25519 with owner $relay and mode 0600.
# Install known_hosts with group $relay and mode 0640.
sudo install -m 0644 deploy/systemd/coulobre-mail-credentials.socket \
deploy/systemd/coulobre-mail-credentials@.service /etc/systemd/system/
sudo install -D -m 0644 deploy/systemd/coulobre-mail-credentials@.service.d/remote.conf \
/etc/systemd/system/coulobre-mail-credentials@.service.d/remote.conf
sudo install -D -m 0644 deploy/systemd/coulobre-panel.service.d/credentials-remote-mail.conf \
/etc/systemd/system/coulobre-panel.service.d/credentials-remote-mail.conf
On the mail node, save the panel's public key as mail-credential.pub and
install the credential receiver and local socket.
receiver=coulobre-mail-credential-request
getent group coulobre-credential-requests >/dev/null || sudo groupadd --system coulobre-credential-requests
sudo useradd --system --user-group --groups coulobre-credential-requests \
--no-create-home --home-dir / --shell /bin/sh "$receiver"
sudo install -d -m 0755 /etc/ssh/coulobre-node-keys
sudo install -m 0644 mail-credential.pub "/etc/ssh/coulobre-node-keys/$receiver"
sudo install -m 0644 deploy/openssh/coulobre-mail-credentials.conf.example \
/etc/ssh/sshd_config.d/01-coulobre-mail-credentials.conf
sudo install -m 0644 deploy/systemd/coulobre-mail-credentials.socket \
deploy/systemd/coulobre-mail-credentials@.service /etc/systemd/system/
sudo sshd -t
sudo systemctl daemon-reload
sudo systemctl reload-or-restart ssh.service
sudo systemctl enable --now coulobre-mail-credentials.socket
For rotation, also install the receiver's rotation drop-in on the mail
node and run sudo systemctl daemon-reload there.
sudo install -D -m 0644 deploy/systemd/coulobre-mail-credentials@.service.d/rotation.conf \
/etc/systemd/system/coulobre-mail-credentials@.service.d/rotation.conf
On the panel, set COULOBRE_REMOTE_MAILBOX_CREDENTIALS=1 and, for password
changes, COULOBRE_REMOTE_MAILBOX_CREDENTIALS_ROTATION=1. Set
COULOBRE_MAIL_IMAP_HOST to the mail server's client-facing hostname. Run
panel_manage migrate --noinput, reload systemd, and restart
coulobre-panel. These flags route mailbox credential requests to the
remote receiver, while databases still use the local credential service.
Manage resellers
Open Resellers to add a reseller login or change an existing reseller's panel access, account limit, and allowed hosting plans. The detail page shows allocated accounts and audit history. Viewing account names and plan details requires the corresponding hosting account and hosting plan permissions.
The account limit and allowed plans apply when a reseller creates a hosting account. Reducing the limit or removing a plan takes effect on the next self-service creation request. Existing accounts still count toward the limit and retain their assigned plans. Operators can assign and move accounts from the hosting account form. Use the audit history to review changes to reseller policy and account assignments made through the panel.
Suspend and resume hosting services
Open the hosting account and use Hosting service access. This requires
hosting.view_hostingaccount and hosting.suspend_hosting_services. The panel
shows the requested state, the last confirmed restriction per service, queued
work, and any errors. The recent history records the operator and time of each
request. Retry failed services replays the failed changes from a
completed request. An operator can also request the opposite state once all
steps have finished.
- Apache denies requests to the account's document root, including requests through HTTPS and aliases. Keep the shared Certbot challenge directory outside the hosted document root so HTTP-01 renewal can continue.
- OpenSSH, MariaDB, and Dovecot refuse new SFTP, database, and mailbox logins. Existing connections can stay open until they are closed. Resume restores access using the saved credentials and respects any pre-existing MariaDB account lock.
- Postfix continues accepting incoming mail and Dovecot keeps delivering it with the existing quota. Published DNS continues to resolve. Both policies apply to local installations and to deployments with remote mail and DNS servers. Customer panel sign-in is controlled separately.
Use the same package version on the panel and remote mail nodes. Suspension covers resources recorded by Coulobre as provisioned or restored. Complete pending or failed provisioning before suspending an account. Requests that could activate new resources and restore requests wait until service access is active and confirmed again. Website files, mail, database contents, certificates, and storage limits are retained throughout.
Retire a hosting account
Release covers resources recorded as provisioned or restored through the panel. If you applied a manifest directly on a node, first run the matching panel provisioning action to record it. Suspend the account and finish its pending service, backup, restore, and credential operations. Open Retire account to review the managed website and aliases, certificate requests, SSH key fingerprints, databases, mailboxes, DNS zones, and backup archives. An operator with Can retire hosting accounts confirms the primary domain shown in the preview. Retirement detaches the customer's and reseller's access to this hosting account. It stops the account's backup schedule and automatic archive expiry.
- Keep names reserved leaves the suspended resources in place and keeps published DNS and incoming mail available. The names remain assigned to the retired account. Operators can choose to release them later.
- Release names and retain data removes the managed Apache sites, Certbot lineages, SFTP keys, mail delivery and lookup entries, and authoritative BIND zones. The owned database stays locked under its original account identifier. Website files and mail are moved to private archives on their service nodes.
The release uses the provisioning workers already configured for the account, including remote mail and DNS. Bring the panel and remote nodes to the same package version. An alias is removed before its primary website. A failed cleanup leaves the names reserved. Check the error and choose Retry failed cleanup to continue the same operation. The panel releases the hostname, alias, DNS, and mailbox reservations after every node has confirmed cleanup. New databases use the new account's identifier. Resolver caches may continue serving previous DNS answers until their TTLs expire.
Retired accounts lists the original account identity, the policy, node results, and the operator history. The completed node operations show the archive reference, which is the operation UUID used in the paths below.
| Retained material | Location on its node |
|---|---|
| Website files | /srv/coulobre/web/.retired/<archive-reference>/ |
| Website configuration and SFTP keys | /var/lib/coulobre/web-node/.retired/<archive-reference>/ |
| Mailbox data | /srv/coulobre-mail/.retired/<archive-reference>/ |
| Mailbox credential registry | /var/lib/coulobre/mail-node/.retired/<archive-reference>/ |
| Unpublished zone file | /etc/bind/coulobre/.retired/<archive-reference>/zone |
| Database contents | Original MariaDB schema, accessible to the node administrator |
Keep the managed data directories on their service filesystems to allow an atomic move into the archive directory. Existing backup archives remain available to operators with backup access.
Monitor local and remote services
The panel's Service health page shows the latest observation and timestamp for each configured service and node. Superusers and operators with Can view service health can open the page. The collector checks systemd unit states. Use the corresponding service tests to check mail delivery, DNS answers, or website responses. The collector and dashboard both need the panel database to record and display observations.
Set COULOBRE_SERVICE_HEALTH in /etc/coulobre/panel.env. This example checks
local panel services and two records for remote mail and DNS services.
COULOBRE_SERVICE_HEALTH='{"panel-01":{"local":["panel","worker","scheduler","apache","php-fpm","mariadb","rabbitmq"]},"mail-01":{"ssh":["postfix","dovecot"]},"dns-01":{"ssh":["bind9"]}}'
Choose an ID for each node using lower-case letters, numbers, and hyphens,
starting with a letter. Keep the IDs stable for the same hosts. List one
local node per panel installation and use ssh for each additional host.
Use bind9, postfix, dovecot, spamd, and spamass-milter under
local for co-located services or under ssh for separate nodes. Only
list the spam filter units where filtering is configured. Update the
Coulobre package on a remote node before adding its filter units. The
SSH client matches each remote node ID to a Host entry.
Install the collector with a dedicated service identity after updating the panel package.
sudo useradd --system --user-group --no-create-home --home-dir /nonexistent \
--shell /usr/sbin/nologin coulobre-health
sudo install -m 0644 deploy/systemd/coulobre-health.service \
deploy/systemd/coulobre-health.timer /etc/systemd/system/
panel_manage migrate --noinput
panel_manage collectstatic --noinput
sudo systemctl daemon-reload
sudo systemctl restart coulobre-panel
sudo systemctl enable --now coulobre-health.timer
The timer runs again one minute after each collection finishes. Unknown
means there is no reading or the collector could not obtain a unit state.
Stale shows the last observation when it is at least five minutes old.
To run a check immediately, use sudo systemctl start coulobre-health.service.
systemctl unit properties
Enable read-only remote checks
Set up a collector key on the panel host. Configure an SSH alias for each
remote node and pin that server's verified SSH host public key in the
collector's known_hosts file. Use [hostname]:port for a nonstandard port.
Keep the configuration and host keys owned by root and readable by the
coulobre-health group.
sudo apt install openssh-client
sudo install -d -o root -g coulobre-health -m 0750 /etc/coulobre-health
sudo install -o root -g coulobre-health -m 0640 \
deploy/openssh/health-client.conf.example /etc/coulobre-health/ssh_config
sudo ssh-keygen -t ed25519 -N '' -f /etc/coulobre-health/id_ed25519
sudo chown coulobre-health:coulobre-health /etc/coulobre-health/id_ed25519
sudo cat /etc/coulobre-health/id_ed25519.pub
On each remote host, install the same Coulobre package in /opt/coulobre.
Save the collector public key as panel-health.pub. Use the key only for
the receiver below. The SSH account runs the fixed status command under its
own unprivileged identity.
sudo apt install openssh-server
sudo useradd --system --user-group --no-create-home --home-dir / --shell /bin/sh \
coulobre-health-request
sudo install -d -m 0755 /etc/ssh/coulobre-node-keys
sudo install -o root -g root -m 0644 panel-health.pub \
/etc/ssh/coulobre-node-keys/coulobre-health-request
sudo install -m 0644 deploy/openssh/coulobre-health-request.conf.example \
/etc/ssh/sshd_config.d/00-coulobre-health-request.conf
sudo sshd -t
sudo systemctl reload-or-restart ssh.service
Restart the panel after adding node IDs. Run the collector and open Service health to check the remote readings. Recovery of the SSH connection or the service is reflected by the next successful check.