Supabase "email rate limit exceeded" (429): why signup breaks after two emails and how to fix it

By AI App Medic · Updated · Supabase · Auth · SMTP · Lovable

You build a signup form with Lovable, Bolt or Cursor. It works for the first test. After a few more tests, or the first small burst of real users, signup stops and the response looks like this:

HTTP/1.1 429 Too Many Requests

{"code":429,"error_code":"over_email_send_rate_limit","msg":"email rate limit exceeded"}

In supabase-js this arrives as an AuthApiError with status 429 and code set to over_email_send_rate_limit. The message in your UI is often just "Something went wrong", so users see nothing useful. The cause is not a bug in your code. It is a limit on how many emails Supabase Auth will send, and the default is very low.

Three limits that look the same

People mix up three different limits. The message and code tell you which one you hit.

The first one is the one that blocks real launches, because two emails an hour means one signup and one password reset use up the whole hour for every user you have.

Step 1: confirm which limit it is

Open DevTools, go to the Network tab, trigger the failing action, and click the failed request to /auth/v1/signup, /auth/v1/recover or /auth/v1/otp. Read the response body. Also check Logs, Auth logs, in the Supabase dashboard. If the message is the hourly one, the fix is custom SMTP. If it is the 60 second one, the fix is in your form. If it is over_request_rate_limit, look for a loop first.

Step 2: stop burning the quota while you test

While you are still on the built-in sender, every test signup costs an email. Two things help right away:

Also know that the built-in sender is for trying things out. Supabase's SMTP documentation says it only delivers to addresses that belong to your project's team, and all others fail with Email address not authorized. That is a different error with the same root cause, and the Supabase auth email not sending in a Lovable app guide covers it in more detail.

Step 3: set up custom SMTP

This is the real fix. A transactional email service sends the mail instead of Supabase, and Supabase lets you raise the limit once you do.

  1. Pick a provider. Resend, Postmark, Brevo and Amazon SES all work. Most have a free tier that covers early traffic.
  2. Add and verify your sending domain with the provider. This means DNS records for SPF and DKIM. Without them, your mail lands in spam even though Supabase reports success.
  3. In the Supabase dashboard go to Authentication, Emails, SMTP Settings, turn on custom SMTP, and enter the host, port, username, password and sender address from your provider.
  4. Save, then sign up with an address that is not on your team and check the mail arrives.

Keep the sender address on the domain you verified, for example no-reply@yourapp.com. If your provider has link tracking, turn it off for these mails. Supabase's production checklist warns that tracking can rewrite the confirmation link and break it.

Step 4: raise the hourly limit

When you save custom SMTP, Supabase starts you at 30 emails per hour to protect your new sender's reputation. Go to Authentication, Rate Limits and set a number that matches your traffic. Pick a number you can justify, for example your expected signups plus password resets in the busiest hour, with some room. You can also change it through the Management API, where the field is rate_limit_email_sent:

curl -X PATCH "https://api.supabase.com/v1/projects/$PROJECT_REF/config/auth" \
  -H "Authorization: Bearer $SUPABASE_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "rate_limit_email_sent": 100 }'

The access token is a personal token from your account settings. Treat it like a password and keep it out of the repository.

Step 5: make the form handle it

Generated forms usually catch the error and show a generic message. Branch on the error code instead of the text, and add a cooldown on the resend button so a nervous user cannot press it fifteen times:

const [cooldown, setCooldown] = useState(0);

async function handleSignUp(email: string, password: string) {
  const { error } = await supabase.auth.signUp({ email, password });
  if (error?.code === "over_email_send_rate_limit") {
    setMessage("We have sent a lot of emails just now. Wait a minute and try again.");
    setCooldown(60);
    return;
  }
  if (error) { setMessage(error.message); return; }
  setMessage("Check your inbox for the confirmation email.");
  setCooldown(60);
}

useEffect(() => {
  if (cooldown === 0) return;
  const id = setTimeout(() => setCooldown(cooldown - 1), 1000);
  return () => clearTimeout(id);
}, [cooldown]);

Then set disabled={cooldown > 0} on the button and show the seconds left. For a real resend, call supabase.auth.resend({ type: "signup", email }) rather than signing up again.

If it is over_request_rate_limit

This one is about requests per IP address, not emails. Search your code for any call to signUp, signInWithOtp, resetPasswordForEmail or resend inside a useEffect without a correct dependency list, or inside a component that re-renders on every state change. The call fires on each render until the limit trips. Move the call into a click handler. If your server calls Supabase Auth on behalf of many users, all of them share the server's IP address, so forward each user's real IP as Supabase documents, using the Sb-Forwarded-For header with a secret key, and enable IP address forwarding in the rate limit settings.

Prevention

Set up custom SMTP before launch, not after the first angry email. Verify SPF and DKIM and send yourself a test from a non-team address on a phone, not just a laptop. Pick a quota with room. Add a CAPTCHA on signup if bots find your form, because a bot that signs up with fake addresses will empty your hourly quota faster than real users. Watch your provider's dashboard for bounces, because a sender with many bounces gets throttled by the provider itself.

FAQ

How many emails can Supabase send per hour?

With the built-in email service, 2 per hour for the whole project, and Supabase says this can change without notice. After you save custom SMTP settings, the starting limit is 30 per hour, and you can raise it in the Rate Limits settings.

Why does the error appear when I use a different email address?

The project wide limit counts every auth email, whoever it is for. Trying another address does not help once the hourly quota is used up. Only waiting or moving to custom SMTP does.

What does "you can only request this after 0 seconds" mean?

It is the per address cooldown, 60 seconds by default, with the remaining time rounded down to whole seconds. Retry a moment later. It is a protection against a resend button being pressed many times.

Is over_email_send_rate_limit the same as over_request_rate_limit?

No. over_email_send_rate_limit is about emails. over_request_rate_limit is about too many requests from one IP address to the auth endpoints, which can point to a bug such as a React effect that calls auth in a loop.

Can I just turn off the limit?

No, and you should not want to. The limits stop abuse of your signup form. Move to custom SMTP, raise the quota to a sensible number and add a CAPTCHA if bots find your form.

Related guides