Skip to content

feat(dns): deliver company mail to the platform's mail server - #92

Draft
devantler wants to merge 1 commit into
mainfrom
claude/mail-mx-cutover-5481
Draft

devantler wants to merge 1 commit into
mainfrom
claude/mail-mx-cutover-5481

Conversation

@devantler

Copy link
Copy Markdown
Contributor

Why

Company mail moves from iCloud to the platform's own mail server (devantler-tech/platform#5481). The server is published at mail.devantler.tech, relays outbound mail through Amazon SES, and already accepts mail for every address on the domain. An external RCPT probe returns 250 for ned@, app@ and platform@ and 550 for an unknown address.

Do not merge until the mailbox history copy has been verified on #5481. Merging changes nothing on its own; the MX moves only when the DNS apply is dispatched.

What

  • mail_mx_01 now points to mail.devantler.tech (priority 10, TTL 3600). This is an in-place update.
  • mail_mx_02 (mx02.mail.icloud.com) is removed from dns.tf and retired through .github/dns-retirements.json (feat(dns): retire DNS records only through a reviewed list #91), matched exactly by address, name, type and content.
  • The iCloud SPF include, the iCloud DKIM record (sig1) and DMARC p=none are unchanged. They are retired or tightened separately, once iCloud is no longer used and delivery is proven.
  • The test-dns-apply.sh section 4 check now expects the platform MX, no iCloud MX content, and exactly this retirement entry.

Cutover and rollback

  1. After merge, dispatch DNS plan and guarded apply with plan / PLAN_DNS and confirm the plan contains exactly:
    • one update of mail_mx_01 (content mx01.mail.icloud.com → mail.devantler.tech);
    • one listed retirement of mail_mx_02.
  2. Dispatch it again with apply / APPLY_DNS.
  3. Check public resolvers (1.1.1.1 and 8.8.8.8) for MX 10 mail.devantler.tech.
  4. After the old record's TTL (1 h) has expired, run the history copy once more so any message iCloud still received in that window is copied too.

Rollback: revert this PR and apply again. That points mail_mx_01 back to mx01.mail.icloud.com and recreates mail_mx_02. Both are allowed changes, an update and a create, so no retirement entry is needed. iCloud keeps every message it received.

Validation

  • bash scripts/tests/test-dns-apply.sh passes, including the updated section 4.
  • sh scripts/tests/test-no-destructive-plan.sh passes.
  • shellcheck is clean.
  • tofu fmt -check -recursive and tofu validate pass.

Part of devantler-tech/platform#5481.

🤖 Generated with Claude Code

Point the domain's MX at mail.devantler.tech and retire the second iCloud
MX record through the reviewed retirement list (devantler-tech/platform#5481).
The iCloud SPF include and DKIM record stay until iCloud is retired, and
DMARC stays at p=none until delivery is proven.

Rollback: revert this change, which points mail_mx_01 back to
mx01.mail.icloud.com and recreates mail_mx_02.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@devantler

Copy link
Copy Markdown
Contributor Author

Parked: waiting for the mailbox history copy to be verified on devantler-tech/platform#5481. The interactive mail session owns this cutover. It will promote, merge and dispatch it (plan, then apply), and removes this label when the copy's receipt is recorded. Please don't merge it before then: moving MX first would deliver new mail to a mailbox that doesn't yet hold the history.

🤖 Generated with Claude Code

@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Agentic Engineer

Blocked by devantler-tech/platform#5481

Park record for the existing hold above: this stays unmerged until the mailbox history copy is verified there. The interactive mail session owns the cutover and lifts the label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant