Supabase "email rate limit exceeded": why it happens and the fix
Your Lovable, Bolt or Cursor app works in testing, then on launch day sign-ups start failing with email rate limit exceeded (HTTP 429, code over_email_send_rate_limit). Or a user clicks "resend" and gets For security purposes, you can only request this after 60 seconds. Both come from Supabase Auth's email limits. The real fix takes about fifteen minutes.
Why it happens
Every new Supabase project sends auth emails (confirm sign-up, magic link, password reset, invite) through Supabase's own built-in sender. That sender is only meant for trying things out: it allows a handful of emails per hour for the whole project and you can't raise it. The first few real users use up the hour, and everyone after them gets the 429.
The "60 seconds" message is a different, per-user limit. Supabase won't send the same address another email until the interval set under Authentication > Rate Limits has passed. That one protects your users from being spammed and is fine to keep.
The fix: your own SMTP sender
- Pick an email provider: Resend, Postmark, Brevo, Amazon SES or SendGrid all work. Most have a free tier.
- Verify your own domain there (add the DNS records it gives you, including SPF and DKIM), so mail comes from something like
no-reply@yourapp.comand doesn't land in spam. - In Supabase go to Authentication > Emails > SMTP Settings, turn on custom SMTP and fill in the host, port, username and password from the provider.
- Go to Authentication > Rate Limits and raise "Rate limit for sending emails" to something that fits your launch, for example 100 an hour.
- Test sign-up and password reset once with a real inbox, and check Logs > Auth if anything doesn't arrive.
The SMTP password is a secret. It belongs only in the Supabase dashboard, never in your app's code or a VITE_ variable. See why VITE_ variables aren't secret.
Shortcuts that weaken your app
- Turning off "Confirm email" in production. The error stops, but anyone can sign up with someone else's address, and bots can create accounts freely. Fine on a test project, not on a live app.
- Setting the rate limits very high with no protection. Your sign-up form becomes a free way for bots to send email from your domain, which can get it flagged as spam. Turn on CAPTCHA under Authentication > Attack Protection (hCaptcha or Cloudflare Turnstile) when you raise the limits.
- Sending auth emails yourself with the service_role key from the frontend. That key skips every security rule in your database. It must never be in the browser. If it already is, see what to do when the service_role key is exposed.
Emails arriving but links not working?
If the email arrives but the link opens localhost:3000, fix the Site URL and Redirect URLs: Supabase redirects to localhost. If reset links say "expired" straight away, a company email scanner is often opening the link first. Switch the template to a 6-digit code ({{ .Token }}) and check it with verifyOtp.
A prompt to paste into Lovable, Bolt or Cursor
Supabase Auth returns "email rate limit exceeded" (429). Don't change
the code to work around it. Instead:
1. Tell me the steps to set up custom SMTP in Supabase with my email
provider and verify my domain (SPF, DKIM).
2. Show the sign-up error to the user in a friendly way ("Too many
requests, try again in a minute") instead of failing silently.
3. Keep email confirmation on, add Cloudflare Turnstile or hCaptcha to
sign-up, and never use the service_role key in the frontend.
Launching soon? LeakPatrol's free scan checks your live app for leaked keys, readable tables and the rest of the launch checklist in about a minute.
Check your app in a minute
Free, read-only, no sign-up. Every problem comes with a plain-English fix and a prompt for your AI tool.
Get the 10-point checklist
Every check we run on AI-built apps, with how to do each one yourself. Straight to your inbox.
Plus the odd security tip. Unsubscribe any time.
Questions
What does email rate limit exceeded mean in Supabase?
Your project is sending auth emails through Supabase's built-in sender, which only allows a few emails per hour for the whole project. Once that is used up, sign-up, magic link and password reset return a 429 error.
How do I fix email rate limit exceeded in Supabase?
Set up custom SMTP with a provider such as Resend, Postmark or Brevo under Authentication > Emails > SMTP Settings, verify your domain, then raise the email limit under Authentication > Rate Limits.
What does "you can only request this after 60 seconds" mean?
It is a per-user limit: Supabase will not send the same address another auth email until the interval has passed. It protects users from email spam and is fine to keep.
Should I turn off email confirmation to avoid the limit?
Not on a live app. Without confirmation anyone can sign up with someone else's address and bots can create accounts freely. Use custom SMTP and CAPTCHA instead.
More guides
- Supabase RLS policy generator (free)
- Is this API key safe in my frontend? Free key checker
- Security scan MCP server for Claude Code, Cursor and other AI agents
- Supabase October 30 grants change: what it fixes for your app's security, and what it doesn't
- Supabase "42501 permission denied for table": the safe fix (not GRANT ALL)
- Supabase "new row violates row-level security policy": 5 causes and the safe fix
- Supabase service_role key exposed? What to do in the next hour
- Supabase select returns an empty array but the data is there: the RLS fix
- Supabase "Database error saving new user": find the cause and fix it safely
- Supabase Storage upload: "new row violates row-level security policy" fixed
- Supabase "infinite recursion detected in policy for relation" fixed
- Supabase Edge Function "blocked by CORS policy" fixed
- Supabase "Forbidden use of secret API key in browser" (401) fixed
- Supabase "Legacy API keys are disabled" or "Invalid API key": what it means and the fix
- Supabase login or magic link redirects to localhost:3000 (fixed)
- Is your Supabase storage bucket public? What anyone can see, and the fix
- Where to put your OpenAI API key in a Lovable app (so nobody can copy it)
- Supabase "Function Search Path Mutable" warning: what it means and the one-line fix
- Lovable data exposure study: is your app one of the 24,664?
- Lovable security check: is your Lovable app safe?
- Bolt.new security check: is your Bolt app safe?
- Launch checklist for apps built with Lovable, Bolt and Cursor
- Supabase security check: is your anon key safe? (RLS checker)
- How to check if your API key is exposed on your website
- Are VITE_ env variables secret? How to hide API keys
- Stop users giving themselves your paid plan (Supabase)