Route customer mail domains as one-to-one recipient aliases #243

Merged
parkel merged 1 commits from feature/mail-domain-aliases into main 2026-12-02 13:22:36 +01:00
Owner

New features

  • Route mail for a customer's alias domain to the same local parts on a primary mail domain. Existing mailboxes, forwarders and catch-all rules apply without creating duplicate mailbox or quota records.
  • Queue setup and removal from the panel. Add MX to a managed DNS zone when safe, or show a copyable MX record for external DNS.

Security and operations

  • Prevent cross-customer mappings, routing loops, and conflicts with independently managed mail. A scoped shared receiver requires authorization for both domains.
  • Fresh installer-managed mail nodes configure the Postfix maps. Existing nodes that already use the managed alias map can reuse it. Custom routing is left alone, and no existing domain is changed by the upgrade alone.

Verification

  • 678 Django tests ran with one sandbox skip, and 29 installer tests passed. Ruff, migration checks and diff checks passed.
  • An isolated Ubuntu VM accepted and delivered mail addressed to an aliased mailbox and forwarder, rejected unknown recipients until catch-all was enabled, then kept direct delivery working after alias removal. Shared receiver authorization was covered by tests. No live deployment was performed.

Closes #242

## New features - Route mail for a customer's alias domain to the same local parts on a primary mail domain. Existing mailboxes, forwarders and catch-all rules apply without creating duplicate mailbox or quota records. - Queue setup and removal from the panel. Add MX to a managed DNS zone when safe, or show a copyable MX record for external DNS. ## Security and operations - Prevent cross-customer mappings, routing loops, and conflicts with independently managed mail. A scoped shared receiver requires authorization for both domains. - Fresh installer-managed mail nodes configure the Postfix maps. Existing nodes that already use the managed alias map can reuse it. Custom routing is left alone, and no existing domain is changed by the upgrade alone. ## Verification - 678 Django tests ran with one sandbox skip, and 29 installer tests passed. Ruff, migration checks and diff checks passed. - An isolated Ubuntu VM accepted and delivered mail addressed to an aliased mailbox and forwarder, rejected unknown recipients until catch-all was enabled, then kept direct delivery working after alias removal. Shared receiver authorization was covered by tests. No live deployment was performed. Closes #242
parkel added this to the v1.2.0 - WordPress and mail diagnostics milestone 2026-12-02 13:12:51 +01:00
parkel added 1 commit 2026-12-02 13:12:51 +01:00
Route mail domain aliases to the primary domain
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Successful in 1m43s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Failing after 1m50s
3c35a061d8
parkel merged commit 04a5d420d1 into main 2026-12-02 13:22:36 +01:00
parkel deleted branch feature/mail-domain-aliases 2026-12-02 13:22:36 +01:00
Sign in to join this conversation.