Mail servers: Stalwart per instance of mail.yml (M9) #11

Merged
oliver.maklott merged 5 commits from mail into main 2026-11-30 04:24:58 +01:00

Milestone 9: the mail servers (ADR 0010).

  • schemas/mail.schema.json, examples/infra/mail.yml (a community and an enterprise instance, relays per sender domain, administrators); the example networks list both servers.
  • playbooks/mail.yml: one Hetzner Cloud server per instance (Flatcar, data partition, reverse DNS), its own nftables, belowtoxic.mail.stalwart with secrets from OpenBao (relays and license yours; metrics and initial administrator passwords generated; -e mail_rotate=metrics_password), Alloy scraping Stalwart's metrics with the password from the host's file, a backup source.
  • playbooks/backup.yml: mail instances are sources.
  • Scenario mail: Pebble, a relay that requires STARTTLS, a message out with the administrator's password from OpenBao, the rotation. Green locally.
  • Runbooks first-run-mail and migrate-mailcow; ADR 0010 records what logins from Authentik would mean in Stalwart 1.2.1 (deferred).
  • Pins: collection-mail v0.1.0, collection-monitoring v0.4.0, infractl v0.11.0.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUe4g65L7UnUVqHmQp7kG

Milestone 9: the mail servers (ADR 0010). * `schemas/mail.schema.json`, `examples/infra/mail.yml` (a community and an enterprise instance, relays per sender domain, administrators); the example networks list both servers. * `playbooks/mail.yml`: one Hetzner Cloud server per instance (Flatcar, data partition, reverse DNS), its own nftables, `belowtoxic.mail.stalwart` with secrets from OpenBao (relays and license yours; metrics and initial administrator passwords generated; `-e mail_rotate=metrics_password`), Alloy scraping Stalwart's metrics with the password from the host's file, a backup source. * `playbooks/backup.yml`: mail instances are sources. * Scenario `mail`: Pebble, a relay that requires STARTTLS, a message out with the administrator's password from OpenBao, the rotation. Green locally. * Runbooks `first-run-mail` and `migrate-mailcow`; ADR 0010 records what logins from Authentik would mean in Stalwart 1.2.1 (deferred). * Pins: collection-mail v0.1.0, collection-monitoring v0.4.0, infractl v0.11.0. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PVUe4g65L7UnUVqHmQp7kG
- schemas/mail.schema.json and examples/infra/mail.yml (community and
  enterprise instance, relays per sender domain, administrators); the
  example networks list both servers as members
- playbooks/mail.yml: Hetzner Cloud server with Flatcar and reverse DNS,
  its own nftables (mail ports and HTTPS public, SSH from the anchor),
  belowtoxic.mail.stalwart with the secrets from OpenBao (relays and
  license yours; metrics and initial administrator passwords generated;
  -e mail_rotate=metrics_password), Alloy scraping Stalwart's metrics with
  the password from the host's file, a backup source
- playbooks/backup.yml: each mail instance is a source
- the mail scenario: Pebble, a relay that requires STARTTLS, a message out
  with the administrator's password from OpenBao, the rotation
- runbooks first-run-mail and migrate-mailcow; README and data model

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4g65L7UnUVqHmQp7kG
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4g65L7UnUVqHmQp7kG
A carriage return in a Jinja string literal turns into a newline, so
replace removed every line break of the relay's CA.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4g65L7UnUVqHmQp7kG
CI: infractl v0.11.0
Some checks failed
ci / lint (pull_request) Has been cancelled
ci / test (pull_request) Has been cancelled
ci / molecule (pull_request) Has been cancelled
debfd6020a
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4g65L7UnUVqHmQp7kG
mail scenario: a line within the length limit
All checks were successful
ci / test (pull_request) Successful in 12s
ci / lint (pull_request) Successful in 45s
ci / molecule (pull_request) Successful in 42m38s
ci / test (push) Successful in 9s
ci / lint (push) Successful in 32s
ci / molecule (push) Successful in 36m19s
89e459e28b
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4g65L7UnUVqHmQp7kG
Sign in to join this conversation.
No reviewers
No labels
test:kvm
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
belowtoxic-ansible/infrastructure!11
No description provided.