mail: offload per-account Archive folders to Hetzner Storage Box #237

Open
opened 2026-07-26 14:06:45 +02:00 by dominik.polakovics · 0 comments

The mail host's disk is running full. Most of the growth is long-term mail that users keep but rarely touch.

Plan (agreed with Dominik):

  • Mount a new Storage Box sub-account via CIFS at /mnt/mail-archive (same sops-credentials + systemd-automount pattern as the Immich originals mount on web-arm).
  • Add a Dovecot namespace Archive. whose maildir location lives on the mount, with INDEX and CONTROL kept on local disk so index/cache/uidlist/fts stay fast and only message bodies go over CIFS.
  • Archiving is manual: users (or their client's archive action) move mail into Archive/.
  • Quota: unchanged — the user quota root already spans all private namespaces, so archived mail still counts.
  • Backup: rely on Hetzner storage-box snapshots (like Immich); the mount stays outside borg's paths.

Out of scope for the config change (ops follow-ups): create the sub-account, add the SMB credentials secret, enable snapshots, migrate existing .Archive* maildirs onto the mount.

The mail host's disk is running full. Most of the growth is long-term mail that users keep but rarely touch. Plan (agreed with Dominik): - Mount a new Storage Box sub-account via CIFS at /mnt/mail-archive (same sops-credentials + systemd-automount pattern as the Immich originals mount on web-arm). - Add a Dovecot namespace `Archive.` whose maildir location lives on the mount, with INDEX and CONTROL kept on local disk so index/cache/uidlist/fts stay fast and only message bodies go over CIFS. - Archiving is manual: users (or their client's archive action) move mail into Archive/. - Quota: unchanged — the user quota root already spans all private namespaces, so archived mail still counts. - Backup: rely on Hetzner storage-box snapshots (like Immich); the mount stays outside borg's paths. Out of scope for the config change (ops follow-ups): create the sub-account, add the SMB credentials secret, enable snapshots, migrate existing .Archive* maildirs onto the mount.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Cloonar/nixos#237
No description provided.