Why your app's signup confirmation emails go to spam (or never arrive), and how to fix SPF, DKIM and DMARC
Everything below you can do yourself (apart from any paid plan your email sender needs).
TL;DR
- The email never arrives? You are probably still on the built-in test sender. Supabase's default SMTP only delivers to members of your Supabase organization team and is currently limited to 2 messages per hour. Other addresses fail with
Email address not authorized. (Supabase: Custom SMTP) On Lovable's free plan, auth emails always go out from Lovable's default sender. Custom sending domains need a paid plan. (Lovable: Custom emails) - It arrives in spam? A common cause is a sending domain missing SPF, DKIM or DMARC, or a From address that does not line up with them. Since 1 February 2024, Gmail requires SPF or DKIM from every sender to personal Gmail accounts, and SPF + DKIM + DMARC (with alignment) from anyone sending 5,000 or more messages a day to Gmail. A DMARC policy of
p=nonemeets that DMARC requirement. (Google: Email sender guidelines) - Check it with
digand Gmail's Show original (Steps 2–4). Then fix it by sending from your own domain through a real provider and adding the records that provider gives you (Step 5).
Step 1 — Find out which sender you are actually using
| You built with | Where auth emails come from by default | What to do |
|---|---|---|
| Lovable Cloud (built-in backend) | Lovable's default auth sender. Free plans always use it. | Paid plan: More → Emails → Get started, choose a sending subdomain such as notify.yourdomain.com. Lovable sets up SPF, DKIM and DMARC itself. (Lovable docs) |
| Your own Supabase project (Lovable, Cursor, Bolt, v0) | Supabase's built-in SMTP: organization team members only, 2/hour, no SLA, "not meant for production use". | Set up custom SMTP under Authentication settings (Resend, AWS SES, Postmark, Twilio SendGrid, ZeptoMail, Brevo and others all work). (Supabase docs) |
| Your own code (Resend/SendGrid/SES API from a server route) | Whatever domain you verified with that provider. | Go to Step 2 and check the domain's records. |
Quick test: sign up with an address that is not on your team, for example a fresh Gmail address. If nothing arrives and your auth logs show Email address not authorized, you are still on Supabase's test sender.
Step 2 — Look at the headers of a real confirmation email
Sign up with a Gmail address, open the confirmation email (check Spam too), then ⋮ → Show original. Gmail shows an authentication summary at the top, in a form like this:
SPF: PASS with IP 203.0.113.10
DKIM: 'PASS' with domain notify.yourdomain.com
DMARC: 'PASS'
What to look for:
- SPF or DKIM = FAIL or missing. The provider is not authorised for, or is not signing as, your domain.
- DKIM passes but with the provider's domain (for example
d=amazonses.comord=sendgrid.net), not yours. That will not give DMARC alignment for your From domain. - DMARC = FAIL. Neither SPF nor DKIM passed and aligned with the domain in the From: address. For Gmail's rules for senders of 5,000 or more messages a day, the From domain must align with the SPF domain or the DKIM domain. (Google)
- From is
@gmail.comor similar. Do not send app email "from" a Gmail address through another service. Google's sender guidelines say Gmail will use a DMARC quarantine enforcement policy, and impersonating Gmail From: headers can affect delivery. (Google)
Step 3 — Check SPF, DKIM and DMARC with dig
Replace notify.yourdomain.com with the domain in your From address.
# SPF: a TXT record starting with v=spf1 (there should be exactly ONE)
dig +short TXT notify.yourdomain.com | grep -i "v=spf1"
# DMARC: a TXT record at _dmarc.<domain> starting with v=DMARC1
# If there is none on the subdomain, receivers look up the organizational
# domain (usually the root domain), not every intermediate parent.
dig +short TXT _dmarc.notify.yourdomain.com
dig +short TXT _dmarc.yourdomain.com
# DKIM: the selector comes from the DKIM-Signature header (s=...) in Step 2
dig +short TXT <selector>._domainkey.notify.yourdomain.com
dig +short CNAME <selector>._domainkey.notify.yourdomain.com
Common mistakes these commands reveal:
- Two
v=spf1records on the same name. SPF evaluation then returns a permanent error (permerror). Merge them into one record. (RFC 7208 §4.5) - Too many DNS-lookup terms. SPF allows at most 10 terms that cause DNS lookups (
include,a,mx,ptr,exists, andredirect). Past that, evaluation returnspermerror. (RFC 7208 §4.6.4) - No DMARC record at all. Add one (Step 5).
p=noneis accepted by Gmail's bulk-sender requirement and is the safe starting point. (Google) - DKIM record missing because the provider's CNAMEs were never added, or were pasted with the domain twice (
selector._domainkey.yourdomain.com.yourdomain.com). Many DNS panels add the domain automatically.
Step 4 — Rule out the rate limit
If confirmations work for the first few signups and then stop, you may be hitting a limit, not spam filtering:
- Supabase default SMTP: 2 per hour. After you switch to custom SMTP, Supabase starts you at 30 per hour. Raise it on the Rate Limits page before launch. (Supabase)
- Lovable: More → Users → Settings → Email → Advanced → Rate limit for sending emails. New projects start at 1,000 per hour once the project's email sending is active. Until you set up custom emails, a shared sender with its own strict limit is used, so raising the number does nothing. (Lovable: Email auth) Custom-domain auth emails also count toward a workspace hourly cap, which depends on the plan (for example 500/hour on Pro). When that cap is reached, Lovable rejects new emails until the hour resets. (Lovable: Custom emails)
Step 5 — Fix it
On Lovable Cloud
- Upgrade to a paid plan if you are not on one. Custom email domains are paid-only. Free plans keep using Lovable's default auth sender.
- More → Emails → Get started. Use a sending subdomain such as
notify.yourdomain.comso your root domain's reputation is protected. - Follow the DNS flow. Lovable can add the records for you through Entri, or you can set them up manually. For domains hosted elsewhere, manual setup asks you to add NS records for the subdomain (plus a verification TXT). Add those NS records inside your DNS zone for that subdomain only. Lovable warns that replacing your registrar-level nameservers takes your whole site and email offline. Some DNS providers, Hostinger and Wix among them, cannot hold subdomain NS records. Lovable shows a separate path for those, typically moving DNS to a provider that supports subdomain NS records, or transferring the domain to Lovable. (Lovable docs)
- Wait for the sender to show as verified (DNS can take up to 72 hours), then repeat Step 2.
On your own Supabase project (or your own code)
- Pick a provider and verify a subdomain you own, for example
auth.yourdomain.comornotify.yourdomain.com. - Add exactly the DNS records the provider shows: usually an SPF
TXT(or an MX + TXT on a bounce orsendsubdomain) and one to three DKIMTXT/CNAMErecords. Do not invent your own values. With Resend, verifying the domain sets up SPF and DKIM; DMARC is not added automatically, so you still add that record yourself. (Resend: Why emails go to spam, Resend: DMARC) - Add a DMARC record on the sending domain, for example:
Host: _dmarc.notify.yourdomain.com
Type: TXT
Value: v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com
Start with p=none and read the reports. Move to p=quarantine once everything you send passes. The rua address must be able to receive mail.
4. In Supabase: open the Authentication settings page and enable custom SMTP. Enter the host, port, user and password from your provider. Set the sender to something like no-reply@notify.yourdomain.com.
5. Raise the auth email rate limit to what your launch needs (Step 4).
6. Repeat Step 2 with a fresh Gmail and a fresh Outlook.com address. You want SPF, DKIM and DMARC all to show PASS for your domain.
Make the email itself look like an auth email
Supabase's own deliverability advice (source):
- Keep auth and marketing mail on separate domains and providers (
auth.example.comvsmarketing.example.com). - No promotional content, taglines or many links in confirmation emails. Short subjects with few or no emojis. Few images.
- Supabase specifically warns that auth emails describing apps in AI, Web3, blockchain, NFTs, gambling or pornography are more often classified as marketing.
- Add CAPTCHA to signup. Bots signing up lists of real addresses can harm your sending reputation, and Supabase advises against disabling email confirmation under that pressure.
- Use a custom domain for your Supabase project. The links in your emails then do not share reputation with other projects.
Copy-paste fix prompt for Lovable or Cursor
Audit how my app sends authentication emails (signup confirmation, magic link, password reset, invites).
1. Tell me which sender is used today: Lovable's default sender, Supabase's built-in SMTP,
or a custom SMTP/API provider, and which From address and domain.
2. If it is a built-in/test sender, give me the exact steps to send from a subdomain I own
(e.g. notify.mydomain.com) and list every DNS record I need to add, exactly as the provider requires.
3. List the SPF, DKIM and DMARC records I should have, and tell me how to verify them with dig.
4. Make sure no SMTP password or email API key is in frontend code. It must live only in server-side
secrets or Edge Functions.
5. Simplify the auth email templates: short subject, one button, no marketing text, no taglines.
6. Tell me the current auth email rate limit and what to raise it to for about <N> signups per hour.
Do not change DNS or rotate any key without showing me the change first.
FAQ
My confirmation email works for me but not for my users. Why?
On Supabase's default SMTP, only members of your project's organization team receive emails. Everyone else gets Email address not authorized. Set up custom SMTP. (Supabase)
Do I need DMARC if I'm small?
Gmail requires SPF or DKIM from every sender to personal Gmail accounts. DMARC (with p=none allowed) is required at 5,000 or more messages a day to Gmail. A p=none record is still useful at lower volume because it enables aggregate reports. (Google)
I added SPF and DKIM yesterday and it still goes to spam. New domains have no sending reputation yet. Check that SPF, DKIM and DMARC show PASS in Show original, remove marketing content from the template, and send at a steady rate rather than in spikes. Lovable's docs note that email from new domains often lands in spam at first, and that newly provisioned domains start with a neutral reputation. (Lovable: Email auth, Lovable: Custom emails)
A user's confirmation link expired. How do they get a new one? On Lovable Cloud, signing in again does not resend it. The user signs up again with the same address. You can also create a confirmed account for them in More → Users. (Lovable: Email auth)
Is my SMTP password safe in my Lovable/Cursor project? Only if it lives in server-side configuration (Supabase Auth settings, Edge Function secrets, server env vars). If it appears in your JavaScript bundle, anyone can send mail as you. Rotate it.
Sources
- Supabase docs: Send emails with custom SMTP: https://supabase.com/docs/guides/auth/auth-smtp
- Lovable docs: Send branded emails from your own domain: https://docs.lovable.dev/features/custom-emails
- Lovable docs: Email authentication for your app: https://docs.lovable.dev/features/email-auth
- Google: Email sender guidelines: https://support.google.com/mail/answer/81126
- RFC 7208 (SPF): https://www.rfc-editor.org/rfc/rfc7208.html
- RFC 7489 (DMARC): https://www.rfc-editor.org/rfc/rfc7489.html
- Resend: Implementing DMARC: https://resend.com/docs/dashboard/domains/dmarc
- Resend: Why are my emails going to spam?: https://resend.com/guides/email/deliverability/why-emails-go-to-spam
- Related LaunchGuard guide — Lovable site not showing up on Google? How to check what Googlebot actually sees: https://getlaunchguard.app/guides/lovable-site-not-showing-on-google-check-what-googlebot-sees
Last checked against the sources above: 21 November 2026.
If you want a weekly, read-only check of this after you have fixed it, LaunchGuard looks for exposed API keys, open databases, broken signups and SEO problems on AI-built apps you own and verify. The first scan is free and shows your 1–2 most severe findings with a fix prompt; paid plans add the full report, every fix prompt, weekly rescans and an emailed report. Solo is 9 USD per month for 1 app. Pro is 24 USD per month for up to 5 apps. Paid plans are live and renew monthly until you cancel.