Your supabase smtp setup passed testing. Then a real user signed up, requested a magic link, or reset a password — and no email arrived.
The app rarely fails loudly. Signup succeeds, the user appears in Auth, and your own test inbox may work. Production still feels broken because the recipient never gets the message.
What is actually failing
“Email sent” is not one fact. Auth decides whether to create mail, hands it to SMTP, the provider attempts delivery, and the recipient server chooses inbox, spam, quarantine, or rejection.
Built-in Supabase SMTP is for demos. Without custom SMTP, mail goes only to pre-authorized team addresses, is documented at about two messages per hour, and has no delivery SLA.
Custom SMTP can reach normal users, but starts conservatively at 30 auth emails per hour. After handover your provider can delay, bounce, suppress, or block the message.
Why AI-built apps miss it
The AI usually tests with the founder’s address, often already a Supabase team address. That proves template rendering, not production delivery.
The generated checklist stops at “enable SMTP”. It skips sender authentication, suppression, rate limits, redirects, corporate scanners, and flow types — exactly where production auth email breaks.
supabase smtp production click path
- Name the exact failing flow. Signup confirmation, magic link, invite, password reset, email change, and reauthentication use different templates.
- Use one real external recipient. A team address can hide the default-provider restriction. If signup confirmation is expected, Confirm email must be enabled.
- Open Auth logs first. Find the exact signup, recovery, OTP, or invite event. A missing event means the app never triggered the email path correctly.
- Check SMTP settings. Verify custom SMTP, host, port, user, password, sender name, and an authenticated From address.
- Read the provider delivery log. “Accepted” is not “in inbox”. Look for delivered, deferred, bounced, blocked, suppressed, or dropped.
- Measure rate limits before resending. A launch spike can look like random missing mail when the real cause is throttling.
- Check the recipient side. Corporate systems can quarantine verification mail; collect spam, quarantine, or mail-admin evidence.
- Inspect template variables.
{{ .ConfirmationURL }},{{ .Token }},{{ .TokenHash }},{{ .SiteURL }}, and{{ .RedirectTo }}must match the flow and production redirect allow list. - Disable auth-mail link tracking and plan for scanners. Tracking can rewrite links; enterprise scanners can consume single-use links before users click.
- Run one controlled end-to-end test. Record the Auth event, provider message ID, provider result, and final inbox placement before changing another layer.
The failures that look identical to the user
The default provider works only for your test account. Team inboxes receive mail while normal users hit “Email address not authorized” or receive nothing.
SMTP is enabled, but the provider refuses the sender. The password can be correct while the From address is unverified. Read Auth logs and provider logs together.
The provider accepts, then suppresses. Earlier bounces, complaints, or bot signups can suppress recipients after handover.
The email arrives, but the link is dead. Link tracking, missing redirect entries, prefetching, or the wrong variable can break the flow after delivery.
If the dead link is specifically a password-reset link, continue with the supabase reset password recovery-chain triage instead of resending more mail.
Template fixes that matter in production
Keep auth email plain and functional. Do not mix marketing copy, promotions, large images, or multiple calls to action into password resets and confirmation mail.
Edit hosted templates in Authentication → Emails → Templates. Use {{ .ConfirmationURL }} for a normal single-use link, {{ .Token }} for a six-digit OTP flow, and {{ .TokenHash }} when your own page or server controls verification.
{{ .SiteURL }} must point at the real production app, and every legitimate redirect target must be in the allow list. For a controlled server endpoint, read token_hash and type from the query string, call verifyOtp, receive the session in the response body, and only then redirect onward.
Deliverability rules before launch
Use a real transactional provider and finish SPF, DKIM, and DMARC. A custom Supabase Auth domain can reduce shared-domain reputation risk.
Separate authentication mail from marketing mail with different sending domains or subdomains and different From addresses. A newsletter reputation problem must not block password resets.
Protect forms that create email with CAPTCHA or equivalent abuse protection. Prepare launch surges deliberately: raise auth-email limits, coordinate with the provider, and use a waitlist or queue when needed.
Production checklist
- The failing flow is named exactly: signup, magic link, invite, reset, email change, or reauthentication.
- The test recipient is external and not a Supabase team member.
- Email confirmation is enabled when the expected email depends on it.
- Custom SMTP is enabled; host, port, credentials, sender name, and authenticated From address are verified.
- Auth logs show the event; provider logs show accepted, deferred, bounced, suppressed, blocked, or delivered.
- Auth-email rate limits match the real launch volume.
- SPF, DKIM, and DMARC are green for the sending domain.
- Templates use the correct variables; Site URL and redirect allow-list entries point at production.
- Link tracking is off for auth email.
- Scanner-heavy environments use OTP or a controlled confirmation page.
- Auth and marketing mail use separate sender reputations.
- CAPTCHA or equivalent abuse protection is active before public signups.
- The wider launch path still passes the lovable deploy production checklist.
Once Auth event, SMTP handover, provider delivery, recipient filtering, template variables, and link consumption are separate, the broken layer becomes visible. Fix that layer — not the template. If the user action should trigger downstream work, treat that second step as carefully as a supabase webhook.
FAQ
Why did Supabase stop sending auth emails after launch?
The built-in SMTP provider is only for demos. It sends only to pre-authorized team addresses, is limited to about two messages per hour and has no delivery SLA. Production apps need a custom SMTP provider and then a check of Auth logs, provider logs, rate limits, suppression and spam filtering.
Does custom SMTP guarantee inbox delivery?
No. Supabase hands the message to your provider, but the provider can still defer, bounce or suppress it, and the recipient server can quarantine or spam-folder it. You need provider delivery logs plus SPF, DKIM and DMARC evidence.
Why do Supabase magic links expire before users click them?
Enterprise mail scanners can prefetch single-use links, and SMTP link tracking can rewrite them. Use an OTP flow or a button on your own page for scanned environments, and disable link tracking for auth emails.