CodeIssuesPull RequestsActionsSecurityInsights
✨ AI
More
Settings

fix(infra): MTA/Redis/Resend box setup — fix env template + add runbook #4056

Merged⚡ AI-generatedXSccantynz wants to mergeclaude/code-audit-vapron-migration-6jya3kmainopened Jun 15, 20260/6 tasks
ccantynzcommented Jun 15, 2026

Originally written by @ccantynz-alt on GitHub.
Imported from https://github.com/ccantynz-alt/AlecRae.com/pull/75


Summary

  • .env.production: Fixed MTA_QUEUE_NAME=alecrae:outboundalecrae-outbound (colon crashes BullMQ); swapped relay default from SES to Resend SMTP (matches current box config)
  • morning-setup.md: Fixed box path (/opt/alecrae not /root/AlecRae.com), added www CNAME Vercel removal step, Resend DNS verification note, MTA worker section, Redis queue inspection commands
  • docs/infra/mta-box-setup.md: New runbook — Redis install, alecrae-mta systemd service file, outbound test send, BullMQ queue inspection, Resend domain verification checklist
  • scripts/box-deploy.sh: Auto-restarts alecrae-mta on deploy if the service exists

Why this matters

Without the MTA worker running, emails compose and queue fine but are never delivered — they sit in BullMQ forever. The Resend relay env vars Craig added to the box won't be used until the MTA process is running.

Test plan

  • On box: apt-get install redis-server && systemctl start redis-server && redis-cli ping → PONG
  • Create /etc/systemd/system/alecrae-mta.service from mta-box-setup.md
  • systemctl start alecrae-mta && systemctl status alecrae-mta → active
  • Send test email via POST /v1/messages/send curl command in mta-box-setup.md
  • Check journalctl -u alecrae-mta shows job picked up and relayed via Resend
  • Email arrives in Gmail inbox

https://claude.ai/code/session_017mhAkS4qhMjcvVnyFi61xp


Generated by Claude Code

ccantynzcommented Jun 15, 2026

Originally written by @vercel[bot] on GitHub.


Deployment failed with the following error:

There is no GitHub account connected to this Vercel account.
ccantynzcommented Jun 15, 2026

Originally written by @vercel[bot] on GitHub.


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

Project Deployment Actions Updated (UTC)
alec-rae-com-admin Building Building Preview, Comment Jun 15, 2026 11:26pm

Cross-repo impact

See what breaks downstream if this PR merges.

Analyze →
⮌ Merged

This pull request was merged into main.

c comment · e edit title · m merge · a approve · r request changes · ? shortcuts