-
Notifications
You must be signed in to change notification settings - Fork 4
Self-hosted authentication: no working email verification flow #7
Description
The current authentication flow doesn't work well for self-hosting:
-
SMTP not configured (
SMTP_HOSTblank): Users are auto-confirmed on signup. Anyone who can reach the instance can create an account with any email — no verification at all. -
SMTP configured (
SMTP_HOSTset): Signup generates a verification token and requires email verification to log in, but no email is ever actually sent. There are no mailers, no email templates, and no delivery mechanism. Users get stuck — they can't verify and can't log in.
So neither path gives a working, secure self-hosted setup.
Suggestion
Two possible approaches:
-
ADMIN_EMAILenv var — auto-create and auto-confirm an admin account on first boot using this email. Keeps the setup simple and doesn't require any email infrastructure. -
API-based email providers — support providers like Resend or SES alongside SMTP, so self-hosters behind VPNs (where SMTP is often blocked) have a working email delivery option.