Back up and restore mailboxes on a separate mail node #78

Merged
parkel merged 2 commits from feature/remote-mailbox-backup into main 2026-11-21 22:34:03 +01:00
Owner

Summary

  • Include native snapshots from the configured mail node in manual and scheduled account backups. Verify mailbox identity and pack the snapshots with the local website and MariaDB dumps in the existing ZIP format.
  • Use separate constrained SSH identities for collection and restore. The mail node stages transfers privately and verifies restore checksums and destination identity.
  • Recover a selected mailbox into a provisioned destination without a Maildir. If the result is unconfirmed, retry the same restore ID and use the mail node's recorded result.
  • Report incomplete collection in backup history and retain only completed archives under the existing retention rules.

Closes #61

Verification

  • Ran 406 Django tests, Ruff, and the migration consistency check. Validated the systemd socket and service templates and their relay drop-ins.
  • Used two Ubuntu 26.04 containers with real SSH, MariaDB on the backup host, and Postfix and Dovecot on the separate mail node. Verified a scheduled ZIP containing the web file, SQL dump, and mail. Checked a partial collection, archive replay, a lost restore reply, replay with the same restore ID, refusal to overwrite an existing mailbox, tenant isolation, and retention of the latest complete archive.
  • Re-ran the existing local scheduled backup and website, database, and mailbox recovery integration.
## Summary - Include native snapshots from the configured mail node in manual and scheduled account backups. Verify mailbox identity and pack the snapshots with the local website and MariaDB dumps in the existing ZIP format. - Use separate constrained SSH identities for collection and restore. The mail node stages transfers privately and verifies restore checksums and destination identity. - Recover a selected mailbox into a provisioned destination without a Maildir. If the result is unconfirmed, retry the same restore ID and use the mail node's recorded result. - Report incomplete collection in backup history and retain only completed archives under the existing retention rules. Closes #61 ## Verification - Ran 406 Django tests, Ruff, and the migration consistency check. Validated the systemd socket and service templates and their relay drop-ins. - Used two Ubuntu 26.04 containers with real SSH, MariaDB on the backup host, and Postfix and Dovecot on the separate mail node. Verified a scheduled ZIP containing the web file, SQL dump, and mail. Checked a partial collection, archive replay, a lost restore reply, replay with the same restore ID, refusal to overwrite an existing mailbox, tenant isolation, and retention of the latest complete archive. - Re-ran the existing local scheduled backup and website, database, and mailbox recovery integration.
parkel added this to the v0.4.0 - Mail operations milestone 2026-11-21 22:19:30 +01:00
parkel added 2 commits 2026-11-21 22:19:30 +01:00
Back up and recover remote mailboxes from the panel
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
386525d314
parkel added the area/backupsarea/deploymentarea/mailarea/panel
kind
feature
labels 2026-11-21 22:19:31 +01:00
parkel merged commit 10476cce57 into main 2026-11-21 22:34:03 +01:00
parkel deleted branch feature/remote-mailbox-backup 2026-11-21 22:34:04 +01:00
Sign in to join this conversation.