Skip to content

Guard the SES catch-all receipt rule and document rule order - #208

Open
r13i wants to merge 1 commit into
mainfrom
fix/ses-rule-order-guard
Open

r13i wants to merge 1 commit into
mainfrom
fix/ses-rule-order-guard

Conversation

@r13i

@r13i r13i commented Oct 18, 2026

Copy link
Copy Markdown
Member

SES runs the active rule set top to bottom, and a rule created without after is inserted at the top. Hail's ${prefix}-deliver rule has no recipient filter, so any narrower rule another stack adds to the same rule set (the hail.so website's email delivery checker on test-inbox.hail.so) only works while it sits above Hail's rule. Recreating Hail's rule would put it back on top and silently swallow that mail.

  • infra/terraform/ses_inbound.tf: prevent_destroy = true on the rule, with the reason and the recovery commands in a comment.
  • docs/public/self-host/aws-ses.md: new section 10.2.1 on rule order, the check command, and set-receipt-rule-position.

A rule created without after goes to the top of the rule set. Other stacks
in the account place narrower rules above Hail's catch-all. Recreating the
catch-all would put it back on top and silently take their mail. Add
prevent_destroy and document the check and the repositioning command.
@vercel

vercel Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
hail-costs Ready Ready Preview Oct 18, 2026 9:42pm UTC
hail-docs Ready Ready Preview Oct 18, 2026 9:42pm UTC

Request Review

This branch was successfully deployed

2 active deployments
Preview – hail-docs — 7cd7422f Deployed Oct 18, 2026 by vercel[bot]
Preview – hail-costs — 7cd7422f Deployed Oct 18, 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.

1 participant