Skip to content

Move mapletestimony.org mail to Google Workspace in records.tf - #2382

Merged
Mephistic merged 1 commit into
codeforboston:mainfrom
mvictor55:dns-google-workspace-mail
Nov 21, 2026
Merged

Mephistic merged 1 commit into
codeforboston:mainfrom
mvictor55:dns-google-workspace-mail

Conversation

@mvictor55

Copy link
Copy Markdown
Collaborator

Summary

Updates infra/gcp/dns/records.tf to match the live mapletestimony.org zone after moving the domain's mail to Google Workspace. No issue number.

mapletestimony.org is now a secondary domain on Partners in Democracy's Google Workspace account. mvictor@ is an alias on a PiD account, and info@ and admin@ are Google Groups. Until now, mail went through Squarespace's email forwarding (Mailgun), which could receive but not send.

The live zone was changed by hand in the Cloud DNS console on Nov 20. This PR brings the file in line so that a later terraform apply doesn't put Mailgun back. If that happened after the Squarespace forwards are deleted, mail to the domain would bounce.

Changes:

  • @ MX: 10 mxa.mailgun.org. and 10 mxb.mailgun.org. become 1 smtp.google.com.
  • @ TXT (SPF): adds include:_spf.google.com. include:mailgun.org stays until we're sure nothing else sends through Mailgun.
  • google._domainkey TXT (new): the Workspace DKIM key. It's 2048-bit, so it's stored as two strings (250 + 158 characters), like the existing smtp._domainkey record.
  • zgnogrys2ruw CNAME (new): Workspace domain verification. It should stay in place.
  • Comment: the mail comment now describes the Workspace setup.

The two new records use a 300-second TTL, matching what was entered in the console. MX and SPF keep their 14400-second TTL.

Checklist

Not applicable: no frontend, Storybook or Firestore changes.

Screenshots

None. This is a DNS-only change.

Known issues

  • terraform fmt and validate weren't run locally. Terraform Checks will run them on this PR. The file parses as HCL, and the new key next to islwqbu65xh4 CNAME has the same length, so alignment is unchanged.
  • Follow-up: delete the four Squarespace forwarding rules once test mail has arrived through Workspace.
  • Follow-up: remove include:mailgun.org from SPF, and possibly smtp._domainkey, once nothing sends through Mailgun.

Extra Deploy Steps

  • After merge: whoever applies DNS runs terraform -chdir=infra/gcp/dns plan -var-file=envs/prod.tfvars. It should report No changes, because the live zone already has these records. If it shows any change, don't apply; the file and the zone disagree somewhere.

Steps to test/reproduce

  1. dig +short MX mapletestimony.org returns 1 smtp.google.com.
  2. dig +short TXT mapletestimony.org includes v=spf1 include:_spf.google.com include:mailgun.org ~all
  3. dig +short TXT google._domainkey.mapletestimony.org returns the DKIM key, matching the value in the file once its two strings are joined.
  4. dig +short CNAME zgnogrys2ruw.mapletestimony.org returns gv-lt2cq4dypfmbva.dv.googlehosted.com.
  5. Send mail from an outside address to info@mapletestimony.org; it reaches both group members.

🤖 Generated with Claude Code

https://claude.ai/code/session_01D33UhNK4EJntgnfY5GaJQf

mapletestimony.org is now a secondary domain on PiD's Google Workspace
account. The live zone was changed in the Cloud DNS console on Nov 20;
this brings records.tf in line so a later apply doesn't revert it.

- @ MX: Mailgun (Squarespace forwarding) -> 1 smtp.google.com.
- @ TXT: SPF adds include:_spf.google.com; Mailgun stays for now
- google._domainkey TXT: Workspace DKIM key (2048-bit, two strings)
- zgnogrys2ruw CNAME: Workspace domain verification

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D33UhNK4EJntgnfY5GaJQf
@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
maple-dev Ready Ready Preview Nov 20, 2026 4:15pm UTC

Request Review

@Mephistic
Mephistic merged commit 9214c35 into codeforboston:main Nov 21, 2026
12 of 13 checks passed

This branch was successfully deployed

1 active deployment
Preview – maple-dev — e68dc9ad Deployed Nov 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants