caelum0x a154a99bfb feat(mail): plans + Dodo billing (test mode) and abuse controls
- Plans in a table (free/pro/scale), quotas enforced on API, SMTP and Supabase hook paths; test sends never count
- GET /billing, checkout + portal via Dodo, signed Dodo webhooks, idempotent overage metering
- Sandbox tier for new accounts, domain warm-up, auto-pause on bounce >4% / complaint >0.08%
- Content checks: executables, brand impersonation, lookalike domains, credential harvest, Spamhaus DBL
- Disposable-email and per-IP signup throttles; admin endpoints behind ADMIN_API_KEY

Verified against the real server locally with a fake relay and mock Dodo (proof table in plans/scribase-mail-rust-2026-11-12.md).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-13 04:38:55 +03:00
..