Skip to content

fix: redirect mta-sts subdomain root to dmarc.mx instead of 404#371

Merged
schmug merged 1 commit into
mainfrom
claude/dmarcheck-routine-4haMJ
May 24, 2026
Merged

fix: redirect mta-sts subdomain root to dmarc.mx instead of 404#371
schmug merged 1 commit into
mainfrom
claude/dmarcheck-routine-4haMJ

Conversation

@schmug
Copy link
Copy Markdown
Owner

@schmug schmug commented May 24, 2026

Summary

  • Replaces the catch-all 404 Not found in mta-sts-worker/src/index.ts with a 301 redirect to https://dmarc.mx/
  • Any path other than /.well-known/mta-sts.txt now redirects instead of returning a dead 404
  • Cleans up the GSC "Not found (404)" entry for https://mta-sts.dmarc.mx/

Closes #363

Test plan

  • curl -I https://mta-sts.dmarc.mx/ returns 301 with Location: https://dmarc.mx/
  • curl -I https://mta-sts.dmarc.mx/.well-known/mta-sts.txt still returns 200 with the policy body unchanged
  • Main test suite: 1066 passing, 0 new failures (1 pre-existing network-dependent integration test fails in this environment — unrelated to this change)
  • npm run lint: clean
  • npm run typecheck: clean

Deferred follow-ups

None — scope is exactly one line.

https://claude.ai/code/session_01LwHpGrjYRwBmyoMR51JAXM


Generated by Claude Code

Replaces the catch-all 404 in mta-sts-worker with a 301 redirect to
https://dmarc.mx/ so Googlebot stops recording it as a not-found URL.
The /.well-known/mta-sts.txt path is unaffected.

Closes #363

https://claude.ai/code/session_01LwHpGrjYRwBmyoMR51JAXM
@schmug schmug enabled auto-merge (squash) May 24, 2026 14:04
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
dmarcheck 20b356e May 24 2026, 02:04 PM

@schmug schmug merged commit cf83142 into main May 24, 2026
5 checks passed
@schmug schmug deleted the claude/dmarcheck-routine-4haMJ branch May 24, 2026 14:04
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.

Redirect mta-sts.dmarc.mx/ root to dmarc.mx (currently 404)

2 participants