4071 lines
198 KiB
Markdown
4071 lines
198 KiB
Markdown
# Install Coulobre Panel on one server
|
|
|
|
This setup runs the panel, its Celery worker and scheduler, MariaDB, RabbitMQ,
|
|
and Apache on one server. Apache serves the panel and its static files and
|
|
connects to Gunicorn over a Unix socket.
|
|
|
|
| Distribution | Panel | Managed websites | Local mailbox setup |
|
|
| --- | --- | --- | --- |
|
|
| Ubuntu 26.04 | Yes | PHP 8.5 FPM | Dovecot 2.4 |
|
|
| Debian 13 (Trixie) | Yes | PHP 8.4 FPM | Dovecot 2.4 |
|
|
| Ubuntu 24.04 | Yes | — | Dovecot 2.3 |
|
|
|
|
Use the distribution's PHP-FPM packages on a managed web node. Coulobre uses
|
|
their pool directory, configuration test command, and systemd service. Debian
|
|
13 supplies Python 3.13 for the panel virtual environment.
|
|
[Debian 13 release notes](https://www.debian.org/releases/trixie/release-notes/whats-new.en.html)
|
|
|
|
## Install with the setup wizard or CLI
|
|
|
|
Run the installer from a verified source release on a fresh systemd host.
|
|
Ubuntu 26.04 LTS is the primary target. The installer also accepts Debian
|
|
13 and Ubuntu 24.04. Managed website activation uses the distribution's
|
|
PHP-FPM on Ubuntu 26.04 and Debian 13. Manage upgrades through the
|
|
[upgrade guide](#upgrade-an-existing-panel).
|
|
|
|
Choose Let's Encrypt, an existing TLS certificate, or a trusted external
|
|
HTTPS proxy. For Let's Encrypt, set `access = "acme"` and point the panel
|
|
hostname's public A and AAAA records at the host accepting HTTP on port 80.
|
|
Certbot requests and renews the certificate using HTTP-01. The operator
|
|
email is used for the ACME account. See Certbot's log if a challenge fails.
|
|
For an existing certificate, keep the TLS files in a system location such as
|
|
`/etc/ssl/` or `/etc/letsencrypt/`. This also works on a LAN with an
|
|
internal CA. For an
|
|
external proxy, provide the private origin address and port and the
|
|
proxy's peer address. Set up the upstream proxy as described under
|
|
[External reverse proxy](#external-reverse-proxy).
|
|
|
|
The installer generates the panel, MariaDB, and RabbitMQ secrets. It
|
|
binds MariaDB and the broker's AMQP listener to loopback and configures
|
|
Apache, the panel, the workers, and the scheduler. Keep service management
|
|
ports private. A local DNS selection configures authoritative BIND9.
|
|
A managed mail installation configures Postfix delivery and authenticated
|
|
SMTP submission, Dovecot IMAP, and Rspamd signing and rate limits. Provide
|
|
a certificate and private key for the mail hostname or choose `tls = "acme"`.
|
|
For ACME on a separate mail node, port 80 must be free for the Certbot
|
|
standalone listener during issuance and renewal. Use the additional
|
|
deployment sections for webmail, hosted website HTTPS, and account backups.
|
|
|
|
### Interactive command line
|
|
|
|
```sh
|
|
sudo ./deploy/install-panel.py --interactive
|
|
```
|
|
|
|
The installer opens a terminal wizard. Use the arrow keys to select an
|
|
option, Enter to continue, and F2 to go back a step. At the review screen,
|
|
choose Edit to change any section. The wizard uses plain prompts when
|
|
screen controls are unavailable. During installation it prints progress
|
|
to the terminal.
|
|
|
|
Choose a topology and the DNS and email roles first. Full-service starts
|
|
with both roles on the panel server. Custom starts with the panel alone
|
|
and lets you choose which roles to add. Distributed starts with remote
|
|
installation selected for both roles. Switch either to `remote` when
|
|
connecting a receiver that already serves that role.
|
|
|
|
The installer checks field values as you enter them and retains valid
|
|
answers when you correct a mistake. Review the plan and edit individual
|
|
sections before confirming. It checks the pinned SSH key files and tests
|
|
SSH authentication and noninteractive sudo for remote installations before
|
|
installing packages. If a check fails, correct that receiver's details or
|
|
return to the review after fixing access on its host.
|
|
|
|
Enter the password in the terminal or use `--admin-password-file` to read
|
|
it from a root-owned `0600` file. You can save the confirmed settings as
|
|
TOML. If an installation step fails, fix the reported problem and choose
|
|
`retry` to resume with the same settings.
|
|
|
|
For hosted website DNS, enter the public IPv4 or IPv6 addresses that clients
|
|
use to reach hosted sites. Choosing `none` leaves the default A and AAAA
|
|
records unset until you configure hosting addresses.
|
|
For Coulobre-managed DNS, enter the hostnames of the authoritative
|
|
nameservers that will serve new zones. For a public domain, set the delegation
|
|
at its registrar as well.
|
|
|
|
### Automated command line
|
|
|
|
Copy [the parameter file example](../deploy/panel-install.toml.example),
|
|
set the hostname and service choices, and provide the path to the private
|
|
administrator password file. Check the parameters before running the
|
|
installation.
|
|
|
|
```sh
|
|
sudo ./deploy/install-panel.py --config /root/coulobre.toml --check
|
|
sudo ./deploy/install-panel.py --config /root/coulobre.toml
|
|
```
|
|
|
|
### Browser wizard
|
|
|
|
```sh
|
|
sudo ./deploy/install-panel.py --web \
|
|
--admin-password-file /root/coulobre-admin-password
|
|
```
|
|
|
|
Open the loopback address printed in the terminal and enter its one-time
|
|
setup code. When working remotely, forward the wizard port through the
|
|
administrator SSH connection. The default port is 8765. Open
|
|
`http://127.0.0.1:8765/` in the browser on the computer running the
|
|
forwarding command.
|
|
|
|
```sh
|
|
ssh -N -L 8765:127.0.0.1:8765 operator@panel.example.net
|
|
```
|
|
|
|
The wizard shows the installation plan and step progress. The administrator
|
|
password comes from the private file on the host. After setup, open the
|
|
panel at its configured HTTPS hostname and enrol a second factor during
|
|
the first administrator sign-in.
|
|
|
|
### Separate DNS and mail nodes
|
|
|
|
Choose `remote-install` to install and enrol a role on an existing server.
|
|
Both roles can use one destination or can be installed on separate servers.
|
|
The SSH destination must be a fully qualified name or a literal IP address
|
|
reachable from the panel, such as a LAN or Tailscale address. Copy the
|
|
destination's verified `/etc/ssh/ssh_host_ed25519_key.pub` to the panel
|
|
server. The installer pins this key to verify the identity of the server.
|
|
Provide the SSH port, an administrator username and the path to that
|
|
administrator's root-owned `0600` private key on the panel server.
|
|
The matching user public key must be authorized on the destination, and
|
|
the account must be able to run the setup through noninteractive `sudo`.
|
|
During setup, use a dedicated administrative key which can be revoked
|
|
when enrolment is complete.
|
|
|
|
For mail, set `mail_hostname` to the public service hostname. When using
|
|
provided TLS, `certificate` and `key` are paths on the mail node. Enter the
|
|
mail service's actual public SMTP source addresses for SPF. A shared mail
|
|
node can be the sole sender even when multiple panel nodes use it.
|
|
|
|
Choose `remote` to connect a receiver prepared with the existing
|
|
[node installer and SSH enrolment](#install-and-enrol-a-node). Supply its
|
|
verified SSH host key file and connection details.
|
|
|
|
The panel installer generates a restricted role key. `remote-install`
|
|
authorizes the key during setup. For an existing receiver in `remote` mode,
|
|
authorize the public key if it has yet to be added. Use the key from
|
|
`/etc/coulobre-remote/dns/id_ed25519.pub` or
|
|
`/etc/coulobre-remote/mail/id_ed25519.pub` using
|
|
`coulobre-node-setup authorize-panel` on the receiver. Run the panel
|
|
installer again with the same choices. It reuses the key and the
|
|
credentials generated for that installation.
|
|
|
|
All three modes can resume a failed installation with the same settings
|
|
and source release. The progress message identifies the step to check.
|
|
The installer preserves a configured panel and uses private state while
|
|
resuming. Review the [installation checks](#verify-a-new-installation)
|
|
before opening the panel to customers.
|
|
|
|
To install several panels individually, use `remote-install` when preparing
|
|
a receiver, then connect additional panels to that receiver using `remote`.
|
|
Keep separate role keys and give each hosted domain one panel owner.
|
|
Review the installed receiver configuration before adding an independent
|
|
role to an existing server.
|
|
|
|
### Install several panels from one server
|
|
|
|
Run the following command on the first panel server or choose Cluster from
|
|
the interactive deployment profiles.
|
|
|
|
```sh
|
|
sudo ./deploy/install-panel.py --cluster
|
|
# When using the Debian package
|
|
sudo coulobre-install --cluster
|
|
```
|
|
|
|
Prepare two to twelve panel hosts. Install the chosen release on the first
|
|
server and provide SSH access from there to the other server addresses.
|
|
The first panel entry runs locally. Each other panel entry supplies its
|
|
own public name, SSH destination, administrator and hosting defaults.
|
|
Supply a verified host public key for each SSH destination and an account
|
|
with noninteractive sudo. Keep the administrative SSH private keys on
|
|
the first server. The terminal wizard lists compatible root-owned keys
|
|
in `/root/.ssh`. You can also enter a path to another private key with
|
|
mode `0600`. Authorize its matching public key on each destination.
|
|
|
|
The destination host key identifies the server you are connecting to.
|
|
Choose an existing trust entry from root's `known_hosts`, paste the
|
|
destination key after verifying it through its console, or use a verified
|
|
public key file. The wizard saves selected or pasted host keys as public
|
|
key files for reuse with the exported TOML inventory.
|
|
|
|
The inventory can include a shared mail receiver, a shared DNS receiver,
|
|
or both roles on one dedicated host. A panel can publish DNS locally, use
|
|
the shared receiver or leave DNS publishing off. With shared mail, enter
|
|
the receiver's actual public sending addresses in its section. Each panel
|
|
uses a separate scoped key on the receiver. Assign the hosted domains each
|
|
panel owns. An empty domain list allows health checks and denies domain
|
|
operations until you [assign domains to the panel](#limit-linked-provisioning-to-assigned-domains).
|
|
|
|
The wizard carries SSH credentials, panel access mode, administrator
|
|
details, DNS mode, and nameservers forward as editable defaults where
|
|
applicable. Enter each host's address, hostname, host key and domains
|
|
separately. Press `F2` to go back between sections in the terminal wizard.
|
|
|
|
Choose **Check connections** on the review screen. The wizard checks pinned SSH
|
|
authentication and sudo, supported destination releases, distinct host
|
|
identities, and whether existing panel or receiver settings are compatible.
|
|
Local certificate files are checked on the host that will use them.
|
|
If a check fails, the wizard shows the destination and the action to take.
|
|
Edit the inventory or correct access and retry. Choose **Install** once
|
|
all checks have passed.
|
|
Use the [example cluster inventory](../deploy/cluster-install.toml.example)
|
|
to automate the same process. Make each panel's `admin.password_file` a
|
|
root-owned `0600` file on the first server.
|
|
|
|
```sh
|
|
sudo coulobre-install --config /root/cluster.toml --check
|
|
sudo coulobre-install --config /root/cluster.toml
|
|
```
|
|
|
|
If a host fails during installation, fix the reported problem and rerun
|
|
the same inventory from the first server. Coulobre records completed
|
|
panels in `/var/lib/coulobre-cluster/installation.json`, reuses panel role
|
|
keys and resumes the interrupted panel. For an SSH deployment failure,
|
|
inspect `journalctl -t coulobre-bootstrap` on the destination.
|
|
|
|
Each panel has its own database and accounts. Configure BIND primary and
|
|
secondary replication using the [secondary DNS procedure](#set-up-a-managed-secondary-dns-server).
|
|
For mail operations with an existing scoped receiver, see
|
|
[the scoped receiver limitations](#limit-linked-provisioning-to-assigned-domains).
|
|
|
|
## Install or upgrade from a Debian package
|
|
|
|
The `coulobre-panel` package targets Ubuntu 26.04 and Debian 13. Both use
|
|
the same architecture-independent artifact. For a local download, verify
|
|
the SHA-256 checksum in the release notes, then use APT from a root console
|
|
on the target host.
|
|
|
|
```sh
|
|
sudo apt install ./coulobre-panel_VERSION_all.deb
|
|
sudo coulobre-install --interactive
|
|
```
|
|
|
|
On a fresh server the package stages the release wheel, installer, and remote
|
|
installation service. APT prints the setup command when the package is ready.
|
|
Run `coulobre-install` after APT exits. It accepts the same `--interactive`,
|
|
`--config`, and `--web` options as the source installer and installs the
|
|
selected operating system services and Python dependencies.
|
|
|
|
### Use the Coulobre APT repository
|
|
|
|
Install the repository signing key, then use the source entry for your OS.
|
|
If you previously added a Coulobre entry to `gitea.list` or
|
|
`hippogrief.list`, remove that entry before enabling `coulobre.sources`.
|
|
|
|
```sh
|
|
sudo install -d -m 0755 /etc/apt/keyrings
|
|
sudo curl -fsS https://code.hosting.hippogrief.nl/api/packages/hippogrief/debian/repository.key \
|
|
-o /etc/apt/keyrings/coulobre.asc
|
|
sudo chmod 0644 /etc/apt/keyrings/coulobre.asc
|
|
```
|
|
|
|
#### Ubuntu 26.04 LTS
|
|
|
|
```sh
|
|
sudo tee /etc/apt/sources.list.d/coulobre.sources >/dev/null <<'EOF'
|
|
Types: deb
|
|
URIs: https://code.hosting.hippogrief.nl/api/packages/hippogrief/debian
|
|
Suites: resolute
|
|
Components: main
|
|
Architectures: all
|
|
Signed-By: /etc/apt/keyrings/coulobre.asc
|
|
EOF
|
|
```
|
|
|
|
#### Debian 13
|
|
|
|
```sh
|
|
sudo tee /etc/apt/sources.list.d/coulobre.sources >/dev/null <<'EOF'
|
|
Types: deb
|
|
URIs: https://code.hosting.hippogrief.nl/api/packages/hippogrief/debian
|
|
Suites: trixie
|
|
Components: main
|
|
Architectures: all
|
|
Signed-By: /etc/apt/keyrings/coulobre.asc
|
|
EOF
|
|
```
|
|
|
|
#### Install the package
|
|
|
|
Stable releases use the `main` component. To install a release candidate,
|
|
change the component before updating APT. A candidate such as `1.0.0~rc7`
|
|
sorts before `1.0.0`.
|
|
|
|
```sh
|
|
sudo sed -i 's/^Components: main$/Components: candidate/' /etc/apt/sources.list.d/coulobre.sources
|
|
```
|
|
|
|
Install the package and start the installer on a fresh server.
|
|
|
|
```sh
|
|
sudo apt update
|
|
sudo apt install coulobre-panel
|
|
sudo coulobre-install --interactive
|
|
```
|
|
|
|
[Gitea Debian registry documentation](https://docs.gitea.com/usage/packages/debian/)
|
|
|
|
### Upgrade an installer-managed panel
|
|
|
|
To move from a release candidate to stable, change `Components: candidate`
|
|
to `Components: main` in `coulobre.sources` and run `sudo apt update`.
|
|
Use `apt-cache policy coulobre-panel` to verify that the stable version is
|
|
available before upgrading.
|
|
|
|
Install the reviewed local package or run
|
|
`sudo apt install --only-upgrade coulobre-panel` from the server console.
|
|
The first package can also adopt a compatible source-based installation.
|
|
In either case the installer must have completed and the panel must use
|
|
the local MariaDB database. Pause provisioning work and stage linked
|
|
receivers at the target version first using the
|
|
[linked-node upgrade procedure](#coordinate-a-release-across-linked-mail-and-dns-receivers).
|
|
Schedule a maintenance window and keep an independent backup or snapshot.
|
|
|
|
During package configuration, Coulobre takes its existing recovery backup,
|
|
installs the packaged wheel in `/opt/coulobre`, applies Django migrations,
|
|
collects static files, restarts services, and checks the panel response.
|
|
The host configuration and hosted data remain in their original locations.
|
|
The virtual environment must satisfy the incoming wheel's dependencies.
|
|
For a release requiring dependency changes, install those dependencies per
|
|
its release instructions before retrying package configuration. **Updates**
|
|
in the panel shows the installed version and last upgrade result.
|
|
|
|
An APT-managed panel can also apply Coulobre updates from **System →
|
|
Updates → Coulobre → Review Coulobre package updates**. Enable the
|
|
[server package update service](#enable-local-operator-actions) first.
|
|
Sign in with a verified second factor, refresh APT and review the offered
|
|
package version. This uses the host's configured APT sources and the same
|
|
recovery backup and migrations as a console upgrade. If APT proposes other
|
|
package changes for the Coulobre upgrade, review and apply it from the
|
|
console. To update only OS and service packages, use **Server packages**.
|
|
If APT lists a Coulobre update there, apply the Coulobre package first and
|
|
refresh the server package list.
|
|
|
|
### Recover a failed APT upgrade
|
|
|
|
Inspect `/var/lib/coulobre-update/status.json` as root. The `recovery` field,
|
|
when present, names the directory with the private `update.log` and the
|
|
recovery files. If APT reports that linked receivers were not staged and
|
|
the running panel has not changed, use the
|
|
[linked-node upgrade procedure](#coordinate-a-release-across-linked-mail-and-dns-receivers).
|
|
If the status is `failed` and the previous runtime is healthy, fix the
|
|
reported pre-upgrade problem before retrying package configuration.
|
|
|
|
If the status is `recovery_required`, the wheel or database may already
|
|
have changed even though APT reports that the package is not configured.
|
|
Do not retry APT yet. Fix the cause and follow the
|
|
[panel runtime recovery procedure](#install-a-compatible-release-from-the-panel).
|
|
After the previous runtime, database and services are healthy and the
|
|
failed `status.json` has been archived, run `sudo dpkg --configure -a` to
|
|
apply the pending package. Confirm that `sudo dpkg --audit` reports no
|
|
problems and that the panel reports the target version. For linked
|
|
installations, keep receiver provisioning paused until all participating
|
|
panels and receivers are healthy and on the target release.
|
|
|
|
Restoring the panel runtime does not downgrade the APT package. For a full
|
|
downgrade, restore the server snapshot including the package database.
|
|
Removing the package is not a recovery procedure. It removes the staged
|
|
installer and remote installation service, but leaves the configured panel
|
|
runtime, service configuration and customer data on the server.
|
|
|
|
Web-initiated APT output is in `/var/lib/coulobre-update/apt-update.log`.
|
|
If the web launcher was interrupted, verify that `coulobre-apt-update.service`
|
|
and APT are idle, then use the console to finish the upgrade or recover.
|
|
Once the installation is healthy, remove the stale
|
|
`/var/lib/coulobre-update/apt-status.json` to clear the interrupted web status.
|
|
|
|
## Install a host from the web panel
|
|
|
|
On a packaged installation, open **Server Manager → Connected Nodes →
|
|
Install a remote server** as an operator with verified two-factor
|
|
authentication. Source deployments can [enable the same installer](#enable-web-installation-from-source).
|
|
|
|
1. Choose a standalone panel, DNS receiver, mail receiver, or both receivers
|
|
on one host. Coulobre deploys the source matching the running version.
|
|
2. Enter the destination and an administrator with noninteractive `sudo`.
|
|
Use a dedicated temporary OpenSSH key without a passphrase. Copy the
|
|
destination's host public key directly from its console, omitting the
|
|
trailing comment. The panel checks the pinned host key before running
|
|
anything over SSH.
|
|
3. For mail, provide the public mail hostname and choose a certificate.
|
|
Existing certificate paths refer to the destination. For a standalone
|
|
panel, paste the CLI's [TOML installation plan](#automated-command-line)
|
|
with local or disabled roles and enter the new administrator's password.
|
|
The web form supplies the password directly and ignores
|
|
`admin.password_file` in this plan.
|
|
4. For a shared receiver, set a different scope for each panel and list
|
|
the domains it owns. Review the
|
|
[shared receiver procedure](#limit-linked-provisioning-to-assigned-domains) before
|
|
adding scope-based access to a receiver with an unrestricted key.
|
|
5. Start the installation and follow the progress on the same page.
|
|
Revoke the temporary SSH key on the destination when complete. Coulobre
|
|
keeps only progress metadata. The restricted role keys are used for
|
|
subsequent DNS and mailbox operations.
|
|
|
|
A mail or DNS install enrols the receiver on the originating panel and
|
|
checks its configuration and release before reporting completion. Use this
|
|
for an unconfigured role or to resume linking the same host. Move an existing
|
|
local or remote role through the documented migration procedure first.
|
|
The standalone option sets up a separate panel with its own accounts and
|
|
services. After an interrupted installation, retry the same settings.
|
|
Review `journalctl -t coulobre-bootstrap` on the destination and
|
|
`journalctl -u 'coulobre-remote-deploy@*.service'` on the originating host
|
|
for details.
|
|
|
|
### Enable web installation from source
|
|
|
|
Extract the verified distribution matching the installed Coulobre version
|
|
below a root-controlled directory such as `/opt/coulobre-deployment`. Install
|
|
the socket and instance service from its `deploy/systemd` directory.
|
|
|
|
```sh
|
|
source_dir=/opt/coulobre-deployment
|
|
sudo install -m 0644 "$source_dir"/deploy/systemd/coulobre-remote-deploy.socket \
|
|
"$source_dir"/deploy/systemd/coulobre-remote-deploy@.service /etc/systemd/system/
|
|
sudo install -d /etc/systemd/system/coulobre-remote-deploy@.service.d
|
|
printf '[Service]\nEnvironment=COULOBRE_BOOTSTRAP_SOURCE=%s\n' "$source_dir" | \
|
|
sudo tee /etc/systemd/system/coulobre-remote-deploy@.service.d/source.conf
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl enable --now coulobre-remote-deploy.socket
|
|
```
|
|
|
|
Replace the extracted source with the matching reviewed version after
|
|
upgrading the panel. When adopting the Debian package, remove any local
|
|
bootstrap source override to use the package-managed source.
|
|
|
|
## 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.
|
|
|
|
```sh
|
|
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.
|
|
|
|
```sh
|
|
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.
|
|
|
|
```sh
|
|
sudo systemctl enable --now mariadb rabbitmq-server
|
|
```
|
|
|
|
```sql
|
|
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`.
|
|
|
|
```sh
|
|
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](https://www.rabbitmq.com/docs/networking#listeners)
|
|
|
|
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.
|
|
|
|
```sh
|
|
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`.
|
|
|
|
```sh
|
|
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.
|
|
|
|
```sh
|
|
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.
|
|
|
|
```sh
|
|
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](https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html)
|
|
|
|
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](https://docs.djangoproject.com/en/5.2/ref/settings/#secure-proxy-ssl-header)
|
|
|
|
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.
|
|
|
|
## Protect panel sign-in
|
|
|
|
The HTTPS deployment requires a second factor for administrators, staff,
|
|
managers, and other operator logins. Existing unverified privileged sessions
|
|
return to sign-in after the upgrade. Apply the database migrations before
|
|
restarting the panel, worker, and scheduler.
|
|
|
|
A privileged user signs in with a password to start first-time setup. The
|
|
setup session can only enroll a second factor or sign out. Choose an
|
|
authenticator app, scan the QR code, and confirm a code from the app. The
|
|
setup page also provides a link and a copyable setup key for manual entry.
|
|
Use the authenticator's code at future sign-ins. Keep the
|
|
panel host and authenticator device clocks synchronized.
|
|
|
|
New authenticator entries show the username and the panel name, for example
|
|
**Coulobre Panel — srv1.example.net**. The name uses the public hostname in
|
|
`COULOBRE_PASSWORD_RESET_ORIGIN` or the first exact DNS hostname in
|
|
`COULOBRE_ALLOWED_HOSTS`. Set `COULOBRE_AUTHENTICATOR_NAME` in `panel.env` and
|
|
restart `coulobre-panel` to use a custom name. Choose a distinct name for each
|
|
panel when using this override. Existing verification and recovery codes
|
|
continue to work. Apps may retain the label saved during enrollment.
|
|
|
|
If an SMTP relay is configured and the account already has a valid email
|
|
address, the user can instead register one-time email codes. The panel uses
|
|
the address assigned to the account at enrollment. These codes expire in
|
|
five minutes and can be requested once a minute. An authenticator is the
|
|
preferred option for privileged accounts.
|
|
|
|
Use **Copy recovery codes** to save the codes shown after enrollment. Each code works once and
|
|
can be entered after the account password. If the user loses the factor
|
|
and all recovery codes, verify their identity and issue a replacement
|
|
enrollment code on the panel host.
|
|
|
|
```sh
|
|
panel_manage issue_panel_enrollment operator
|
|
```
|
|
|
|
This revokes the previous factor, recovery codes, and sessions verified
|
|
with that factor. Deliver the one-time enrollment code to the account
|
|
owner through a trusted channel. It expires in 20 minutes. The user signs
|
|
in with their password and enters the code to set up a replacement.
|
|
|
|
### Configure email delivery and customer password recovery
|
|
|
|
On a new installation with local mail, the installer configures the panel
|
|
to use Postfix on the loopback interface. The installation check verifies
|
|
that Postfix accepts an outbound SMTP envelope. Verify delivery to an inbox
|
|
you control before inviting customers.
|
|
|
|
A linked mail receiver provisions hosted mailboxes. It does not by itself
|
|
give the panel a sender or permission to send welcome email, password
|
|
resets, or notifications. In the interactive cluster installer, set
|
|
**Outgoing panel email** on each panel if you already have an authorized
|
|
SMTP login. Otherwise choose **later**, then open **Operator Settings →
|
|
Email → Outgoing panel email** as an operator with a verified second
|
|
factor. Use the same relay on multiple panels if desired, with separate
|
|
SMTP logins where you want to revoke a single panel's access.
|
|
|
|
For an automated install, use this optional TOML section. In a cluster
|
|
plan, use `[cluster.panels.smtp]` under the corresponding panel instead.
|
|
|
|
```toml
|
|
[smtp]
|
|
host = "submission.example.net"
|
|
port = 587
|
|
username = "panel-web1"
|
|
sender = "panel@example.net"
|
|
password_file = "/root/panel-web1.smtp-password"
|
|
```
|
|
|
|
The password file must be private and is read on the initiating server.
|
|
The installer uses STARTTLS and checks whether the relay accepts the
|
|
sender without delivering a message. The operator's **Send test email**
|
|
action submits an actual message to the specified test recipient. A
|
|
successful submission is not proof of inbox delivery. For the From
|
|
address, use a domain and sender permitted by the relay. The separate
|
|
welcome email sender settings only change message headers.
|
|
|
|
Installed settings are the fallback when no relay is saved in the panel.
|
|
For environments managed directly by an operator, set
|
|
`COULOBRE_SMTP_HOST`, `COULOBRE_SMTP_PORT`, and
|
|
`COULOBRE_EMAIL_FROM` in the panel environment. Add the relay's username
|
|
and password if it requires authentication. The default uses STARTTLS on
|
|
port 587. Keep the environment file restricted to the service operators.
|
|
|
|
Set `COULOBRE_PASSWORD_RESET_ORIGIN` to the panel's public HTTPS origin
|
|
to enable **Forgot your password?**. Make sure the default Celery worker
|
|
is running. The worker sends 30-minute, single-use links only to active
|
|
customer accounts. Keep customer email addresses up to date. Privileged
|
|
accounts use administrator-assisted password recovery, followed by their
|
|
existing second factor or the enrollment recovery flow.
|
|
|
|
### Verify client identification
|
|
|
|
Coulobre limits sign-in, verification, and reset attempts using counters
|
|
in the panel database. The scheduler expires old counters. A limit returns
|
|
HTTP 429 and a `Retry-After` header. The default allows eight password
|
|
attempts per username and client and forty per client in a five-minute
|
|
window. IPv6 clients share a counter within a /64.
|
|
|
|
For Apache deployments, install the current `panel-proxy.inc` and set
|
|
`COULOBRE_TRUST_APACHE_CLIENT_IP=1` when Gunicorn listens on the
|
|
restricted Unix socket. Apache overwrites the client IP header using its
|
|
resolved peer address. With a separate reverse proxy, use the trusted
|
|
peer configuration above so Apache supplies the visitor address. Keep
|
|
the Gunicorn socket private to the panel service and the front-end server.
|
|
A direct TCP connection uses its network peer address for rate limiting.
|
|
|
|
|
|
## Protect a host with nftables and Fail2ban
|
|
|
|
Enable protection independently on a panel, web, mail, or DNS host. Use the
|
|
distribution packages and install the Coulobre units on each protected host.
|
|
The firewall changes the host's inbound policy. Keep console access
|
|
available while testing a new policy.
|
|
|
|
```sh
|
|
sudo apt install nftables fail2ban python3-systemd
|
|
sudo install -m 0644 deploy/systemd/coulobre-firewall.service \
|
|
deploy/systemd/coulobre-fail2ban.service /etc/systemd/system/
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl enable --now coulobre-firewall.service
|
|
sudo install -d -m 0750 /etc/coulobre
|
|
if ! sudo test -e /etc/coulobre/firewall.json; then
|
|
sudo install -m 0600 deploy/firewall/host.json.example /etc/coulobre/firewall.json
|
|
fi
|
|
sudoedit /etc/coulobre/firewall.json
|
|
```
|
|
|
|
Set `admin_sources` to the addresses or CIDR networks from which SSH
|
|
administrators and Coulobre relay workers reach this host. Set `ssh_port`
|
|
to the local OpenSSH listener port. Add `sftp` to `services` to admit
|
|
public SSH and SFTP connections subject to the configured connection limit.
|
|
The administrator sources have direct access to the SSH listener and are
|
|
excluded from the managed Fail2ban jails.
|
|
|
|
| Profile | Panel listeners |
|
|
| --- | --- |
|
|
| `public` | Public access on `panel_ports`, default TCP 80 and 443 |
|
|
| `lan` | Access from `panel_sources` only, default TCP 80 and 443 |
|
|
| `proxy` | Access from `panel_sources` only, default TCP 8080 |
|
|
| `node` | No panel listener |
|
|
|
|
Use the LAN subnets for `lan`. For `proxy`, list the immediate proxy peers
|
|
and set `panel_ports` to the origin listener ports. A restricted panel
|
|
listener needs its own ports when public websites share the host. A
|
|
packet filter admits connections by address and port. Use the Apache
|
|
origin configuration for the trusted-proxy and hostname restrictions.
|
|
[External reverse proxy configuration](#external-reverse-proxy)
|
|
|
|
Select the services to offer per host. The `web` role allows TCP 80 and 443.
|
|
The `mail` role allows TCP 25, 143, 465, 587, and 993. The `dns` role
|
|
allows TCP and UDP 53. The `web` rate applies to ports shared by websites
|
|
and a public panel. Use `extra_tcp_ports` or `extra_udp_ports` to permit
|
|
additional public listeners. The firewall accepts loopback, established
|
|
connections, ICMP, and DHCP replies. It drops incoming connections outside
|
|
the selected policy.
|
|
|
|
Set `rates` to limits per source IP and second for `ssh`, `panel`, `web`,
|
|
`mail`, and `dns`. The defaults are 8, 40, 120, 30, and 100 respectively.
|
|
Set a rate to `0` to allow that service without its Coulobre rate limit.
|
|
TCP limits apply to new connections. DNS also has a separate UDP packet
|
|
limit, including repeated requests on an established UDP flow. A reverse
|
|
proxy shares one origin-side limit across its clients. Limit login requests
|
|
per client at the trusted proxy or application layer using the client
|
|
address verified by that layer. [nftables meters](https://wiki.nftables.org/wiki-nftables/index.php/Meters)
|
|
|
|
### Stage and confirm a change
|
|
|
|
Preview the generated rules and stage the policy. The command checks the
|
|
nftables transaction and schedules a rollback before changing the live
|
|
rules. The trial lasts 120 seconds by default.
|
|
|
|
```sh
|
|
firewall=/opt/coulobre/bin/coulobre-firewall
|
|
sudo "$firewall" preview /etc/coulobre/firewall.json
|
|
sudo "$firewall" apply /etc/coulobre/firewall.json
|
|
```
|
|
|
|
Open a new administrator SSH session and verify the services from the
|
|
intended networks. From that session, confirm using the ID printed by
|
|
`apply`. The timer restores the previous confirmed policy if the trial
|
|
expires. Run `sudo "$firewall" rollback` to restore immediately. The first
|
|
rollback removes the Coulobre table when there is no confirmed policy.
|
|
|
|
```sh
|
|
sudo "$firewall" confirm CONFIRMATION_ID
|
|
sudo "$firewall" status
|
|
```
|
|
|
|
The service restores the last confirmed policy on reboot. Coulobre owns
|
|
`inet coulobre_host` and the managed Fail2ban instance uses
|
|
`inet coulobre_bans`. Other tables keep their rules. Existing firewall
|
|
chains can still reject traffic allowed by the Coulobre policy.
|
|
Package upgrades preserve the confirmed policy in
|
|
`/var/lib/coulobre/firewall/`. If another firewall manager reloads the
|
|
entire ruleset, restore the Coulobre policy and restart the managed
|
|
Fail2ban instance after that reload. [nftables ruleset operations](https://wiki.nftables.org/wiki-nftables/index.php/Operations_at_ruleset_level)
|
|
|
|
### Enable authentication failure bans
|
|
|
|
After confirming the policy, start the managed Fail2ban instance. It uses
|
|
the distribution's journal-backed SSH, Postfix authentication, and
|
|
Dovecot filters. The mail jails are enabled with the `mail` role.
|
|
Each jail issues a ten-minute ban after five failures in ten minutes.
|
|
The instance has its own jails, control socket, and persistent ban database.
|
|
Review any separately installed Fail2ban service and its enabled jails.
|
|
Both services apply their configured policies independently.
|
|
[Fail2ban jail configuration](https://manpages.debian.org/trixie/fail2ban/jail.conf.5.en.html)
|
|
|
|
```sh
|
|
sudo systemctl enable --now coulobre-fail2ban.service
|
|
sudo "$firewall" status
|
|
```
|
|
|
|
Run `sudo systemctl reload coulobre-fail2ban.service` after confirming a
|
|
policy that changes service roles, the SSH port, or administrator sources.
|
|
Use the `status` output to find the managed jail and banned address.
|
|
Unblocking records the operator, address, reason, and result on the node.
|
|
|
|
```sh
|
|
sudo "$firewall" unblock coulobre-sshd 192.0.2.25 --reason "Verified administrator address"
|
|
sudo "$firewall" audit
|
|
```
|
|
|
|
Include `firewall` and `fail2ban` in the host's
|
|
[service health configuration](#monitor-local-and-remote-services) to
|
|
monitor the units. Use `status` on the node to inspect rules and bans.
|
|
To remove protection, disable the managed Fail2ban unit, clear the
|
|
Coulobre table and confirmed policy, then disable the firewall unit.
|
|
|
|
```sh
|
|
sudo systemctl disable --now coulobre-fail2ban.service
|
|
sudo "$firewall" clear
|
|
sudo systemctl disable --now coulobre-firewall.service
|
|
```
|
|
|
|
## 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.
|
|
|
|
```sh
|
|
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`.
|
|
|
|
```sh
|
|
sudo journalctl -u coulobre-panel -u coulobre-worker -u coulobre-beat
|
|
```
|
|
|
|
## Manage panel roles
|
|
|
|
A verified superuser can assign a Customer or Manager role to an
|
|
active login from **Customers** or **Managers**. Choose **Assign
|
|
to existing login** and enter the username. Customer roles use their own
|
|
assigned hosting accounts. Managers use their own hosting account
|
|
assignments and hosting package policy. New manager assignments use the default
|
|
manager package when one is configured.
|
|
|
|
Logins with multiple roles can choose **Panel role** in the account area.
|
|
The role applies to the session, including direct page requests and actions.
|
|
Returning to the administrator role requires a verified second factor. If the
|
|
active role assignment is revoked, the session asks the user to sign in again.
|
|
|
|
## Select a panel theme
|
|
|
|
The panel follows the browser's light or dark preference on the first visit.
|
|
The sun and moon button stores an explicit choice in the current browser.
|
|
This choice applies to the sign-in screens as well as the signed-in panel.
|
|
|
|
To select a different theme, install a directory such as
|
|
`docs/examples/coast-theme/` under `/etc/coulobre/themes/`. Give the panel
|
|
service read access and reserve write access for administrators. Set
|
|
`COULOBRE_PANEL_THEME=coast-theme` in `/etc/coulobre/panel.env` and restart
|
|
`coulobre-panel.service`. An unavailable or incompatible theme falls back to
|
|
the bundled appearance. Use `COULOBRE_PANEL_THEME_DIRECTORY` to choose a
|
|
different local theme directory.
|
|
|
|
A version 1 theme contains a `theme.json` manifest with a name and
|
|
`"version": 1`, plus a `theme.css` stylesheet. Use a directory name made of
|
|
lowercase letters, digits, and hyphens, starting with a letter. The variables
|
|
declared at the top of the bundled `hosting/panel.css` define the palette,
|
|
components, typography, and spacing. Override these values in `:root` and
|
|
`:root[data-appearance="dark"]`. Keep theme assets self-contained and review
|
|
third-party styles before installing them.
|
|
|
|
The same type scale applies to sign-in and all panel roles. Use
|
|
`--font-size-title` for page titles, `--font-size-heading` for section
|
|
headings, `--font-size-body` for content and controls, and
|
|
`--font-size-small` for secondary labels. Override `--font-family` and
|
|
`--font-family-mono` to customize the two font stacks.
|
|
|
|
## 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.
|
|
|
|
```sh
|
|
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.
|
|
|
|
```sh
|
|
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](#prepare-the-panel).
|
|
|
|
```sh
|
|
sudo /opt/coulobre/bin/python -m pip install --only-binary=:all: 'pip>=26.2'
|
|
sudo /opt/coulobre/bin/python -m 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](#enable-connection-details-for-remote-mailboxes).
|
|
|
|
For local web activation, update the installed `coulobre-web-apply@.service`
|
|
and, if enabled, `coulobre-https-apply@.service` before restarting the
|
|
provisioning worker. Verify that an existing website still serves its
|
|
recorded PHP series before requesting any version changes.
|
|
[PHP version selection](#choose-php-versions-for-hosted-websites)
|
|
|
|
Enable [Roundcube](#open-a-mailbox-in-roundcube), [mail DNS provisioning](#check-and-provision-mail-dns),
|
|
and [mail archive transfers](#include-mailboxes-on-a-separate-server) through
|
|
their deployment steps. When changing a backup schedule to collect remote
|
|
mail, finish queued backups and configure the SSH relay and receiver
|
|
before switching the mail backup setting.
|
|
|
|
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.
|
|
|
|
```sh
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl start coulobre-panel.service coulobre-worker.service coulobre-beat.service
|
|
```
|
|
|
|
### Upgrade from v0.10 to v0.10.1
|
|
|
|
Use the in-place procedure above to install v0.10.1 and apply its migrations.
|
|
Existing DNS zones keep their records. Use **DNS zone template** under
|
|
**Server and services** to change the defaults for new zones. Use **Complete
|
|
hosting setup** on an existing account to review and add missing services.
|
|
|
|
To include mail client details in new invitations, set
|
|
`COULOBRE_MAIL_IMAP_HOST` and `COULOBRE_MAIL_SUBMISSION_HOST` to the respective
|
|
client-facing names when these services are available. For an upgraded panel
|
|
without service checks, follow [the collector setup](#monitor-local-and-remote-services).
|
|
|
|
### Install a compatible release from the panel
|
|
|
|
The installer enables **Updates** for installer-managed panels. On an
|
|
existing panel, install the updater units from the source release matching
|
|
the installed package:
|
|
|
|
```sh
|
|
sudo install -m 0644 deploy/systemd/coulobre-update.socket \
|
|
deploy/systemd/coulobre-update@.service /etc/systemd/system/
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl enable --now coulobre-update.socket
|
|
```
|
|
|
|
A superuser with a verified second factor can choose a compatible release
|
|
from **Server and services → Updates**. The updater uses the official Gitea
|
|
release over HTTPS and checks the wheel against its published SHA-256 hash.
|
|
It supports the installer-managed local MariaDB database and installer
|
|
layout. The update manifest lists the tested starting versions. Use the
|
|
in-place procedure for custom service unit changes and for environments
|
|
missing a dependency required by the target version. From 0.11 onward, the
|
|
updater checks installed dependencies before stopping panel services.
|
|
|
|
Markdown release notes require `markdown-it-py` in the panel's virtual
|
|
environment. When upgrading from 0.11.1 to 0.12 through the panel, install it
|
|
first if the existing environment does not have it. The in-place procedure
|
|
installs it with the panel package.
|
|
|
|
```sh
|
|
sudo /opt/coulobre/bin/python -m pip install 'markdown-it-py>=4.3,<5'
|
|
```
|
|
|
|
The panel and its workers pause during the upgrade. Refresh **Updates** after
|
|
the panel returns. The latest update status names the recovery directory in
|
|
`/var/lib/coulobre-update/`. The root-only directory holds the previous
|
|
virtual environment, `/etc/coulobre` configuration, MariaDB dump, unit list
|
|
and operation log. Keep enough free space for these copies. Review progress
|
|
and service errors with `sudo journalctl -u 'coulobre-update@*'`.
|
|
|
|
If recovery is required, keep the panel and its workers stopped. Use the
|
|
saved `units.json` to identify the active units before the update. Restore
|
|
`venv` to `/opt/coulobre` at the same path and restore the saved `config` to
|
|
`/etc/coulobre` if needed. Import `panel.sql` with `sudo mariadb` to replace
|
|
the panel database with the pre-upgrade copy. Rebuild panel static files
|
|
with `panel_manage collectstatic --noinput`, restart the saved units and
|
|
verify sign-in and service health. Archive `status.json` as root after
|
|
recovery to allow a later update. Check that `panel.sql` and `venv` exist
|
|
before restoring from a directory created by an interrupted update.
|
|
|
|
### Coordinate a release across linked mail and DNS receivers
|
|
|
|
Use the in-place procedure for the first upgrade from 0.10 to 0.11 in a
|
|
linked deployment. The older web updater supports single-server upgrades.
|
|
Bring the receiver and all attached panels to the same release before
|
|
resuming provisioning. For manually configured relays, including separate
|
|
mail credential and archive relays, use the in-place procedure for the
|
|
whole fleet.
|
|
|
|
The **Updates** page in 0.11 reports the release, host, and status probe
|
|
protocol of each installer-enrolled receiver. Protocol 1 reports readiness
|
|
and release. Protocol 2 also reports a staged maintenance target. This is
|
|
a read-only addition to the probe. The mail and DNS apply request formats
|
|
keep their existing per-operation versions. Active provisioning requires
|
|
matching package releases. During a coordinated upgrade, the receiver
|
|
keeps provisioning requests paused while panels are on different releases.
|
|
Normal mail delivery, IMAP, and existing DNS answers can continue while
|
|
the provisioning socket is stopped or paused.
|
|
|
|
Stage linked receivers before updating the Coulobre package with APT. If
|
|
APT has unpacked it but configuration was blocked by the receiver check,
|
|
the running panel has not been upgraded. After preparing the receivers at
|
|
the target release, resume configuration with
|
|
`sudo dpkg --configure coulobre-panel` instead of starting another full
|
|
system upgrade. Keep provisioning paused until all panels are upgraded.
|
|
|
|
1. At each receiver, list the authorized panel keys. Match each fingerprint
|
|
to a panel and confirm its installed version on that host. Include every
|
|
key, including panels operated by another team. Back up the panels, the
|
|
receiver packages, and the managed mail or DNS configuration. Pause
|
|
new provisioning requests and let current jobs finish.
|
|
|
|
```sh
|
|
sudo /opt/coulobre/bin/coulobre-node-setup list-panels dns
|
|
```
|
|
|
|
2. Save a root-owned JSON inventory with mode 0600, the target package version and a
|
|
fingerprint-to-version map. Replace the fingerprints and versions with
|
|
your actual values. Make a separate inventory for each role on a host.
|
|
|
|
```json
|
|
{
|
|
"target": "0.11.1rc1",
|
|
"panels": {
|
|
"SHA256:panel-one-fingerprint": "0.11.0rc1",
|
|
"SHA256:panel-two-fingerprint": "0.11.0rc1"
|
|
}
|
|
}
|
|
```
|
|
|
|
3. Stop the receiver socket and let instances of the corresponding apply
|
|
service finish. Stage the inventory, update the receiver to the target,
|
|
then start its socket again. For a managed DNS catalog primary, rerun
|
|
[primary setup](#set-up-a-managed-secondary-dns-server) with its existing
|
|
peer address before starting the socket. Replace `dns` with `mail` for a
|
|
mail receiver. The staged receiver answers status probes and rejects
|
|
apply requests.
|
|
|
|
```sh
|
|
sudo systemctl stop coulobre-dns-apply.socket
|
|
sudo /opt/coulobre/bin/coulobre-node-setup begin-maintenance dns /root/dns-upgrade.json
|
|
# Install the reviewed target package using its release instructions.
|
|
sudo systemctl start coulobre-dns-apply.socket
|
|
```
|
|
|
|
4. Refresh **Updates** on each panel. Install the target when all its
|
|
receivers report that release in maintenance mode and the compatible
|
|
release is offered. Use the in-place procedure if its update requires
|
|
additional dependencies or unit changes. Keep the receivers staged if
|
|
any panel upgrade is interrupted. Check the recovery files and repair or
|
|
roll back before reopening provisioning.
|
|
5. Once every panel is running and verified at the target, update each
|
|
inventory with the observed installed versions. Finish maintenance on each
|
|
receiver, then resume provisioning and retry any affected operations.
|
|
The command checks the receiver release and the inventory against the
|
|
current authorized keys. The receiver administrator is responsible for
|
|
checking the installed version reported by every panel operator.
|
|
|
|
```sh
|
|
sudo /opt/coulobre/bin/coulobre-node-setup finish-maintenance dns /root/dns-upgrade.json
|
|
```
|
|
|
|
### Limit linked provisioning to assigned domains
|
|
|
|
Use scoped keys when independent panels share a DNS or mail receiver. The
|
|
receiver authenticates a dedicated Unix account for each panel and checks
|
|
the requested domain before applying changes or inspecting its mail queue.
|
|
Each scope lists exact domains. DNS parent and child zones must belong to
|
|
the same panel if their scopes overlap.
|
|
|
|
Upgrade the receiver and the panels, then apply the current receiver SSH
|
|
configuration with `coulobre-node-setup --source /path/to/release
|
|
install-receiver dns` (or `mail`). Prepare the panel's role-specific key.
|
|
Copy its public half to the receiver and authorize the domains.
|
|
|
|
```sh
|
|
# On the panel
|
|
sudo /opt/coulobre/bin/coulobre-node-setup prepare-panel dns
|
|
|
|
# On the receiver
|
|
sudo /opt/coulobre/bin/coulobre-node-setup authorize-scoped-panel \
|
|
dns panel-one /root/panel-one-dns.pub example.net
|
|
|
|
# On the panel, using the receiver's verified host key
|
|
sudo /opt/coulobre/bin/coulobre-node-setup --source /path/to/release \
|
|
enrol-panel dns dns.example.org /root/dns-host.pub --scope panel-one
|
|
```
|
|
|
|
Repeat authorization with the same public key and the complete desired
|
|
domain list when assignments change. For an existing unrestricted receiver,
|
|
coordinate a maintenance window, back up and remove unrestricted panel
|
|
keys, enroll the scoped identities, and check both panels before resuming
|
|
provisioning. For an existing panel relay, update the `User` directive in
|
|
its role-specific `/etc/coulobre-remote/<role>/ssh_config` to the scoped
|
|
username printed by authorization. Keep its pinned host key and run
|
|
`coulobre-node-setup check-panel <role>` before enabling jobs.
|
|
|
|
On scoped mail receivers, use local administrative workflows for mailbox
|
|
credential and archive operations. The separate legacy SSH transports for
|
|
those operations are unavailable on a scoped receiver. Local mail
|
|
delivery and IMAP keep using their existing configuration.
|
|
|
|
#### Assign new mail domains from a trusted panel
|
|
|
|
After upgrading both the panel and linked mail receiver, the mail worker
|
|
checks the exact domain assignment when an operator enables managed email
|
|
for a hosting account. Existing assignments are accepted. If the receiver
|
|
requires manual approval, the account's **Email** tab shows the blocked
|
|
setup and its reason. Assign the domain on the receiver, then select
|
|
**Retry mail setup**. A mailbox previously rejected for lack of assignment
|
|
can also be retried from that tab in the operator workspace.
|
|
|
|
On a shared mail node managed by one trusted administration, its root
|
|
operator can allow specific enrolled panels to claim unused domains:
|
|
|
|
```sh
|
|
sudo /opt/coulobre/bin/coulobre-node-setup mail-domain-assignment panel-one enable
|
|
```
|
|
|
|
Use the existing scope name, without the `coulobre-mail-p-` prefix. Only
|
|
enable this for panels you trust to choose what domains to host. Keep
|
|
manual assignment for independently administered panels. The receiver
|
|
will not transfer a domain from another panel or claim existing mail
|
|
resources automatically. This command does not change Postfix routing,
|
|
public DNS or existing mailboxes. It does not change DNS receiver scopes.
|
|
|
|
To stop new claims, repeat the command with `disable`. It keeps all current
|
|
domain assignments. Review and remove unused assignments manually on the
|
|
receiver after account retirement or a cancelled migration.
|
|
|
|
#### Refresh an existing managed DKIM record
|
|
|
|
Follow the [coordinated upgrade procedure](#coordinate-a-release-across-linked-mail-and-dns-receivers)
|
|
for linked deployments. The updated panel understands both RSA public key
|
|
encodings and publishes the managed RSA key in SubjectPublicKeyInfo format.
|
|
The existing private key and selector stay in use.
|
|
|
|
Open **Mail DNS check** for a managed mail domain and select
|
|
**Refresh mail DNS setup**. If Coulobre publishes the zone and manages its
|
|
mail records, it replaces the previous encoding when the public key
|
|
matches. A different key at the same selector requires operator review.
|
|
For third-party DNS, copy the updated DKIM TXT value to the DNS provider.
|
|
Check the authoritative answer, allow cached records to expire, and
|
|
verify that a newly delivered message passes DKIM.
|
|
|
|
### Use SHA-2 for new managed database logins
|
|
|
|
On a MariaDB build with `auth_mysql_sha2`, you can provision new managed
|
|
database logins with `caching_sha2_password`. Verify the active site's PHP
|
|
driver, phpMyAdmin, and administrative clients against a test login before
|
|
changing the policy. Coulobre retains the authentication plugin and password
|
|
for each existing login.
|
|
|
|
```sh
|
|
sudo mariadb -e "INSTALL SONAME 'auth_mysql_sha2';"
|
|
printf '%s\n' caching_sha2_password | sudo tee /etc/coulobre/database-authentication
|
|
sudo chown root:root /etc/coulobre/database-authentication
|
|
sudo chmod 0644 /etc/coulobre/database-authentication
|
|
```
|
|
|
|
Managed logins remain restricted to localhost. If the target host needs an
|
|
older driver or does not supply the SHA-2 plugin, use
|
|
`mysql_native_password` as the policy for new logins. Keep the SHA-2 plugin
|
|
loaded as long as any existing managed login uses it.
|
|
|
|
### Upgrade from v0.9 to v0.10
|
|
|
|
Use the in-place procedure above with the v0.10 source release. Keep a copy
|
|
of the v0.9 release and a matching database and configuration backup for
|
|
rollback. The upgrade adds tables for invitations and manager
|
|
profiles, and initializes the new web setup flags without running
|
|
provisioning for existing accounts.
|
|
|
|
To enable invitations on an upgraded single-server deployment, verify that
|
|
the existing Postfix configuration permits relay from loopback. Add these
|
|
settings to `/etc/coulobre/panel.env`, using your actual panel and mail
|
|
hostnames. For a separate SMTP relay, use its connection settings instead.
|
|
|
|
```ini
|
|
COULOBRE_PASSWORD_RESET_ORIGIN=https://panel.example.net
|
|
COULOBRE_SMTP_HOST=127.0.0.1
|
|
COULOBRE_SMTP_PORT=25
|
|
COULOBRE_SMTP_STARTTLS=0
|
|
COULOBRE_EMAIL_FROM=panel@mail.example.net
|
|
```
|
|
|
|
Restart the panel and the general worker after editing the environment.
|
|
Sign in with an existing privileged account and an existing customer.
|
|
Check an existing website, its PHP runtime, a DNS zone, and a mailbox before
|
|
creating a test customer. Verify that the invitation arrives and that the
|
|
recipient can set a password and sign in. Test mail delivery using an inbox
|
|
you control.
|
|
|
|
### Set defaults for new hosting accounts
|
|
|
|
Set `COULOBRE_HOSTING_PUBLIC_ADDRESSES` to the IPv4 and IPv6 addresses
|
|
that serve hosted sites, and `COULOBRE_HOSTING_NAMESERVERS` to the
|
|
authoritative nameservers for new Coulobre zones. Separate values with
|
|
commas. If a nameserver is inside a hosted zone, the zone must include
|
|
its address records. Apply the environment changes to the panel workers.
|
|
|
|
When creating an account, select the services it should use. The website
|
|
option queues the Apache configuration. A new managed website with an empty
|
|
web root gets a neutral starter page unless you skip it during setup or
|
|
activation. Already provisioned sites are not changed by an upgrade, and
|
|
the branded starter page never replaces existing files. Replace or remove the
|
|
generated `index.html` when you publish manually. Managed WordPress
|
|
installation can replace an unmodified starter page automatically.
|
|
Coulobre DNS can publish the apex, `www`, and a wildcard
|
|
record. The panel provides copyable web records for third-party DNS.
|
|
When [managed mail DNS](#check-and-provision-mail-dns) is enabled, the
|
|
zone includes MX, SPF and a monitoring DMARC policy. Provisioning the
|
|
first mailbox adds the signing key's public DKIM record.
|
|
|
|
## Verify a new installation
|
|
|
|
Use a test hosting package, account, and domain for these checks. Enable the
|
|
local services that the installation will offer before checking them.
|
|
|
|
1. 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.
|
|
2. 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.
|
|
3. 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.
|
|
4. 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`.
|
|
5. Publish the test zone. Query the authoritative nameserver directly with
|
|
`dig @NAMESERVER DOMAIN A +norecurse` and verify the expected answer and
|
|
the `aa` flag. [Run a backup and restore drill](#run-a-backup-and-restore-drill)
|
|
6. 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.
|
|
7. 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](#retire-a-hosting-account)
|
|
8. If Roundcube is enabled, open two different mailboxes from the panel
|
|
and verify the active mailbox after each launch. Check published mail DNS
|
|
from the panel and send a test message to verify DKIM when signing is enabled.
|
|
9. If mail is on another node, run a scheduled backup with mail and restore a
|
|
selected test mailbox to a fresh destination on that node. If SpamAssassin
|
|
is enabled, verify normal delivery and the GTUBE test.
|
|
10. With multiple PHP-FPM series installed, check that a new site uses the
|
|
newest series its plan allows. Request a version change and verify the
|
|
primary hostname and aliases over HTTP and HTTPS.
|
|
[PHP version selection](#choose-php-versions-for-hosted-websites)
|
|
11. If you enrol separate mail or DNS nodes, run `coulobre-node-setup check-panel`
|
|
for each configured role before queuing a test request. Verify mailbox
|
|
delivery or query the published zone on that node.
|
|
[Node enrolment](#install-and-enrol-a-node)
|
|
12. If you enable the host firewall, stage the policy and verify a new
|
|
administrator connection from an allowed network before confirming.
|
|
Check the policy and Fail2ban status on each protected host.
|
|
[Firewall checks](#stage-and-confirm-a-change)
|
|
|
|
### Debian 13 verification
|
|
|
|
The single-server setup was verified on a fresh Debian 13 amd64 VM with the
|
|
distribution packages and systemd. The test covered direct and reverse-proxied
|
|
panel HTTPS, account access and plan limits, website activation and PHP-FPM
|
|
pool changes, service health, SFTP, ext4 user quotas, MariaDB provisioning,
|
|
Postfix delivery, Dovecot IMAP and quotas, and authoritative BIND9 publishing.
|
|
Certbot issued and renewed a hosted website certificate using a local ACME
|
|
test CA. An account backup restored an individual file, the complete website,
|
|
a MariaDB database, and a Dovecot mailbox.
|
|
|
|
## Activate local websites from the panel
|
|
|
|
Use the local activation worker when the panel and the web node share a
|
|
Debian 13 or Ubuntu 26.04 server. Follow the
|
|
[web node setup](development.md#apply-a-manifest-on-a-web-node) and
|
|
[socket setup](development.md#enable-local-web-activation).
|
|
|
|
Create a dedicated account and install the worker. Its systemd unit grants
|
|
access to the activation socket for this worker process.
|
|
|
|
```sh
|
|
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.
|
|
|
|
```sh
|
|
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](development.md#measure-website-storage)
|
|
|
|
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 package's default or choose a per-site value.
|
|
[Website storage quotas](development.md#apply-a-website-storage-limit)
|
|
|
|
### Choose PHP versions for hosted websites
|
|
|
|
Use the distribution PHP-FPM packages for a single PHP series. To offer more
|
|
series on the same node, enable an APT archive that supplies co-installable
|
|
PHP-FPM packages for the node's distribution. DEB.SURY.ORG supplies signed
|
|
packages for Debian 13 and Ubuntu. Follow its keyring and `Signed-By`
|
|
instructions for the node's release. [DEB.SURY.ORG setup](https://packages.sury.org/php/README.txt)
|
|
|
|
Install and start each series you want to offer. Install the application's
|
|
required PHP extensions for each series it will use. APT remains responsible
|
|
for package and security updates.
|
|
|
|
```sh
|
|
sudo apt install php8.5-fpm php8.6-fpm
|
|
sudo systemctl enable --now php8.5-fpm php8.6-fpm
|
|
```
|
|
|
|
Under **Hosting packages**, enter the **Allowed PHP series** as a comma-separated
|
|
list, such as `8.5, 8.6`. A blank list makes every installed stable series
|
|
available. New website activations select the newest installed stable series
|
|
in the plan. Each active site retains its recorded series when a package or
|
|
plan changes. APT patch releases update that series in place.
|
|
|
|
Use **Change PHP version** on an active account to schedule a switch.
|
|
Assigned customers can change their own sites. Operators need permission to
|
|
view the account and **Can change site php version**. The page shows the
|
|
active series and the progress of the request. Site aliases, including
|
|
aliases served over HTTPS, switch with the primary site.
|
|
|
|
Coulobre validates the target pool and waits for its socket before switching
|
|
traffic. It retains the website's PHP pool limits. If a request fails,
|
|
check the worker's diagnostic, correct the problem, and submit the same
|
|
series again. The web node can confirm a switch whose reply was interrupted.
|
|
|
|
On upgrade, existing local activations retain the previously used series.
|
|
The existing Apache configurations move to the shared socket route during
|
|
the first version change. Preview and apply manifests keep their account
|
|
and domain identity. Upgrade the panel and local activation worker together.
|
|
|
|
To withdraw a series, remove it from plan allowlists and explicitly move
|
|
each website that uses it. Verify the new PHP version over HTTP and HTTPS.
|
|
Check the old series' pool directory for website or tool pools before stopping
|
|
its service and removing the package. Retain working configuration for the
|
|
series while any pool still needs it. phpMyAdmin, Roundcube, and command-line
|
|
jobs use their own configured runtimes. Use a versioned command such as
|
|
`php8.5` for a job that must stay on a specific series.
|
|
|
|
### Configure PHP pool limits per website
|
|
|
|
Use **Unlimited** in a hosting package to remove its website, scheduled task,
|
|
database, mailbox, or storage limit. A manager package can give managers an
|
|
unlimited number of hosting accounts within the selected hosting packages.
|
|
Enter `0` in the scheduled task, database, mailbox count, or manager account
|
|
field to block creation of those resources.
|
|
|
|
Under **Hosting packages**, 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.
|
|
Select **Unlimited** for a PHP memory, upload, or request timeout override to
|
|
remove that cap at the PHP pool. PHP-FPM always needs a finite worker limit.
|
|
|
|
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](https://www.php.net/manual/en/ini.core.php) ·
|
|
[PHP-FPM pool directives](https://www.php.net/manual/en/install.fpm.configuration.php)
|
|
|
|
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](https://httpd.apache.org/docs/current/en/vhosts/name-based.html)
|
|
|
|
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](https://httpd.apache.org/docs/current/en/vhosts/name-based.html#defaultvhost) ·
|
|
[Deleting a Certbot certificate](https://eff-certbot.readthedocs.io/en/stable/using.html#deleting-certificates)
|
|
|
|
## Host independent websites
|
|
|
|
Set a hosting package's **Website limit** above one to allow additional
|
|
websites under an account. The limit includes the primary website. Existing
|
|
plans start with one website. In **Independent websites**, choose **Add
|
|
website** to provision a domain or subdomain with its own document root,
|
|
operating-system user, PHP-FPM pool, and Apache virtual host.
|
|
|
|
Leave the PHP series blank to select the newest installed stable series
|
|
allowed by the plan. Changing the series on one website keeps the other
|
|
websites on their configured versions. If the plan sets a website storage
|
|
limit, the web node applies that quota to the new site's user.
|
|
|
|
Point the domain's DNS at the web server and select **Enable HTTPS** after
|
|
setting up the existing Certbot worker. Each website has its own Certbot
|
|
lineage. An alias under **Website aliases** shares the primary document
|
|
root and runtime.
|
|
|
|
Use **Suspend website** to disable access to a single site. Account-wide
|
|
suspension applies to all its active websites. Resuming the account preserves
|
|
any independent website suspension. To retire a site, suspend it and
|
|
confirm its domain using **Retire website**. The web node archives its data
|
|
and disables its Apache and PHP configuration. Retiring a failed provisioning request also frees its place in the plan.
|
|
Its domain remains reserved until released with the account's names.
|
|
|
|
Export the website's version 2 manifest with `export_manifest website`. Use the existing
|
|
[website SFTP setup](development.md#install-sftp-keys-on-a-web-node) on the web node
|
|
with that manifest to authorize a key for the site's own user. The web
|
|
node suspends new SFTP logins for a suspended independent website when
|
|
keys have been installed.
|
|
|
|
New account archives include the primary website and activated independent
|
|
websites. Select the website when restoring a file or document root from
|
|
an archive containing several sites. The archive identifies each website
|
|
by domain and site ID. Upgrade the panel and its web and backup workers
|
|
together before enabling additional sites.
|
|
|
|
## Enable WordPress management
|
|
|
|
Install the verified [WP-CLI Phar](https://make.wordpress.org/cli/handbook/guides/installing/#verifying-the-download-optional-but-recommended)
|
|
as a root-owned regular file at `/usr/local/bin/wp` on the web node.
|
|
Install the PHP CLI and MariaDB extension for each PHP series used by
|
|
WordPress sites. The website user must be able to reach WordPress.org
|
|
to download and verify the release. Use local website and database
|
|
provisioning. Set `COULOBRE_WORDPRESS_MANAGEMENT=1` in
|
|
`/etc/coulobre/panel.env`, apply the Django migrations, and restart
|
|
the panel, scheduler, and web activation worker.
|
|
|
|
Open the hosting account's **Websites → WordPress** page and select
|
|
an active website. **Detect WordPress** checks the document root and
|
|
displays the installed version. For a fresh installation, enable the
|
|
site's HTTPS configuration and use an empty document root or the
|
|
original Coulobre starter page. Enter the site title and first
|
|
WordPress administrator's username and email. The panel creates a
|
|
MariaDB database within the hosting package quota before installing.
|
|
The web node prepares WordPress under the site's Unix identity and
|
|
publishes the new root after verification.
|
|
|
|
Use **Add a WordPress administrator** to create a separate administrator.
|
|
WordPress submits a password setup email through the site's mail
|
|
configuration. If the panel reports an email failure, correct the
|
|
site's outbound mail and use the WordPress password reset page. The
|
|
setup workflow keeps passwords out of panel jobs, logs and email.
|
|
|
|
### Update WordPress, plugins and themes
|
|
|
|
Use WP-CLI 2.10 or later for fresh core update checks. Open the site's
|
|
**WordPress** page, select **Check for updates**, and review the installed
|
|
and available versions. Select **Back up and update** for one component
|
|
at a time. The panel offers stable releases from WordPress.org. Use
|
|
WordPress to manage extensions from other sources.
|
|
|
|
Updates require HTTPS, a single-site installation with its configuration
|
|
in the site's document root, and a local MariaDB database managed by
|
|
the hosting account. Enable local account backups and the website and
|
|
database restore services. Coulobre creates a recovery archive with the
|
|
selected document root and the entire database before applying the
|
|
update, and checks that the advertised version is still available.
|
|
Use a dedicated database for each WordPress site so that restoring its
|
|
database does not replace tables for another application.
|
|
|
|
If an update fails after it starts, use the matching archive in
|
|
**Backup & Restore** to recover the document root and database as needed.
|
|
Customers can restore their own update backups. Update backups do not
|
|
replace the customer's latest SFTP export. Managers can ask the server
|
|
operator to restore a backup they requested. Schedule updates during a
|
|
quiet period because WordPress may briefly display a maintenance page.
|
|
|
|
### Refresh private WordPress staging from the panel
|
|
|
|
For panel-managed staging, use `staging.<website hostname>`. Before the
|
|
first refresh, the operator sets up the DNS, HTTPS certificate and Apache
|
|
password file as described below. On the site's WordPress page, select
|
|
its managed live database, confirm the replacement and choose **Refresh
|
|
from live**. If the candidate cannot be verified or published, the
|
|
previous staging revision remains available.
|
|
|
|
Check for updates on the WordPress page and use **Test on staging** to
|
|
apply a selected WordPress.org update to the current staging revision.
|
|
The web node downloads the package from WordPress.org and applies it with
|
|
network access and outbound mail still blocked for staging. The
|
|
installed component must match the one in the update selection. To undo
|
|
an unsuccessful test, refresh staging from live. Testing an update does
|
|
not modify or promote the live site.
|
|
|
|
### Import WordPress from a ZIP or TAR export
|
|
|
|
New installer-managed panels have a private upload inbox for WordPress and
|
|
DirectAdmin imports. Starting with Core 1.10, APT upgrades supply the inbox
|
|
through a systemd drop-in without replacing local unit overrides. For a
|
|
manual or source archive upgrade, or if you override the inbox locally,
|
|
check the effective unit. If it does not list
|
|
`coulobre-panel-imports` in `systemctl show -p StateDirectory
|
|
coulobre-panel.service`, add the inbox with `sudo systemctl edit
|
|
coulobre-panel.service`:
|
|
|
|
```ini
|
|
[Service]
|
|
StateDirectory=coulobre-panel-imports
|
|
StateDirectoryMode=0700
|
|
```
|
|
|
|
Restart `coulobre-panel.service` after saving the override. Systemd creates
|
|
`/var/lib/coulobre-panel-imports` with access limited to the panel service.
|
|
This does not require restarting Apache or the hosted websites.
|
|
|
|
Select the destination website on the **WordPress** page. Use a single-site
|
|
installation with the normal WordPress tables and no custom triggers,
|
|
routines, events, or views. Export the SQL for that database only, without
|
|
`CREATE DATABASE`, a `USE` statement, or server-wide account definitions.
|
|
|
|
```text
|
|
wordpress_backup.tar
|
|
├── files/
|
|
│ ├── wp-admin/
|
|
│ ├── wp-content/
|
|
│ ├── wp-includes/
|
|
│ └── wp-load.php
|
|
└── database.sql
|
|
```
|
|
|
|
Upload the archive to preview its contents. **Prepare and verify import**
|
|
checks the site in an isolated runtime, rewrites WordPress URLs including
|
|
serialized data, and creates a separate database on the destination
|
|
hosting account. This counts toward the account's database limit. The
|
|
source's database credentials and cache drop-ins are not reused. The
|
|
operator should confirm any site-specific PHP or plugin settings after
|
|
the import.
|
|
|
|
Once verification completes, enter the destination hostname and choose
|
|
**Publish verified import**. For a live WordPress site, select replacement
|
|
and its existing database. The panel waits for a verified native backup
|
|
containing the current site files and that database. It will not overwrite
|
|
a populated site in empty-destination mode. During publication, the web
|
|
node exchanges the document roots atomically and keeps the original files
|
|
and database. The destination must use HTTPS and both document roots must
|
|
be on the same filesystem.
|
|
|
|
The panel upload inbox is private to the panel service. Archives can be
|
|
prepared for 24 hours after preview and are capped at 2 GiB uploaded and
|
|
4 GiB expanded. Lower upload limits on the panel's HTTP server still apply.
|
|
Prepared and retained roots are under `/srv/coulobre/wordpress-imports`.
|
|
The operator can remove old, unused import folders there after confirming
|
|
that neither an active task nor the recovery plan needs them. Never remove
|
|
a database just because its import directory was removed.
|
|
|
|
The web-node CLI also accepts `prepare-wordpress-import manifest.json
|
|
export.tar` and `publish-wordpress-import manifest.json`. The manifest must
|
|
contain a native `site` manifest, a native `database` manifest for a separate
|
|
provisioned database, and a random UUIDv4 as `import_id`. The source archive
|
|
must be root-controlled with mode `0600`. Use `--previous-database` with that
|
|
database's native manifest and `--backup-id` for live replacement. The
|
|
operator can use `rollback-wordpress-import manifest.json` with the same
|
|
import identity to exchange the retained root back, provided that no
|
|
newer root has superseded the import and the original database still exists.
|
|
|
|
### Prepare a private WordPress staging revision on a web node
|
|
|
|
The web-node CLI can build an unpublished staging revision for a
|
|
single-site installation with regular website files and a dedicated
|
|
Coulobre-managed local MariaDB database. The source must use a literal table
|
|
prefix and have no custom database triggers, routines, events, or views.
|
|
The node needs systemd network and mount namespacing, a local MariaDB
|
|
Unix socket, and the same PHP CLI series and verified WP-CLI used for
|
|
WordPress management.
|
|
|
|
Use a root-controlled JSON file for the request. Set `site` and
|
|
`source_database` to the existing native manifests for the live resources.
|
|
Set `domain` to the intended staging hostname and `revision` to a new
|
|
UUIDv4. For example, a primary website on account 17 can use this manifest.
|
|
|
|
```json
|
|
{
|
|
"site": {"version": 1, "account_id": 17, "domain": "www.example.net"},
|
|
"source_database": {
|
|
"version": 1,
|
|
"kind": "mariadb_database",
|
|
"account_id": 17,
|
|
"suffix": "wordpress"
|
|
},
|
|
"domain": "stage.example.net",
|
|
"revision": "25ef29ed-ae15-4fbc-9bca-fd5c1f278dae"
|
|
}
|
|
```
|
|
|
|
```sh
|
|
sudo /opt/coulobre/bin/coulobre-web-node prepare-wordpress-staging staging.json
|
|
```
|
|
|
|
The command creates a new revision with its own local database credentials
|
|
and Unix identity under `/srv/coulobre/wordpress-staging`. It copies the
|
|
document root, rewrites WordPress URLs, and sets search visibility to
|
|
discourage indexing. Verification uses a private network namespace, the
|
|
local MariaDB Unix socket and disabled PHP mail. This command prepares the
|
|
copy only. Publishing over HTTPS with access controls is a separate step.
|
|
Use a fresh revision UUID for each refresh. Existing revisions are left
|
|
available while a newer copy is prepared.
|
|
|
|
To remove an unpublished revision, run the following command using the
|
|
same manifest. It removes the revision directory, Unix identity, and
|
|
its dedicated candidate database.
|
|
|
|
```sh
|
|
sudo /opt/coulobre/bin/coulobre-web-node discard-wordpress-staging staging.json
|
|
```
|
|
|
|
### Publish a verified WordPress staging revision over HTTPS
|
|
|
|
Choose a separate hostname for staging and point its DNS to the web node.
|
|
Obtain a Certbot certificate for the staging hostname. Use the certificate
|
|
name `coulobre-wp-staging-NODE_KEY`, with the live website's node key.
|
|
Configure the Core Certbot HTTP-01 webroot and Apache reload hook before
|
|
using HTTP-01. The staging route keeps that challenge available on port 80
|
|
and redirects other HTTP requests to HTTPS. Enable Apache's `ssl`,
|
|
`headers`, `proxy_fcgi` and file-based Basic Authentication modules.
|
|
|
|
Create a separate Basic Authentication password for the staging site.
|
|
Name the file after the live website's node key, which is the account ID
|
|
for a primary site and `s` followed by the site ID for an independent site.
|
|
For the primary site of account 17, use these commands.
|
|
|
|
```sh
|
|
sudo install -d -m 0755 /etc/apache2/coulobre-wordpress-staging
|
|
sudo htpasswd -B -c /etc/apache2/coulobre-wordpress-staging/17.htpasswd staging
|
|
sudo chown root:www-data /etc/apache2/coulobre-wordpress-staging/17.htpasswd
|
|
sudo chmod 0640 /etc/apache2/coulobre-wordpress-staging/17.htpasswd
|
|
sudo /opt/coulobre/bin/coulobre-web-node publish-wordpress-staging staging.json
|
|
```
|
|
|
|
Omit `-c` when adding or changing users in an existing password file.
|
|
The staging site requires authentication for static assets as well as
|
|
PHP requests and sends `X-Robots-Tag: noindex, nofollow`. Its separate
|
|
PHP-FPM service uses the candidate Unix identity and database. Outbound
|
|
IP networking and PHP mail are disabled.
|
|
|
|
To refresh, prepare a new revision with the same hostname and publish
|
|
its manifest. The same password file stays in use. Coulobre keeps the
|
|
previous revision and restores its Apache configuration if the switch
|
|
fails. Publication checks the new certificate and authentication challenge
|
|
through Apache's local HTTPS listener on `127.0.0.1:443`. You can also
|
|
publish the previous manifest to switch back.
|
|
Discard unused revisions to remove their databases and PHP-FPM services.
|
|
|
|
To withdraw the staging route, run `unpublish-wordpress-staging` with
|
|
the manifest of the currently published revision. Remove its DNS record
|
|
if you are retiring the hostname. After withdrawing the route, you can
|
|
discard the remaining revision through the web-node CLI.
|
|
|
|
## Enable the website file manager
|
|
|
|
The installer enables the file manager, scheduled website jobs and local
|
|
account backups on new panels with local Apache and PHP. New installations
|
|
using Let's Encrypt for the panel also configure managed website certificates.
|
|
Scheduled jobs remain subject to the hosting package limit. An account
|
|
starts without a backup schedule.
|
|
|
|
On an existing installer-managed APT panel, use **Operator Settings →
|
|
Server**, **Security**, or **Backups**, and select **Enable** on the
|
|
corresponding row. The operation enables the selected local service and
|
|
briefly restarts the panel services. Check **Recent feature setup** for
|
|
the result. Managed website certificates require Certbot and an ACME
|
|
account. Keep using the manual steps below for custom installations or
|
|
configurations that the automatic setup flags for review.
|
|
|
|
The file manager connects to the web node on the same server as the panel.
|
|
It supports the document root of the primary site and each active
|
|
independent site. Customers can open **Files** for their websites.
|
|
Operators need both **Can view hosting account** and **Can manage website
|
|
files**. File operations are unavailable through impersonation.
|
|
|
|
```sh
|
|
sudo groupadd --system coulobre-file-requests
|
|
sudo install -m 0644 deploy/systemd/coulobre-website-files.socket \
|
|
deploy/systemd/coulobre-website-files@.service /etc/systemd/system/
|
|
sudo install -D -m 0644 deploy/systemd/coulobre-panel.service.d/website-files.conf \
|
|
/etc/systemd/system/coulobre-panel.service.d/website-files.conf
|
|
sudo install -m 0644 deploy/apache/panel-proxy.inc /etc/coulobre/panel-proxy.inc
|
|
```
|
|
|
|
Set `COULOBRE_WEB_FILE_MANAGER=1` in `/etc/coulobre/panel.env`. For an
|
|
Apache deployment, reload Apache to apply the updated request body limit.
|
|
|
|
```sh
|
|
panel_manage migrate --noinput
|
|
panel_manage collectstatic --noinput
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl enable --now coulobre-website-files.socket
|
|
sudo systemctl restart coulobre-panel
|
|
sudo apache2ctl configtest
|
|
sudo systemctl reload apache2
|
|
```
|
|
|
|
The manager shows site-owned folders and regular files. It skips symbolic
|
|
links and files with multiple hard links. Uploads accept one file of up to
|
|
64 MiB at a time and count toward the site's configured filesystem quota.
|
|
Uploads and renames require an unused name in the current folder. A
|
|
separate confirmation is required to delete a file or an empty folder.
|
|
|
|
## Enable scheduled website jobs
|
|
|
|
The scheduled job worker runs on the same server as the panel and web
|
|
node. Install the local socket and Celery worker on that server.
|
|
|
|
```sh
|
|
sudo groupadd --system coulobre-website-job-requests
|
|
sudo useradd --system --user-group --no-create-home --home-dir /nonexistent \
|
|
--shell /usr/sbin/nologin coulobre-website-job-worker
|
|
sudo install -m 0644 deploy/systemd/coulobre-website-jobs.socket \
|
|
deploy/systemd/coulobre-website-jobs@.service \
|
|
deploy/systemd/coulobre-website-job-worker.service /etc/systemd/system/
|
|
```
|
|
|
|
Set `COULOBRE_WEBSITE_JOBS=1` in `/etc/coulobre/panel.env`.
|
|
|
|
```sh
|
|
panel_manage migrate --noinput
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl enable --now coulobre-website-job-worker.service
|
|
sudo systemctl restart coulobre-panel coulobre-worker coulobre-beat
|
|
```
|
|
|
|
Set **Scheduled tasks per hosting account** to the number of saved tasks
|
|
allowed per account. Paused tasks count toward the limit. The default is zero.
|
|
If you lower a limit, the oldest enabled jobs retain their places until
|
|
the account removes or pauses jobs. Add `website-jobs` to the local service
|
|
health list if you monitor this worker from the panel.
|
|
|
|
Customers can open **Advanced Features → Scheduled Tasks** and select a
|
|
hosting account. **Add task** is available when the account has an active
|
|
website and room in its hosting package. The page explains what to check
|
|
when adding tasks is unavailable. Operators and managers can open **System →
|
|
Scheduled Task Overview** to inspect tasks in their workspace. Operators
|
|
can manage tasks for accounts without an assigned customer when they have
|
|
both **Can view hosting account** and **Can manage scheduled website jobs**.
|
|
|
|
When adding a task, pick the primary or an active independent website.
|
|
Use five cron fields in UTC. For example, `*/15 * * * *` runs every
|
|
15 minutes. Runs must be at least five minutes apart. When both day fields
|
|
are restricted, the date must match both.
|
|
|
|
The job runs as the website's Unix user in its document root with a
|
|
60-second deadline. To use the site's selected PHP series, install its PHP
|
|
CLI package and enter a command such as `"$PHP_CLI" tasks/refresh.php`.
|
|
The panel shows the last result, including the exit code if the node
|
|
reported one. Command output is discarded. A run missed by over 90 seconds
|
|
is skipped, and a run with an unconfirmed result is never replayed.
|
|
Suspended and retired sites are ineligible for new runs.
|
|
|
|
## 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](development.md#enable-https-for-a-hosted-website)
|
|
|
|
### 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](development.md#enable-https-for-a-hosted-website)
|
|
|
|
```sh
|
|
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.
|
|
|
|
```sh
|
|
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
|
|
```
|
|
|
|
Open **Manage HTTPS** in the hosting account's **Overview** or **Websites**
|
|
tab. The hostname table shows the primary site, its existing web aliases,
|
|
and any independent websites. Select the hostnames to enable. The primary
|
|
hostname and eligible existing aliases, such as `www`, are selected by
|
|
default. Each hostname has its own request and result. A failed hostname
|
|
can be retried without reissuing certificates for working hostnames.
|
|
|
|
For a new hostname, first give it a website route. Operators with alias
|
|
management access can attach it to the primary website. Use an independent
|
|
website if it should serve separate content. DNS records provide suggestions
|
|
only. Adding a website alias does not edit DNS, and a published DNS zone
|
|
does not prove that visitors or Let's Encrypt reach the correct web node.
|
|
With external DNS, update the records at the DNS provider.
|
|
|
|
Initial issuance checks the web node's configuration and uses Certbot
|
|
HTTP-01 validation for the exact hostname. If issuance fails, verify that
|
|
the public A, AAAA or CNAME routes to the intended web server and that
|
|
port 80 reaches it. See Certbot's log on the web node for more detail.
|
|
A ready Apache preview is not a deployed HTTPS virtual host. Apache
|
|
previews remain available for diagnosis, and the existing Certbot hook
|
|
continues to reload Apache after renewal.
|
|
|
|
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](https://eff-certbot.readthedocs.io/en/stable/using.html#dns-plugins)
|
|
|
|
## Set up SFTP access for hosted websites
|
|
|
|
Supported full-service installs configure key-based SFTP. On an existing
|
|
installer-managed panel, open **Operator Settings → Server** to enable
|
|
website SFTP and folder-scoped logins. Set `COULOBRE_SFTP_HOST` and
|
|
`COULOBRE_SFTP_PORT` in `/etc/coulobre/panel.env` when customers connect to a
|
|
different host or port. The panel displays these values in **SFTP Users**.
|
|
|
|
For a manual installation, configure OpenSSH and the worker directly.
|
|
|
|
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](https://man.openbsd.org/sshd_config)
|
|
|
|
```sh
|
|
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.
|
|
|
|
```sh
|
|
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.
|
|
|
|
```sh
|
|
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](development.md#back-up-and-restore-hosted-website-files)
|
|
|
|
## Provision local databases from the panel
|
|
|
|
Enable the [database provisioning socket](development.md#enable-local-database-provisioning)
|
|
on the panel host. Install the MariaDB worker under a dedicated identity with
|
|
access to that socket.
|
|
|
|
```sh
|
|
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.
|
|
|
|
```sh
|
|
panel_manage migrate --noinput
|
|
sudo systemctl restart coulobre-panel coulobre-worker coulobre-beat
|
|
sudo systemctl enable --now coulobre-database-provisioner.service
|
|
```
|
|
|
|
Select **Add database** on a hosting account to queue its provisioning.
|
|
The form previews the exact MariaDB name as you edit the application name.
|
|
New names include a short account label and its ID, such as
|
|
`example_a42_wordpress`. Existing databases and logins keep their original
|
|
names, including after an account or domain rename. Use the current Coulobre
|
|
database tools to apply or restore a manifest for a newly named database.
|
|
|
|
Customers can add databases on their own accounts. Managers need
|
|
permission to manage resources for their assigned accounts. For a pending
|
|
request, an operator can select **Provision database**. Operators need
|
|
permission to view hosting accounts and databases and the **Can add database
|
|
provisioning** permission. Use **Retry provisioning** after a reported failure.
|
|
|
|
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](development.md#back-up-and-restore-a-managed-database)
|
|
|
|
## Back up an account's website and databases
|
|
|
|
Export an account backup manifest from the CLI. 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 manifest lists mailboxes.
|
|
[Account backup and recovery](development.md#back-up-a-hosting-account)
|
|
|
|
### 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.
|
|
|
|
```sh
|
|
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.
|
|
|
|
```sh
|
|
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](development.md#recover-backups-from-the-bundle).
|
|
|
|
#### 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.
|
|
|
|
```sh
|
|
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`.
|
|
|
|
```sh
|
|
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.
|
|
|
|
#### Copy scheduled account backups off-site
|
|
|
|
Coulobre can send account archives to an encrypted restic repository over
|
|
SFTP. On the backup node, install restic and OpenSSH and create a directory
|
|
for each destination. This example uses the destination ID `vault`.
|
|
[Restic SFTP repository setup](https://restic.readthedocs.io/en/stable/030_preparing_a_new_repo.html#sftp)
|
|
|
|
```sh
|
|
sudo apt install restic openssh-client
|
|
sudo install -d -m 0700 /etc/coulobre/offsite/vault
|
|
sudo ssh-keygen -t ed25519 -N '' -f /etc/coulobre/offsite/vault/identity
|
|
```
|
|
|
|
Authorize the public key for a dedicated SFTP login that has access to the
|
|
repository. Place the destination files in the directory with root
|
|
ownership and mode `0600`.
|
|
|
|
| File | Contents |
|
|
| --- | --- |
|
|
| `repository` | A line such as `sftp:coulobre-offsite:repository`. Here `repository` is relative to the SFTP user's directory. |
|
|
| `password` | The restic repository password. Store a recovery copy separately from the backup node. |
|
|
| `ssh_config` | A `Host coulobre-offsite` block with the storage server's `HostName`, `User`, and optional `Port`. Set `ConnectTimeout 10`, `ServerAliveInterval 30`, and `ServerAliveCountMax 3`. |
|
|
| `identity` | The dedicated private key generated above. |
|
|
| `known_hosts` | The independently verified SSH host key for the storage server. |
|
|
|
|
Create a new repository if needed, then verify access from the backup node.
|
|
|
|
```sh
|
|
profile=/etc/coulobre/offsite/vault
|
|
ssh_options="-F $profile/ssh_config -i $profile/identity"
|
|
ssh_options="$ssh_options -o UserKnownHostsFile=$profile/known_hosts"
|
|
ssh_options="$ssh_options -o GlobalKnownHostsFile=/dev/null"
|
|
ssh_options="$ssh_options -o StrictHostKeyChecking=yes -o BatchMode=yes -o IdentitiesOnly=yes"
|
|
sudo restic --repository-file "$profile/repository" \
|
|
--password-file "$profile/password" -o "sftp.args=$ssh_options" init
|
|
sudo /opt/coulobre/bin/coulobre-account-backup verify-offsite vault
|
|
```
|
|
|
|
On an installer-managed panel, open **Server Manager → Operator Settings →
|
|
Backups** and choose **Configure** for off-site backup destinations. Enter
|
|
the destination ID, such as `vault`. Coulobre verifies the existing
|
|
repository and enables the transfer worker for the first destination.
|
|
|
|
For manual installations or additional destinations, set
|
|
`COULOBRE_OFFSITE_BACKUP_DESTINATIONS='{"vault":"Off-site vault"}'` in
|
|
`/etc/coulobre/panel.env`. This setting contains IDs and labels. Each ID
|
|
maps to a directory under `/etc/coulobre/offsite` on the backup node.
|
|
|
|
Local tooling can also publish an ID-to-label JSON object in
|
|
`/etc/coulobre-offsite-destinations.json`. Use a root-owned regular file
|
|
with mode `0644` and replace it atomically. Add an ID only after preparing
|
|
and verifying its root-only profile. The catalog contains no hostnames,
|
|
repository paths or credentials. Existing IDs from `panel.env` take
|
|
precedence. The panel and workers discover updates without a restart once
|
|
the off-site services are installed and running. Never repoint an existing
|
|
ID to a different repository.
|
|
|
|
```sh
|
|
sudo groupadd --system coulobre-offsite-requests
|
|
sudo useradd --system --user-group --no-create-home --home-dir /nonexistent \
|
|
--shell /usr/sbin/nologin coulobre-offsite-worker
|
|
sudo install -m 0644 deploy/systemd/coulobre-account-offsite.socket \
|
|
deploy/systemd/coulobre-account-offsite@.service \
|
|
deploy/systemd/coulobre-offsite-worker.service /etc/systemd/system/
|
|
panel_manage migrate --noinput
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl enable --now coulobre-offsite-worker.service
|
|
sudo systemctl restart coulobre-panel coulobre-worker coulobre-beat
|
|
```
|
|
|
|
Choose the destination in **Backup schedule** for future scheduled backups,
|
|
or next to **Create backup** to send a one-off copy. Both use the same local
|
|
archive and transfer queue. The archive history shows transfer status. A copy becomes
|
|
**Verified** after the worker reads it back from restic and verifies its
|
|
size and SHA-256 checksum. Allow time and bandwidth for both the upload
|
|
and verification within the 30-minute transfer deadline. An interrupted
|
|
transfer reuses an existing snapshot with the same backup ID and verifies
|
|
it again. The worker makes up to five attempts before requiring a manual
|
|
retry. Operators with **Can change offsite backup transfer** can retry a
|
|
failed copy from the archive history or include a destination in a manual
|
|
backup. Add `offsite-backups` to the local service health list to monitor the
|
|
worker.
|
|
|
|
Archives awaiting verification stay on the backup node and do not count
|
|
toward the eligible local retention set. Once verified, they follow the
|
|
existing local schedule and protection rules. Manage remote snapshot
|
|
retention in restic on the storage side. Assign a new destination ID when
|
|
switching repositories. Keep the original profile and recovery credentials
|
|
for as long as you retain copies in that repository.
|
|
|
|
On the backup archive list, **Recover local archive** downloads a verified
|
|
copy and checks it against the snapshot ID and SHA-256 recorded by the panel.
|
|
The recovered copy appears as a separate local archive. It does not change
|
|
live content, revive expired archives or inherit the source's retention
|
|
schedule. Use the existing website, database or mailbox restore actions on
|
|
the recovered archive, subject to the same restore permissions and target
|
|
checks. On a manual upgrade, update the installed off-site socket service
|
|
unit from the release along with the panel, so recovery can write to the
|
|
local account backup directory.
|
|
|
|
To recover without the panel, take the destination ID, account ID and backup
|
|
ID from the archive history. On a node with the destination profile, the
|
|
recovery command looks up the snapshot by backup ID and verifies the checksum
|
|
in its authenticated metadata before creating the output file.
|
|
|
|
```sh
|
|
sudo install -d -m 0700 /srv/coulobre-recovery
|
|
sudo /opt/coulobre/bin/coulobre-account-backup recover-offsite vault 42 \
|
|
123e4567-e89b-12d3-a456-426614174000 /srv/coulobre-recovery/account.zip
|
|
sudo /opt/coulobre/bin/coulobre-account-backup unpack \
|
|
/srv/coulobre-recovery/account.zip /srv/coulobre-recovery/resources
|
|
```
|
|
|
|
The remote snapshot stores the archive filename and backup ID tag. With
|
|
the repository credentials, use `restic snapshots --json` to find them
|
|
when recovering without the original panel database.
|
|
|
|
#### 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. Website and MariaDB restores use the backup
|
|
host. To restore to a separate mail server, use the
|
|
[remote mailbox setup](#include-mailboxes-on-a-separate-server).
|
|
|
|
```sh
|
|
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.
|
|
|
|
```sh
|
|
# 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
|
|
```
|
|
|
|
```sh
|
|
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 on the destination. 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](development.md#recover-backups-from-the-bundle)
|
|
or the remote mailbox action below.
|
|
|
|
##### 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.
|
|
|
|
1. Choose **Create backup** with mail included. Wait for **Ready** and check
|
|
that the archive exists on the server.
|
|
2. 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.
|
|
3. Empty the disposable database while its application is disconnected.
|
|
Restore it from the same backup and query for the original row.
|
|
4. 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](development.md#apply-a-mailbox-manifest)
|
|
on the same server. Install the service drop-in so the backup service can
|
|
create its temporary Maildir copies on the mail volume.
|
|
|
|
```sh
|
|
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.
|
|
|
|
#### Include mailboxes on a separate server
|
|
|
|
Enable local account backups on the panel host and provision the
|
|
mailboxes on the [separate mail node](#provision-mail-and-dns-on-separate-servers).
|
|
Upgrade Coulobre on both hosts. The website, database dumps, and completed
|
|
ZIP stay on the backup host. The mail node streams the native snapshots
|
|
over SSH and uses temporary disk space while collecting or restoring a
|
|
mailbox.
|
|
|
|
Choose which operations to enable. The examples enable both; use just
|
|
`backup` in the loops if you only want to collect mail.
|
|
|
|
On the backup host, create a dedicated identity and SSH key for each
|
|
operation, and install its relay socket and service.
|
|
|
|
```sh
|
|
sudo apt install openssh-client
|
|
sudo install -d -m 0755 /etc/coulobre-remote
|
|
sudo install -m 0644 deploy/openssh/mail-archive-client.conf.example \
|
|
/etc/coulobre-remote/mail-archive.conf
|
|
sudoedit /etc/coulobre-remote/mail-archive.conf
|
|
for action in backup restore; do
|
|
unit="coulobre-mail-archive-$action"
|
|
path="/etc/coulobre-remote/mail-archive-$action"
|
|
sudo useradd --system --user-group --no-create-home --home-dir /nonexistent \
|
|
--shell /usr/sbin/nologin "$unit"
|
|
sudo install -d -o root -g "$unit" -m 0750 "$path"
|
|
sudo ssh-keygen -t ed25519 -N '' -f "$path/id_ed25519"
|
|
sudo chown "$unit:$unit" "$path/id_ed25519"
|
|
sudo install -m 0644 "deploy/systemd/$unit.socket" \
|
|
"deploy/systemd/$unit@.service" /etc/systemd/system/
|
|
sudo install -D -m 0644 "deploy/systemd/$unit@.service.d/relay.conf" \
|
|
"/etc/systemd/system/$unit@.service.d/relay.conf"
|
|
sudo cat "$path/id_ed25519.pub"
|
|
done
|
|
```
|
|
|
|
Point the SSH aliases at the mail node that serves these mailboxes. Add
|
|
its verified host key to each operation's `known_hosts` file. Keep both
|
|
aliases pointed at the same node while jobs are queued or may be retried.
|
|
|
|
On the mail node, save the sender's separate public keys as
|
|
`backup.pub` and `restore.pub`. Install the receiver accounts, sockets,
|
|
and forced commands.
|
|
|
|
```sh
|
|
sudo apt install openssh-server socat
|
|
sudo install -d -m 0755 /etc/ssh/coulobre-node-keys
|
|
for action in backup restore; do
|
|
unit="coulobre-mail-archive-$action"
|
|
sudo useradd --system --user-group --no-create-home --home-dir / \
|
|
--shell /bin/sh "$unit"
|
|
sudo install -m 0644 "$action.pub" "/etc/ssh/coulobre-node-keys/$unit"
|
|
sudo install -m 0644 "deploy/systemd/$unit.socket" \
|
|
"deploy/systemd/$unit@.service" /etc/systemd/system/
|
|
sudo systemctl enable --now "$unit.socket"
|
|
done
|
|
sudo install -m 0644 deploy/openssh/coulobre-mail-archive.conf.example \
|
|
/etc/ssh/sshd_config.d/00-coulobre-mail-archive.conf
|
|
sudo install -m 0644 deploy/tmpfiles.d/coulobre-mail-archive.conf \
|
|
/etc/tmpfiles.d/coulobre-mail-archive.conf
|
|
sudo sshd -t
|
|
sudo systemctl reload-or-restart ssh.service
|
|
sudo systemctl start systemd-tmpfiles-clean.timer
|
|
```
|
|
|
|
Return to the backup host. Enable the corresponding relay sockets and
|
|
authorize the operations for the account services.
|
|
|
|
```sh
|
|
sudo install -D -m 0644 deploy/systemd/coulobre-account-backup@.service.d/remote-mail.conf \
|
|
/etc/systemd/system/coulobre-account-backup@.service.d/remote-mail.conf
|
|
sudo systemctl enable --now coulobre-mail-archive-backup.socket
|
|
|
|
# For restores, install the account restore socket and worker access first.
|
|
sudo install -D -m 0644 deploy/systemd/coulobre-account-restore@.service.d/remote-mail.conf \
|
|
/etc/systemd/system/coulobre-account-restore@.service.d/remote-mail.conf
|
|
sudo systemctl enable --now coulobre-mail-archive-restore.socket
|
|
```
|
|
|
|
Use `COULOBRE_REMOTE_ACCOUNT_BACKUP_MAIL=1` and, if enabled,
|
|
`COULOBRE_REMOTE_MAILBOX_RESTORE=1` in `/etc/coulobre/panel.env`.
|
|
Each operation takes one transport. Clear its local setting when
|
|
switching that operation to SSH. Apply migrations, reload systemd, and
|
|
restart the panel, scheduler and backup worker.
|
|
|
|
Select **Include mailboxes** in manual or scheduled backups. A failed or
|
|
interrupted transfer reports where mail collection stopped and keeps the
|
|
incomplete backup out of the ready archives and retention count.
|
|
|
|
For recovery, pause delivery and client access for the selected mailbox.
|
|
Use **Restore mailbox** with the matching, provisioned destination and
|
|
an absent Maildir. If the connection drops before the result is confirmed,
|
|
use **Retry remote restore** while the source archive is available. The
|
|
mail node records results by restore ID and checks the archive checksum
|
|
and destination before writing. If it reports an interrupted restore,
|
|
inspect the destination before opening a new request. Keep the mail
|
|
node's restore journal under `/var/lib/coulobre/mail-archive-restores/`
|
|
while corresponding jobs can still be retried. The cleanup rule removes
|
|
abandoned transfer staging files after one day.
|
|
|
|
For a recovery drill, follow the [backup and restore drill](#run-a-backup-and-restore-drill)
|
|
with the mailbox stored on the other node. Verify that the backup on the
|
|
panel host includes the website, SQL dump, and test message, and that the
|
|
selected message is recovered on the mail node.
|
|
|
|
## 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.
|
|
|
|
```sh
|
|
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`.
|
|
|
|
```sh
|
|
# 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](https://doc.dovecot.org/2.4.4/core/summaries/settings.html)
|
|
|
|
```sh
|
|
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.
|
|
|
|
### Import mail from an external IMAP server
|
|
|
|
Enable mailbox imports on a panel that provisions either local mailboxes
|
|
or mailboxes on a linked Coulobre mail node. Upgrade a linked receiver to
|
|
the matching release and use a domain-scoped mail receiver connection.
|
|
The dedicated import worker uses the existing mail provisioning socket.
|
|
The receiver appends to the selected, active mailbox without exposing or
|
|
changing its password. This works independently of webmail or password
|
|
reveal settings.
|
|
|
|
Set `COULOBRE_MAILBOX_IMAP_IMPORT=1` in `/etc/coulobre/panel.env`. From the
|
|
matching Coulobre source release, or its installed copy at
|
|
`/usr/share/coulobre-panel/source` for APT installations, install the worker.
|
|
|
|
```sh
|
|
sudo install -m 0644 deploy/systemd/coulobre-mailbox-import-worker.service \
|
|
/etc/systemd/system/
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl enable --now coulobre-mailbox-import-worker.service
|
|
sudo systemctl restart coulobre-panel.service coulobre-worker.service coulobre-beat.service
|
|
```
|
|
|
|
The general worker dispatches import jobs. Restart it along with the panel
|
|
and scheduler so all three read the new setting. APT upgrades refresh the
|
|
socket access for the existing import worker. After a wheel-only upgrade,
|
|
install the updated unit as above and restart the import worker.
|
|
|
|
Open **Email Accounts**, find an existing mailbox, and choose **Import mail**.
|
|
Customers can import into their own mailboxes. Operators need mailbox view
|
|
and change permissions. Enter only the external IMAP hostname, username, and
|
|
password or app password. The source must resolve only to public addresses
|
|
and support implicit TLS on port 993 with a trusted certificate. OAuth-only
|
|
accounts are not supported.
|
|
|
|
Choose **Preview import** to check the source and destination and view a
|
|
read-only count of source folders and messages before copying. The size
|
|
is shown only when the source reports it for every folder. Partial
|
|
inventories identify how many folders were counted. Counts describe the
|
|
source at the time of the check and include mail already copied on prior
|
|
passes. On a subsequent pass, the preview can count messages after a
|
|
matching checkpoint in a bounded UID range. It leaves the estimate
|
|
unavailable for folders where it cannot do so reliably. Confirmation
|
|
starts a new copy pass with the same source
|
|
credentials and uses the existing checkpoints. The preview expires after
|
|
30 minutes. Use **Import without preview** if you do not need an
|
|
inventory or your provider does not supply usable folder counts.
|
|
|
|
Start once and leave the page if needed. The worker continues from saved
|
|
checkpoints in batches and retries interrupted connections. Progress updates
|
|
without a page reload and shows copied messages, previously copied messages,
|
|
recorded bytes, elapsed time, and folder errors. Byte totals only cover
|
|
imports that recorded message sizes. The import preserves folder structure,
|
|
original message dates, and supported flags. It skips `\Recent` and does not
|
|
copy `\Deleted`, mark mail as read at the source, remove existing messages,
|
|
or change DNS. It does not import contacts, calendars, or server rules.
|
|
|
|
For a mail cutover, run the first pass before changing mail routing. After the
|
|
source stops receiving mail, choose **Copy new mail** and enter the same
|
|
source credentials for a final pass. If a folder changes its UID identity,
|
|
inspect the source and destination before resuming. Folder moves and renames
|
|
are not mirrored. A pass supports up to 500 folders and messages up to 50 MiB.
|
|
|
|
The source password is encrypted while the job is active and cleared when it
|
|
finishes, fails, or expires. Jobs must start within 30 minutes and can run
|
|
for up to 24 hours before the source password is needed again. If a job does
|
|
not start, check `journalctl -u coulobre-mailbox-import-worker`. Let active
|
|
imports finish before upgrading from the old password-based importer. The
|
|
upgrade discards legacy credentials and preserves checkpoints for a new pass.
|
|
For manual upgrades, stop and start the import worker with the other workers.
|
|
|
|
### 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`.
|
|
|
|
```sh
|
|
# 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.
|
|
|
|
### Enable mailbox password changes
|
|
|
|
New installer-managed panels with local or linked Coulobre mail enable
|
|
password changes. On an existing installer-managed APT panel, upgrade the
|
|
panel and its mail receiver to the same release. Open **Operator Settings →
|
|
Email** as an MFA-verified operator and select **Enable** for **Mailbox
|
|
password changes**. The setup operation starts the password socket and
|
|
briefly restarts the panel services.
|
|
|
|
Customers can select **Change password** for a configured mailbox in **Email
|
|
Accounts**. Operators with mailbox rotation permissions can use the same
|
|
action on the hosting account's **Email** tab. Confirming the current panel
|
|
password generates a replacement mailbox password. Update the saved login
|
|
in mail clients. The panel records the request and outcome without storing
|
|
the replacement password. If the response is lost, retry the same change.
|
|
|
|
The password relay accepts generation checks and rotation requests. A
|
|
linked receiver checks the domain against the authenticated provisioning
|
|
identity. This path does not need the legacy remote credential socket or
|
|
permission to read existing passwords. The previously configured IMAP and
|
|
SMTP endpoints still apply.
|
|
|
|
Customers with a finite mailbox limit in their hosting package can change
|
|
storage quotas within that limit. The row shows the pending or failed quota
|
|
update and lets the customer retry a failed request. Operators can also
|
|
change the limit from the hosting account. Quota changes preserve the
|
|
mailbox password and messages.
|
|
|
|
### Open phpMyAdmin from the panel
|
|
|
|
On an installer-managed panel with local MariaDB and Apache HTTPS, open
|
|
**Server Manager → Operator Settings → Database**. Choose **Configure** for
|
|
phpMyAdmin sign-in, enter a dedicated HTTPS hostname, and select **Install
|
|
and enable**. Coulobre installs the distribution package, sets up a
|
|
dedicated PHP-FPM pool and enables the credential bridge. A configured
|
|
integration can be paused from the same settings tab.
|
|
|
|
Point the hostname at the panel server before setup. Coulobre uses an
|
|
existing Let's Encrypt certificate for that name or requests one over
|
|
HTTP-01 using the installed Certbot account. To supply a certificate,
|
|
place a root-owned chain and a private key with mode `0600` in
|
|
`/etc/coulobre/tool-tls/<hostname>/fullchain.pem` and `privkey.pem`.
|
|
|
|
For a custom installation, follow the manual setup below.
|
|
|
|
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.
|
|
|
|
When upgrading an existing bridge, replace `coulobre-signon.php` with the
|
|
file from the installed Coulobre release. The current bridge accepts both
|
|
the original MariaDB names and the new account-based names.
|
|
|
|
Set `php_version` to the version for your distribution before running the
|
|
commands below. 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.
|
|
|
|
```sh
|
|
php_version=8.5 # Use 8.4 on Debian 13.
|
|
sudo apt install phpmyadmin "php${php_version}-fpm" "php${php_version}-mysql" \
|
|
"php${php_version}-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/${php_version}/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.
|
|
|
|
```sh
|
|
panel_manage migrate --noinput
|
|
panel_manage collectstatic --noinput
|
|
sudo a2enmod ssl proxy_fcgi
|
|
sudo a2ensite coulobre-phpmyadmin
|
|
sudo "php-fpm${php_version}" --test
|
|
sudo apache2ctl configtest
|
|
sudo systemctl reload "php${php_version}-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](https://docs.phpmyadmin.net/en/latest/config.html#example-for-signon-authentication)
|
|
|
|
### Open a mailbox in Roundcube
|
|
|
|
On an installer-managed panel with Apache HTTPS, open **Server Manager →
|
|
Operator Settings → Email**. Choose **Configure** for Roundcube sign-in
|
|
and enter a dedicated hostname with the same DNS and certificate
|
|
requirements as phpMyAdmin. Enable mailbox password changes first. For
|
|
linked mail, the receiver must be on the same Coulobre release and grant
|
|
the panel access to its own mail domains. Existing installations with
|
|
manual webmail configuration can continue to use that configuration.
|
|
|
|
Coulobre verifies the upstream Roundcube Complete archive, installs it in
|
|
`/opt/coulobre-roundcube` and keeps its SQLite data in
|
|
`/var/lib/coulobre-roundcube`. Track upstream security updates for the
|
|
managed Roundcube application. Use the manual setup below to manage a
|
|
custom Roundcube deployment.
|
|
|
|
Use the Roundcube 1.7 Complete release. Verify
|
|
the archive and install Roundcube in `/opt/roundcube` following the
|
|
[upstream manual setup](https://github.com/roundcube/roundcubemail/wiki/Installation).
|
|
[Roundcube downloads](https://roundcube.net/download/)
|
|
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 the matching PHP cURL package 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](#enable-connection-details-for-remote-mailboxes).
|
|
|
|
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.
|
|
|
|
```sh
|
|
php_version=8.5 # Use 8.4 on Debian 13.
|
|
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/${php_version}/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`.
|
|
|
|
```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.
|
|
|
|
```ini
|
|
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](#provision-mail-and-dns-on-separate-servers).
|
|
|
|
Enable the [DNS publishing socket](development.md#enable-local-dns-publishing)
|
|
on the panel host. Install the BIND9 publishing worker under a dedicated
|
|
identity with access to that socket.
|
|
|
|
```sh
|
|
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.
|
|
|
|
```sh
|
|
panel_manage migrate --noinput
|
|
sudo systemctl restart coulobre-panel coulobre-worker coulobre-beat
|
|
sudo systemctl enable --now coulobre-dns-publisher.service
|
|
```
|
|
|
|
Select **Save and publish zone** to queue a new zone from a hosting account.
|
|
Use **Publish zone** to publish a pending revision of an existing zone.
|
|
The account page shows 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.
|
|
|
|
In the DNS editor, **Use hosting IP** fills an A or AAAA record with a
|
|
matching address from the effective DNS zone template. Choose an address
|
|
when more than one is available. You can edit the value before saving.
|
|
|
|
To let the customer edit a zone's records, enable
|
|
**Delegate record editing** on that zone. They can also publish the zone when
|
|
Coulobre publishing is enabled. The operator controls the authoritative
|
|
nameservers, SOA responsible name, and automatic mail DNS setting. In
|
|
**Additional records**, enter one fully qualified name, type, and value per
|
|
line. Use `@` for the zone apex.
|
|
|
|
```text
|
|
www.example.net CNAME example.net.
|
|
_sip._tcp.example.net SRV 10 0 5060 sip.example.net.
|
|
@ CAA 0 issue "letsencrypt.org"
|
|
```
|
|
|
|
Upgrade a separate BIND9 node to the same Coulobre version before publishing
|
|
zones with these records.
|
|
|
|
## Provision local mailboxes from the panel
|
|
|
|
To provision Postfix and Dovecot on another host, use the
|
|
[separate-node setup](#provision-mail-and-dns-on-separate-servers).
|
|
|
|
Set up [Postfix and Dovecot](development.md#apply-a-mailbox-manifest) on the
|
|
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 is kept in the root-only credentials file on the mail node.
|
|
To locate that file, export the mailbox 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](#show-local-database-and-mailbox-connection-details)
|
|
|
|
Set a per-mailbox storage limit on the hosting package 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)
|
|
|
|
## Configure mail routing and automatic replies
|
|
|
|
Set up these features on the Postfix and Dovecot node, including when it runs
|
|
on a separate server. Upgrade the panel and that node to the same Coulobre
|
|
version and keep the existing mailbox provisioning worker enabled.
|
|
|
|
### Enable aliases, forwarders, and catch-all
|
|
|
|
Create the managed alias map once on the mail node. Keep its contents when
|
|
upgrading.
|
|
|
|
```sh
|
|
if ! sudo test -e /etc/postfix/coulobre-aliases; then
|
|
printf '%s\n' '# Managed by Coulobre Panel' |
|
|
sudo tee /etc/postfix/coulobre-aliases >/dev/null
|
|
sudo chmod 0644 /etc/postfix/coulobre-aliases
|
|
fi
|
|
```
|
|
|
|
Set `virtual_alias_maps` in Postfix's `main.cf`. Put Coulobre's map first
|
|
if you have other maps, and give each Coulobre-managed mail domain a single
|
|
source for alias and catch-all rules.
|
|
|
|
```ini
|
|
virtual_alias_maps = proxy:texthash:/etc/postfix/coulobre-aliases
|
|
smtpd_reject_unlisted_recipient = yes
|
|
```
|
|
|
|
Run `sudo postfix check` and `sudo postfix reload`. Set
|
|
`COULOBRE_MAIL_ROUTING=1` in `/etc/coulobre/panel.env`. Operators can opt a
|
|
hosting package into catch-all and external forwarding separately. Plan changes
|
|
are checked when saving the next routing revision. To revoke an active
|
|
forwarder or catch-all, remove the rule and apply the update.
|
|
|
|
From **Mail domains**, open **Manage routing**, then preview and apply your
|
|
routes. A route can have several destinations. Local destinations are
|
|
provisioned mailboxes on that domain. Catch-all sends unknown recipients
|
|
to one mailbox on the same domain. Leave it blank for normal rejection of
|
|
unknown recipients. The panel shows the last confirmed publication and any
|
|
publication error. For individual delivery failures, check Postfix's
|
|
delivery status notification and the mail node's logs. Verify forwarding
|
|
to external providers with real test mail because their SPF and DMARC
|
|
policies can affect delivery. [Postfix virtual aliases](https://www.postfix.org/virtual.5.html)
|
|
|
|
### Receive mail for another domain without separate mailboxes
|
|
|
|
Open the alias domain under **Domains** and choose **Manage mail alias**.
|
|
An operator can also use **Mail domain aliases** on the hosting account's
|
|
**Email** tab. Select a primary domain with a configured mailbox. The two
|
|
domains can be on separate hosting accounts on the same panel if they
|
|
belong to the same customer. On a shared mail node, the panel's receiver
|
|
key must cover both domains before adding or removing the alias.
|
|
|
|
Addresses at the alias domain follow the primary domain's matching mailbox
|
|
or forwarder. Unknown addresses are rejected unless the primary domain
|
|
has a catch-all. The alias does not add a mailbox, login, sending identity,
|
|
or additional quota. Coulobre adds the MX record to a managed DNS zone if
|
|
there is no conflicting mail route. For external DNS, copy the MX record
|
|
from the panel after the alias is active. Review existing routes before
|
|
switching providers and remove manually added MX records before removing
|
|
an alias.
|
|
|
|
New installer-managed mail nodes configure the Postfix maps for aliases.
|
|
Existing installations can reuse the managed map above. For domain aliases,
|
|
set both `virtual_alias_maps` and `virtual_alias_domains` to
|
|
`proxy:texthash:/etc/postfix/coulobre-aliases`. The latter may already
|
|
resolve to that map through Postfix's default. Check the effective settings
|
|
with `postconf -hx` and validate and reload Postfix after changing them.
|
|
Domain aliases are not enabled against custom alias tables, so Coulobre
|
|
cannot take over an address owned by an existing router.
|
|
|
|
### Enable scheduled automatic replies
|
|
|
|
Install the distribution's `dovecot-sieve` package. Add the settings in
|
|
[the Dovecot 2.4 example](../deploy/dovecot/vacation-2.4.conf.example) on Ubuntu
|
|
26.04 or Debian 13, or
|
|
[the Dovecot 2.3 example](../deploy/dovecot/vacation-2.3.conf.example) on Ubuntu
|
|
24.04. If you already run Sieve, merge the configuration and keep the
|
|
Coulobre script in the sequence before personal scripts. Check the merged
|
|
configuration with `sudo doveconf -n` and reload Dovecot. A default Postfix
|
|
installation provides the local `sendmail` command used for replies.
|
|
|
|
Set `COULOBRE_MAIL_VACATION=1` in `/etc/coulobre/panel.env`. Open
|
|
**Automatic replies** for a deployed mailbox and enter a subject and message.
|
|
Optional start and end times are in UTC. Sieve checks the schedule at
|
|
delivery. It continues the normal delivery and suppresses responses to
|
|
automatic mail and repeat responses to the same sender within seven days.
|
|
[Dovecot Sieve documentation](https://doc.dovecot.org/2.4.2/core/plugins/sieve.html)
|
|
|
|
After changing either panel flag, run `panel_manage migrate --noinput`.
|
|
Restart `coulobre-panel`, `coulobre-worker`, `coulobre-beat`, and
|
|
`coulobre-mailbox-provisioner`. Customers can manage the
|
|
settings for their own accounts. Operators need view permissions for the
|
|
account and mailboxes and change permission for the mail domain or mailbox.
|
|
|
|
The panel database keeps the last requested and confirmed settings. Include
|
|
the mail node's Coulobre state and `/var/lib/coulobre-vacation` in your
|
|
server backup if you use these features. Maildir-only archives contain
|
|
messages and folders. Reapply policy settings after a mailbox-only recovery.
|
|
|
|
## Inspect reported spam and authentication results
|
|
|
|
Sign in as a server administrator with a verified second factor and open
|
|
**Admin Tools → Mail diagnostics**. Paste the original headers from the
|
|
receiving mail client. The panel summarizes reported SPF, DKIM and DMARC,
|
|
plus spam scores and matched rules when the filter includes them. It
|
|
compares the reported SPF and DKIM domains with the From domain. Treat
|
|
these results as evidence from the named receiver after checking that you
|
|
trust the source. Headers supplied by other parties can contain forged
|
|
results. The panel processes pasted headers in the request and does not
|
|
store them in mail reports.
|
|
|
|
For a managed From domain, use **Check mail DNS** to check DNS and any
|
|
matching DKIM selectors found in the message. **Look up delivery** can
|
|
prefill a Postfix queue ID when delivery tracking is configured. Choose
|
|
the managed sending or receiving domain and the period to search. Matches
|
|
show the journal's delivery state and enhanced status code when present.
|
|
The journal search is limited to the selected domain on the configured
|
|
mail receiver. Header analysis runs without contacting the mail node.
|
|
|
|
### Check the incoming spam filter
|
|
|
|
On **Mail diagnostics**, select a managed mail domain and choose
|
|
**Run filter check**. The check runs on the same local or linked mail
|
|
receiver that provisions mailboxes for the panel. Keep linked receivers
|
|
at the same Coulobre release. The report identifies the receiver, shows
|
|
the expected and observed decisions, and lists scores, thresholds and
|
|
matching rules for the two synthetic messages.
|
|
|
|
The direct check covers SpamAssassin's local rules. It uses a transient
|
|
unprivileged service with a read-only system, private temporary storage
|
|
and no network access. Bayesian learning and online checks are disabled.
|
|
The messages never enter Postfix or reach a mailbox. The check is
|
|
unavailable when SpamAssassin is absent, including mail nodes that only
|
|
use Rspamd for signing. The panel retains the summary for one hour.
|
|
[SpamAssassin GTUBE](https://spamassassin.apache.org/gtube/)
|
|
|
|
For an end-to-end check of the SMTP listener, milter and mailbox delivery,
|
|
follow the [SpamAssassin test procedure](#filter-incoming-mail-with-spamassassin)
|
|
with a designated test mailbox. Run that procedure separately from the
|
|
direct filter check.
|
|
|
|
## Check and provision mail DNS
|
|
|
|
Open **Check mail DNS** under **Mail domains**. The check reads MX and
|
|
its address records, SPF, DMARC, DKIM public keys, the MTA-STS and TLS-RPT
|
|
DNS records, and reverse DNS for configured sending addresses. Use the
|
|
DKIM selector supplied by the signer or the `s=` value from a sent
|
|
message's `DKIM-Signature` header. Coulobre fills in selectors it knows.
|
|
|
|
The panel uses its system resolver by default. For internet-facing mail,
|
|
set `COULOBRE_MAIL_DNS_RESOLVERS` to a comma-separated list of up to three
|
|
trusted recursive resolvers with a public DNS view. An authoritative-only
|
|
BIND instance serves zones and may not answer queries for other domains.
|
|
Results describe the returned records and their basic validity. Verify
|
|
SPF evaluation, DKIM signatures, DMARC alignment and mail delivery with a
|
|
message sent to an independent mailbox. The MTA-STS check reads its DNS
|
|
policy ID. Checking the HTTPS policy is a separate step. The DKIM check
|
|
compares the managed selector with the public key received from the mail
|
|
node.
|
|
|
|
When IMAP and SMTP submission share a hostname, Coulobre adds a CNAME
|
|
for `mail.<domain>` when creating or refreshing managed mail DNS. It
|
|
keeps existing records at that name. For external DNS, copy the suggested
|
|
CNAME from **Check mail DNS**. Use the configured service hostname until
|
|
public DNS resolves and the mail service presents a certificate valid for
|
|
the alias. Welcome emails list the configured IMAP and submission hostnames
|
|
as the defaults.
|
|
When connecting an existing remote mail node in the installer, set
|
|
`mail_hostname` to its public service name. The SSH host may be private.
|
|
An already installed panel uses the client-facing names configured in
|
|
`COULOBRE_MAIL_IMAP_HOST` and `COULOBRE_MAIL_SUBMISSION_HOST`.
|
|
|
|
### Set up signing on a Coulobre mail node
|
|
|
|
Install the distribution's `rspamd` package on the mail node, including
|
|
when the node is separate from the panel. This example dedicates Rspamd
|
|
to signing authenticated Postfix submission. It uses a private Postfix
|
|
socket and disables Rspamd's normal and controller listeners. The
|
|
mail host can still use [SpamAssassin for incoming SMTP](#filter-incoming-mail-with-spamassassin).
|
|
[Rspamd signing options](https://docs.rspamd.com/modules/dkim_signing/)
|
|
|
|
```sh
|
|
sudo apt install rspamd
|
|
sudo install -d -o root -g _rspamd -m 0750 /etc/rspamd/coulobre-dkim
|
|
sudo install -d -o root -g postfix -m 0750 /var/spool/postfix/rspamd
|
|
sudo install -m 0644 deploy/rspamd/dkim_signing.conf.example \
|
|
/etc/rspamd/override.d/dkim_signing.conf
|
|
sudo install -m 0644 deploy/rspamd/worker-proxy.inc.example \
|
|
/etc/rspamd/override.d/worker-proxy.inc
|
|
for worker in normal controller; do
|
|
sudo install -m 0644 deploy/rspamd/worker-disabled.inc.example \
|
|
"/etc/rspamd/override.d/worker-$worker.inc"
|
|
done
|
|
sudo install -m 0644 deploy/rspamd/settings.conf.example \
|
|
/etc/rspamd/local.d/settings.conf
|
|
sudo `rspamadm configtest`
|
|
sudo systemctl enable rspamd.service
|
|
sudo systemctl restart rspamd.service
|
|
```
|
|
|
|
Configure TLS for Postfix and include
|
|
`deploy/dovecot/submission-auth.conf.example` in the Dovecot configuration
|
|
to provide the SASL socket. Use full email addresses for authentication.
|
|
Merge `deploy/rspamd/postfix-submission.cf.example` into the
|
|
`submission` service in `/etc/postfix/master.cf`. Use the signing socket
|
|
only from authenticated submission. Keep any inbound milters on the
|
|
public SMTP service. Rspamd signs when the authenticated domain,
|
|
envelope sender domain, and header sender domain agree.
|
|
[Postfix SASL setup](https://www.postfix.org/SASL_README.html)
|
|
|
|
```sh
|
|
sudo systemctl restart dovecot.service
|
|
sudo postfix check
|
|
sudo postfix reload
|
|
```
|
|
|
|
Configure the panel and mailbox worker in `/etc/coulobre/panel.env`.
|
|
Set the inbound hostname separately from the sending addresses. Set
|
|
`COULOBRE_MAIL_MX_IPS` when Coulobre should also create address records for
|
|
an MX hostname inside the managed zone. Ensure an MX hostname outside
|
|
the zone already has public addresses at its DNS provider. Replace the
|
|
documentation addresses below with the real public addresses.
|
|
|
|
```ini
|
|
COULOBRE_MANAGE_MAIL_DNS=1
|
|
COULOBRE_MAIL_MX_HOST=mx.example.net
|
|
COULOBRE_MAIL_MX_IPS=192.0.2.25
|
|
COULOBRE_MAIL_SENDING_IPS=192.0.2.25,2001:db8::25
|
|
```
|
|
|
|
Upgrade Coulobre on the panel and mail node, apply migrations, collect
|
|
static files and restart the panel, workers and scheduler. Provisioning a
|
|
mailbox creates or reuses a per-domain RSA DKIM key with selector
|
|
`coulobre`. The signing key stays on the mail node. Include
|
|
`/etc/rspamd/coulobre-dkim` in the operator's protected configuration
|
|
backup. For an existing mailbox, an operator can run **Refresh mail DNS
|
|
setup** on the domain's checker page.
|
|
|
|
### Publish records with Coulobre DNS
|
|
|
|
Enable the local or SSH-backed DNS publishing worker and select
|
|
**Publish DNS for Coulobre mail automatically** in the zone's editor.
|
|
Provision a mailbox or refresh its mail DNS setup. Coulobre adds the MX
|
|
record, any needed in-zone addresses, an SPF policy for the configured
|
|
sending IPs, a monitoring DMARC record, and the DKIM public key. It
|
|
queues the revised zone through the configured DNS worker.
|
|
|
|
The job waits for a publishing request already in progress. Publish
|
|
unpublished zone edits before applying a conflicting mail setup. Review
|
|
existing MX or DKIM conflicts from the checker page. Coulobre preserves
|
|
existing SPF and DMARC policies. When other systems also send for the
|
|
domain, include them in SPF before asking receivers to enforce DMARC.
|
|
Configure PTR with the provider that assigns the public sending IP.
|
|
|
|
### Publish records with third-party DNS
|
|
|
|
The checker shows the DNS zone and nameservers observed by the resolver.
|
|
Open the DNS editor at the company hosting that zone. Use the registrar's
|
|
editor when the registrar also runs its nameservers. Leave automatic
|
|
publishing off for a zone hosted by a third party.
|
|
|
|
Copy the record names, values, and MX priorities from **Where to edit
|
|
DNS**. Use the full record name or the relative name expected by the
|
|
provider. Keep one SPF policy and merge all authorized senders into it.
|
|
For a third-party signer, use its exact DKIM TXT or CNAME records. Publish
|
|
the records and run the checker again after the old TTL has expired.
|
|
|
|
## 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.
|
|
|
|
```sh
|
|
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](https://www.postfix.org/MILTER_README.html)
|
|
|
|
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.
|
|
|
|
```sh
|
|
sudo install -D -m 0644 deploy/spamassassin/debian-milter.service.conf \
|
|
/etc/systemd/system/spamass-milter.service.d/coulobre.conf
|
|
sudo systemctl daemon-reload
|
|
```
|
|
|
|
```sh
|
|
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](https://spamassassin.apache.org/full/4.0.x/doc/Mail_SpamAssassin_Conf.html)
|
|
|
|
On a test mail node, check delivery through SMTP to a Coulobre mailbox and
|
|
inspect the full headers over IMAP.
|
|
|
|
1. Send a normal message and look for `X-Spam-Status: No`.
|
|
2. Send the [GTUBE test message](https://spamassassin.apache.org/gtube/)
|
|
and look for `X-Spam-Status: Yes` with `GTUBE` in the matched tests.
|
|
3. Stop `spamd.service` and send another test message. Confirm it arrives
|
|
without a scanner-added status. Start the scanner and repeat with
|
|
`spamass-milter.service` stopped. 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](#monitor-local-and-remote-services) 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 | Mail |
|
|
| --- | --- | --- |
|
|
| `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` |
|
|
|
|
### Install and enrol a node
|
|
|
|
Use the same verified Coulobre source release on the panel host and the
|
|
destination. The destination needs a systemd host running Debian 13,
|
|
Ubuntu 24.04, or Ubuntu 26.04, with access to its APT repositories and Python
|
|
dependencies. Open the destination's SSH port to the panel host. Use your
|
|
existing administrator account to install the node.
|
|
|
|
From the unpacked release on the destination, run the installer for the roles
|
|
you want. The installer uses the distribution's packages, installs Coulobre in
|
|
`/opt/coulobre`, and enables the receiver sockets.
|
|
|
|
```sh
|
|
sudo ./deploy/install-node.sh dns mail
|
|
```
|
|
|
|
For an installation started from the central host, run the same command
|
|
through your existing administrative SSH connection after copying and
|
|
verifying the source release on the destination.
|
|
|
|
```sh
|
|
ssh -t operator@node.example.org 'cd /path/to/coulobre-release && sudo ./deploy/install-node.sh dns'
|
|
```
|
|
|
|
Set up [BIND9](development.md#apply-a-zone-manifest) or
|
|
[Postfix and Dovecot](development.md#apply-a-mailbox-manifest) for the role
|
|
before enrolment. This includes the BIND9 control channel or the Postfix
|
|
lookups, Dovecot LMTP socket, and mail TLS configuration. Configure a fresh
|
|
service once. Repeat the installer to add roles or restore missing receiver
|
|
units. It reuses the installed release and preserves service configuration,
|
|
zone files, and mailbox data. Use the normal release upgrade procedure to
|
|
change Coulobre versions.
|
|
|
|
Run `sudo /opt/coulobre/bin/coulobre-node-setup check-receiver dns`
|
|
or use `mail` to check the destination configuration locally.
|
|
|
|
On the panel host, prepare its identity for the role. This example uses DNS.
|
|
For mail, substitute `mail` and the corresponding worker and flag from the
|
|
table.
|
|
|
|
```sh
|
|
sudo apt install openssh-client
|
|
sudo /opt/coulobre/bin/coulobre-node-setup prepare-panel dns > panel-dns.pub
|
|
```
|
|
|
|
Transfer `panel-dns.pub` to the destination and authorize it there. Repeating
|
|
this command keeps the same key. Run it once for each panel that shares the
|
|
receiver.
|
|
|
|
```sh
|
|
sudo /opt/coulobre/bin/coulobre-node-setup authorize-panel dns panel-dns.pub
|
|
```
|
|
|
|
Get the destination's SSH host **public** key through the administrator
|
|
connection and save it as `node-host.pub` on the panel host. Verify the node
|
|
host and fingerprint before enrolling it. From the unpacked release on the
|
|
panel host, run the following commands. Set `--port` if the destination uses
|
|
a different SSH port.
|
|
|
|
```sh
|
|
sudo /opt/coulobre/bin/coulobre-node-setup enrol-panel dns node.example.org node-host.pub
|
|
sudo /opt/coulobre/bin/coulobre-node-setup check-panel dns
|
|
```
|
|
|
|
Enrolment checks the pinned SSH host identity and the restricted receiver
|
|
account, verifies the destination services and release, and tests the panel's
|
|
systemd relay socket. The check reads service status on the node. To activate
|
|
the feature, set the panel flag from the table in `/etc/coulobre/panel.env`,
|
|
restart the panel, general worker and scheduler, and enable the role worker.
|
|
|
|
```sh
|
|
sudo systemctl restart coulobre-panel coulobre-worker coulobre-beat
|
|
sudo systemctl enable --now coulobre-dns-publisher.service
|
|
```
|
|
|
|
Use **Publish zone** or **Provision mailbox** on a test hosting account and
|
|
verify the result. If the panel already has a local service or a different
|
|
relay configured for this role, follow the service migration steps before
|
|
changing destinations.
|
|
|
|
### Manual setup
|
|
|
|
The following commands show the files and identities used by the installer.
|
|
Use them for an existing deployment with its own SSH or systemd configuration.
|
|
|
|
### 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.
|
|
|
|
```sh
|
|
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](https://man.openbsd.org/ssh_config)
|
|
|
|
### Install the node on the destination
|
|
|
|
On the destination, unpack the source release and install the Coulobre node
|
|
commands in `/opt/coulobre`.
|
|
|
|
```sh
|
|
sudo apt install python3-venv openssh-server socat
|
|
sudo python3 -m venv /opt/coulobre
|
|
sudo /opt/coulobre/bin/pip install .
|
|
```
|
|
|
|
Set up [BIND9](development.md#apply-a-zone-manifest) or
|
|
[Postfix and Dovecot](development.md#apply-a-mailbox-manifest), then enable
|
|
the corresponding [DNS socket](development.md#enable-local-dns-publishing) or
|
|
[mailbox socket](development.md#enable-local-mailbox-provisioning). The
|
|
destination runs the local socket service shipped with Coulobre.
|
|
[Enable SpamAssassin on the mail node](#filter-incoming-mail-with-spamassassin)
|
|
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.
|
|
|
|
```sh
|
|
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](https://man.openbsd.org/sshd_config)
|
|
|
|
### Enable the remote destination on the panel
|
|
|
|
Use the matching worker from the table. The commands below use DNS.
|
|
|
|
```sh
|
|
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.
|
|
|
|
```sh
|
|
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](development.md#bundle-backups-from-separate-nodes).
|
|
|
|
### 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.
|
|
|
|
```sh
|
|
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.
|
|
|
|
```sh
|
|
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.
|
|
|
|
```sh
|
|
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.
|
|
|
|
## Set up manager access
|
|
|
|
Open **Managers** to add a manager login or change an existing manager's
|
|
panel access, account limit, and allowed hosting packages. The detail page shows
|
|
allocated accounts and audit history. Viewing account names and plan details
|
|
requires the corresponding hosting account and hosting package permissions.
|
|
|
|
The account limit and allowed plans apply when a manager 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 manager policy and account assignments made through the panel.
|
|
|
|
### Onboard customers
|
|
|
|
Operators and managers can open **Add User** to create a customer login and
|
|
its first hosting account together. Choose a hosting package and enter the
|
|
customer's email address to send a welcome email with a password setup link.
|
|
Use **Preview** to review the email before creating the account. Operators
|
|
can assign a manager during setup or use **Create a login only** to stage
|
|
access separately. Managers choose from their assigned hosting packages.
|
|
To add a login for an existing unassigned hosting account, open the account
|
|
and choose **Add customer login** or **Link existing customer**.
|
|
|
|
**Getting started** on the hosting overview shows setup steps for the active
|
|
workspace. Dismiss or reopen the checklist independently in each workspace.
|
|
Operators and managers can use **Enable Customer workspace** to access their
|
|
own hosting through the same login. A server administrator verifies their
|
|
second factor before enabling the role. An operator can also select **For my
|
|
own hosting** when adding a hosting account. Coulobre uses the operator's
|
|
manager profile by default.
|
|
|
|
Operators can open **Contact and invitation** from **Show All Users** to
|
|
review the welcome email and send a fresh password setup link to a pending
|
|
login. Sending a new invitation replaces the previous link.
|
|
|
|
Verified server administrators can edit the welcome email sender in
|
|
**Server Manager → Operator Settings → Email → Edit sender**. Leave the
|
|
From address blank to use the address configured for the installation.
|
|
Choose a From address accepted by the SMTP relay. The optional Reply-to
|
|
address directs replies to a separate inbox.
|
|
|
|
Managers handle customer onboarding and hosting assignments in their
|
|
portfolio. Customers manage their own website files, databases, mailboxes,
|
|
and other hosting resources in the customer workspace. Operators can
|
|
move customers and their assigned active hosting accounts between
|
|
managers using the customer page, subject to the destination manager's
|
|
available plans and remaining account allowance.
|
|
|
|
The operator's manager detail page records customer and account
|
|
assignments, policy changes, and historical provisioning activity.
|
|
|
|
## 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 manager'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.
|
|
|
|
### Remove a mailbox
|
|
|
|
On **Email Accounts**, choose **Remove mailbox** and confirm the full
|
|
address. Remove any forwarders or catch-all destination that use the
|
|
address first. If the job fails, retry it from the mailbox list. Removal
|
|
stops delivery and login for the selected address and releases its mailbox
|
|
slot after the mail node confirms the operation.
|
|
|
|
Operators can find the reference under **Hosting accounts → Email →
|
|
Archived mailboxes**. Retrieve the Maildir by that reference on the mail node
|
|
using the table above. To recover messages, provision the destination
|
|
mailbox first and import a private copy of the archived Maildir with
|
|
Dovecot. The archive is root-only and may contain private credentials.
|
|
Recover the messages from the Maildir and set a new password separately.
|
|
|
|
### Send mail from a hosted application
|
|
|
|
Open **Email Accounts → Application SMTP** on a managed mail domain and
|
|
issue a credential for the application. Save the generated password when
|
|
it is displayed. Once the credential is configured, enter the submission
|
|
hostname, port 587, STARTTLS, application username and password in the
|
|
application. Use the specified sender address for its envelope and From
|
|
header. The username is reserved for SMTP submission and has no Maildir.
|
|
|
|
The local or linked mail node needs managed Postfix submission, Dovecot
|
|
2.4, and Rspamd with per-user submission limits. Each application has its
|
|
own rate-limit bucket. For an external DNS provider, publish the records
|
|
shown by **Check email DNS**. Check a received test message for aligned
|
|
SPF and DKIM under the hosted domain. Rotate a password from the
|
|
application list or revoke the credential when the application is retired.
|
|
|
|
## Configure installed features in the panel
|
|
|
|
### Enroll hosting panels
|
|
|
|
Open **Server Manager → Connected Nodes → Enrolled panels** on each panel
|
|
using an operator login with a verified second factor. Exchange the HTTPS
|
|
origins and public keys shown there. On each panel, enroll the other panel
|
|
and enter the operator username on that peer. The operator enrolling the
|
|
peer becomes the mapped account on the local panel. Repeat for each pair
|
|
that should have access to one another.
|
|
|
|
Health checks verify both the TLS certificate and the enrolled identity.
|
|
The inventory shows the remote release and the number of recently reported
|
|
healthy services. The same peer protocol can support different panel
|
|
releases. The connected-node overview also lists linked mail and DNS
|
|
receivers for the local panel.
|
|
|
|
For a package check, sign in to the target, find the source panel in its
|
|
peer list, and choose **Authorize a check of this panel**. Confirm the
|
|
target operator's password and second factor. Enter the code on the source
|
|
panel within five minutes and refresh the result in **Package check
|
|
history**. The target uses its existing package preview worker and records
|
|
the mapped operator in its local operation history.
|
|
|
|
Use **Revoke peer** on either panel to deny incoming requests and stop
|
|
local checks for that enrollment. Revoke the reciprocal enrollment on the
|
|
other panel as well. If a panel secret changes, exchange its new public
|
|
key and re-enroll it. Each panel keeps its own hosting accounts and can
|
|
operate while another panel is unreachable.
|
|
|
|
#### View hosting accounts across panels
|
|
|
|
On each owning panel, open **Enrolled panels**, select **Hosting inventory
|
|
sharing** on the source panel's row, and choose **Share hosting accounts**.
|
|
Only the mapped local operator can enable sharing. This grants read-only
|
|
access to active account names, primary domains and status, not to
|
|
customer profiles or service credentials. Sharing is directional and off
|
|
by default, including for previously enrolled peers.
|
|
|
|
On the source panel, open **Hosting accounts → All nodes** to search and
|
|
filter by the owning panel. The combined view shows the first page from
|
|
each node. Select a node to page through all of its results. The node
|
|
column uses short hostnames unless they collide. Hover or focus the node
|
|
label to read the full host shown by the enrollment. Account links open
|
|
the owning panel, which still checks its own operator sign-in.
|
|
|
|
If a peer is unavailable, doesn't share its inventory or hasn't been
|
|
upgraded to a version that supports it, the list marks the results as
|
|
incomplete. **This node** continues to show the regular local list. The
|
|
cluster inventory is not exposed to customers or managers.
|
|
|
|
### Set up hosting features
|
|
|
|
Open **About Coulobre → Configure features** as a superuser with a verified
|
|
second factor. The page shows the installation prerequisites and distinguishes
|
|
local mail and DNS services from linked receivers. Use **Configure DNS
|
|
defaults** to edit the zone template for new hosting accounts.
|
|
|
|
The switches control which installed capabilities the panel offers for new
|
|
actions. Existing managed sites, mailbox delivery, published DNS records,
|
|
schedules and queued provisioning continue running. Backup archives remain
|
|
accessible when new backup requests are paused. Pausing an application sign-in
|
|
also prevents redemption of pending tickets for that application.
|
|
|
|
Configure service packages, linked receiver identities, bridge keys and
|
|
backup credentials on the host using their deployment procedures. Enabling
|
|
a paused feature checks its available service socket and, for linked mail or
|
|
DNS, the receiver's readiness and version. A failed prerequisite check leaves
|
|
the saved choices intact. Changes are recorded in the administrator audit log.
|
|
|
|
## 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.
|
|
|
|
The installer configures the collector for the services it installs on the
|
|
panel host. To enable a collector on an existing host or change the services
|
|
it monitors, set `COULOBRE_SERVICE_HEALTH` in `/etc/coulobre/panel.env`.
|
|
This example includes separate mail and DNS nodes.
|
|
|
|
```ini
|
|
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 `php-fpm` under `local` to monitor the installed stable PHP-FPM services.
|
|
The check reports a problem when any of those services is unavailable.
|
|
Use `bind9`, `postfix`, `dovecot`, `rspamd`, `redis`, `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.
|
|
|
|
```sh
|
|
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](https://www.freedesktop.org/software/systemd/man/latest/systemctl.html)
|
|
|
|
### 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.
|
|
|
|
```sh
|
|
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.
|
|
|
|
```sh
|
|
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.
|
|
|
|
## Operate public mail services
|
|
|
|
A managed mail installation enables authenticated SMTP on TCP 587 with
|
|
STARTTLS. Use the full mailbox address for logins. Rspamd signs the submitted
|
|
message and limits senders with the local Redis cache. The default policy
|
|
has a burst of 30 and refills at 120 per hour. Adjust the authenticated-user
|
|
bucket in `/etc/rspamd/local.d/ratelimit.conf` and run `rspamadm configtest`
|
|
before reloading Rspamd. Follow the [mail DNS steps](#check-and-provision-mail-dns)
|
|
to verify SPF, DKIM, and DMARC from an external recipient.
|
|
|
|
Operators with access to the hosting account and mail domain can open
|
|
**Mail queue** to collect a read-only Postfix summary for that domain.
|
|
Counts include entries whose envelope sender or recipient belongs to the
|
|
selected domain. Partially scanned queues are marked in the panel.
|
|
|
|
On a manually configured mail host, provision the TLS submission service
|
|
using the [existing Dovecot and Rspamd examples](#set-up-signing-on-a-coulobre-mail-node).
|
|
Enable `COULOBRE_MAIL_NODE_DKIM=1` on the panel to provision signing keys
|
|
with new mailbox requests. Enable automatic managed mail DNS separately
|
|
with public MX and sending addresses for the deployment.
|
|
|
|
## View hosted website usage
|
|
|
|
Open **Usage and logs** from a hosting account and choose **Collect current
|
|
usage**. Reload the page after the web and mail workers return their results.
|
|
The panel shows website storage, mailbox storage and limits, and the most
|
|
recent Apache access and error entries for each managed website.
|
|
HTTP totals measure response body bytes in the current UTC calendar month.
|
|
Totals start when Coulobre logging is enabled and reflect retained logs.
|
|
Coulobre marks results partial when a bounded scan cannot read all retained
|
|
entries. The account total includes its active independent sites.
|
|
|
|
Fresh web installations enable the usage receiver and rotate the logs
|
|
daily. On a web server upgraded from an earlier release, install the
|
|
receiver, its worker configuration, and the log rotation rules before
|
|
enabling the view.
|
|
|
|
```sh
|
|
sudo groupadd --system --force coulobre-usage-requests
|
|
sudo install -d -m 0755 /etc/systemd/system/coulobre-provisioner.service.d
|
|
sudo install -m 0644 deploy/systemd/coulobre-provisioner.service.d/website-usage.conf \
|
|
/etc/systemd/system/coulobre-provisioner.service.d/
|
|
sudo install -m 0644 deploy/systemd/coulobre-website-usage.socket \
|
|
deploy/systemd/coulobre-website-usage@.service /etc/systemd/system/
|
|
sudo install -m 0644 deploy/logrotate/coulobre-websites /etc/logrotate.d/
|
|
sudo install -m 0644 deploy/apache/coulobre-website-usage.conf \
|
|
/etc/apache2/conf-available/
|
|
sudo a2enconf coulobre-website-usage
|
|
sudo /opt/coulobre/bin/coulobre-website-usage enable-existing
|
|
sudo apache2ctl configtest
|
|
sudo systemctl reload apache2
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl enable --now coulobre-website-usage.socket
|
|
```
|
|
|
|
Set `COULOBRE_WEBSITE_USAGE=1` in /etc/coulobre/panel.env, then restart
|
|
coulobre-panel and coulobre-provisioner. Grant operators who troubleshoot
|
|
websites the **Can view website usage** permission. Customers and managers
|
|
can see usage for their assigned accounts.
|
|
|
|
## Set up a managed secondary DNS server
|
|
|
|
Use a dedicated primary BIND9 configuration managed by Coulobre and a second
|
|
host for the secondary. The primary may be on the panel or an external
|
|
Coulobre DNS node. Both hosts must run the same Coulobre release. Allow
|
|
TCP and UDP port 53 for public authoritative DNS, including zone transfers
|
|
from the secondary to the primary.
|
|
|
|
On the primary, generate a TSIG key called coulobre-transfer
|
|
with `tsig-keygen -a hmac-sha256 coulobre-transfer`. Save it at
|
|
`/etc/bind/coulobre-transfer.key` with owner root, group bind and mode 0640.
|
|
Copy the file using a trusted administrative connection to the same path
|
|
on the secondary, with the same owner, group and mode. Install BIND9 and
|
|
the receiver on the secondary using sudo ./deploy/install-node.sh dns
|
|
as needed. Then configure the pair using the other node's transfer IP
|
|
on each command.
|
|
|
|
```sh
|
|
# On the primary
|
|
sudo ./deploy/setup-secondary-dns.sh primary 192.0.2.53
|
|
# On the secondary
|
|
sudo ./deploy/setup-secondary-dns.sh secondary 192.0.2.52
|
|
```
|
|
|
|
The primary seeds a BIND catalog from its managed zones. Publication and
|
|
retirement update the catalog. The secondary uses authenticated BIND
|
|
transfers and persists its copy of each zone. Add both nameservers to
|
|
zone delegation and verify replies directly on both hosts.
|
|
|
|
On an existing catalog primary, rerun the primary command from the current
|
|
release using the same peer address. This grants the DNS apply service
|
|
write access to the catalog directory while retaining its filesystem
|
|
sandbox. It preserves the catalog, managed zones, and transfer key. The
|
|
command also repairs the catalog directory's access for BIND if setup
|
|
previously ran with a restrictive umask. The secondary does not need the
|
|
DNS apply service's write permission.
|
|
|
|
When upgrading a catalog primary from 1.2.0 or earlier, apply this step
|
|
before resuming DNS provisioning. On an APT-managed primary, run
|
|
`/usr/share/coulobre-panel/source/deploy/setup-secondary-dns.sh` as root
|
|
with `primary` and the existing secondary transfer IP. Verify that both
|
|
nameservers answer authoritatively after the upgrade.
|
|
|
|
On the panel, set `COULOBRE_DNS_REPLICATION_ADDRESSES` with the primary
|
|
then the secondary query IP, separated by a comma. Restart the panel
|
|
and select **Check replication** from a DNS zone to compare live
|
|
authoritative SOA serials.
|
|
|
|
**Connected Nodes** shows separately the primary publisher and the secondary
|
|
transfer address reported from a Coulobre-managed primary. For an older
|
|
primary that does not report its catalog configuration, the panel uses the
|
|
configured replication addresses if present. It does not infer a managed
|
|
secondary from public NS records. The address report alone cannot verify
|
|
the secondary's release or service health, which are shown as unchecked.
|
|
Use **Check replication** to verify zone answers and confirm transfer health.
|
|
|
|
## Enable local operator actions
|
|
|
|
The operator action worker handles allowlisted service reloads and restarts,
|
|
MariaDB status reports, and reviewed server package updates. Install it on
|
|
the panel host from the same release as the panel. The worker uses a dedicated
|
|
system account and can contact the root-owned socket. Operators must have a
|
|
verified second factor to request an action in the panel.
|
|
|
|
```bash
|
|
sudo adduser --system --group --no-create-home coulobre-operator
|
|
sudo install -m 0644 deploy/systemd/coulobre-operator-apply.socket \
|
|
deploy/systemd/coulobre-operator-apply@.service \
|
|
deploy/systemd/coulobre-operator-worker.service /etc/systemd/system/
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl enable --now coulobre-operator-apply.socket \
|
|
coulobre-operator-worker.service
|
|
```
|
|
|
|
To enable APT actions, set `COULOBRE_SERVER_PACKAGE_UPDATES=1` in
|
|
`/etc/coulobre/panel.env` and restart `coulobre-panel`. Open
|
|
**System → Updates → Server packages** and check for updates. The receiver
|
|
refreshes package indexes and records the
|
|
proposed versions. Applying a preview requires confirmation and a fresh
|
|
matching package plan. Use the job history and the host's package logs to
|
|
review the result.
|
|
|
|
## Customer backup exports and restores
|
|
|
|
When the website, SFTP login and local account-backup worker are enabled,
|
|
customers can request an archive for their selected hosting account. The
|
|
latest completed export is available at `/backups/latest.zip` over SFTP. The
|
|
worker writes the archive into the account's root-owned backup directory and
|
|
assigns read access to the account's hosting login.
|
|
|
|
The panel offers restore previews for components included in an eligible
|
|
archive made by that customer. The selected website, database or mailbox
|
|
must still belong to the account. A full website restore needs an empty
|
|
document root, and database and mailbox destinations must be ready for
|
|
restore. The worker reports progress and completion in **Backup & Restore**.
|
|
|
|
For upgrades with local backups already enabled, install the current
|
|
`coulobre-account-backup@.service` from the release before relying on SFTP
|
|
exports. The unit needs write access to the managed web and web-node
|
|
directories to publish the customer copy.
|
|
|
|
## Enable folder-scoped SFTP logins
|
|
|
|
Folder logins use the existing key-only SSH policy and a separate chroot for
|
|
each login. The web node exposes the approved website directory through an
|
|
ID-mapped bind mount. Uploads are owned by the original website user on
|
|
disk, so the hosting account's filesystem quota still applies. The primary
|
|
hosting login retains access to its backup directory.
|
|
|
|
Use a kernel and filesystem that support ID-mapped mounts. Install these
|
|
units from the same release as the existing local SFTP worker.
|
|
|
|
```bash
|
|
sudo install -m 0644 deploy/systemd/coulobre-folder-sftp.socket \
|
|
deploy/systemd/coulobre-folder-sftp@.service \
|
|
deploy/systemd/coulobre-folder-sftp-mounts.service /etc/systemd/system/
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl enable --now coulobre-folder-sftp-mounts.service \
|
|
coulobre-folder-sftp.socket
|
|
```
|
|
|
|
Set `COULOBRE_LOCAL_FOLDER_SFTP=1` in the panel environment and restart the
|
|
panel and workers. Customers can add and remove logins in **SFTP Users**.
|
|
An empty folder selects the website document root. A changed or missing
|
|
directory leaves the login unavailable until its access is recreated.
|
|
Remove folder logins before changing the customer, changing the primary
|
|
domain or retiring the account.
|
|
|
|
## Manage database logins and SQL exports
|
|
|
|
Customers can add read-only or read-write logins for individual provisioned
|
|
databases. The read-write mode grants record-level changes. The primary
|
|
managed login retains its existing schema permissions and authentication.
|
|
Additional logins follow account suspension and can launch phpMyAdmin when
|
|
the existing bridge and credential service are enabled.
|
|
|
|
With account backups and SFTP enabled, use **Databases → Manage logins →
|
|
SQL export** to request a logical dump. Retrieve the latest completed export
|
|
over the account's primary SFTP login from
|
|
`/backups/database-<suffix>.sql.gz`. The export includes one selected
|
|
database.
|
|
|
|
## Recover a dedicated Coulobre server
|
|
|
|
Set `COULOBRE_SYSTEM_BACKUPS=1` in the operator worker's environment and
|
|
restart the workers and scheduler to enable manual and scheduled runs under
|
|
**Admin Tools → System Backup**. The server retains seven archives by default.
|
|
Set `COULOBRE_SYSTEM_BACKUP_KEEP` to a value from 1 to 30 to change retention.
|
|
|
|
Each archive is written under `/var/lib/coulobre/system-backups` with root-only
|
|
permissions. It contains the local service configuration and hosting files
|
|
listed in the recovery manifest, the site's managed account data and a dump
|
|
of the dedicated server's MariaDB instance. Store the matching JSON record
|
|
alongside each archive. Protect any copies as carefully as the original
|
|
server credentials. Back up linked receivers separately on their hosts.
|
|
|
|
Stage a selected archive outside the running services using the same
|
|
Coulobre release and MariaDB series.
|
|
|
|
```bash
|
|
sudo /opt/coulobre/bin/coulobre-system-backup stage BACKUP_UUID
|
|
```
|
|
|
|
The command verifies the saved SHA-256 and creates a private staging
|
|
directory alongside the archive. The staging directory contains service
|
|
configuration, hosted files, the MariaDB dump and a list of symlinks and
|
|
hardlinks. Review the manifest and links before restoring them to a
|
|
dedicated replacement host. Reconcile recorded Coulobre user and group IDs
|
|
and file ownership before bringing mounted or hosted directories online.
|
|
The staging command leaves the running installation alone.
|
|
|
|
On the replacement host, provision the matching service versions and keep
|
|
public listeners and writers stopped during the restore. Restore the
|
|
database into the replacement MariaDB instance using its local root socket.
|
|
Restore the reviewed service files and links from staging and validate
|
|
Apache, PHP-FPM, DNS and mail configuration before enabling their
|
|
listeners. Verify representative sites, mailboxes and backup restores
|
|
before changing production DNS.
|
|
|
|
## Enable DNS-01 for wildcard website certificates
|
|
|
|
An operator can make wildcard requests available by providing executable,
|
|
root-controlled Certbot authentication and cleanup hooks at
|
|
`/etc/coulobre/acme-dns/auth` and `/etc/coulobre/acme-dns/cleanup`. Configure
|
|
those hooks for the authoritative DNS provider. Set
|
|
`COULOBRE_ACME_DNS_01=1` in the panel environment to expose this choice under
|
|
**SSL Certificates → ACME settings**. Hostnames come from the selected
|
|
hosting account. Configure DNS authorization and renewal on the web node.
|
|
Ordinary website certificates use the installed HTTP-01 webroot.
|