caelum0x cd1bf530ce feat(waitlist): auto-approve sign-ups from company domains with MX
On the hosted instance (IS_CLOUD) a new or waitlisted user is let in
automatically when their verified account email is on a business domain:
not a free/consumer provider, not a disposable inbox (CC0 list from
disposable-email-domains), with a usable MX record (3 s timeout, null MX
and IP/localhost exchanges rejected). One account per domain (DB check +
Redis claim) and a daily cap (AUTO_APPROVE_DAILY_CAP, default 25).
Everything fails closed to the existing waitlist flow.

Opt-in via AUTO_APPROVE_WAITLIST (default off). Approval only clears
User.isWaitlisted, so warm-up caps, reputation auto-pause, content
screening and the review queue still apply to new teams. Decisions are
logged, recorded in the admin team's audit log and mailed to the admin.
The waitlist form re-checks the account email (never the self-declared
domain) and sends approved users straight to the dashboard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 04:35:08 +03:00
..