Deutsch
Error messageSupabase · Auth

Fix “email rate limit exceeded” in Supabase Auth

Why Supabase Auth says email rate limit exceeded (HTTP 429), why the built-in email service sends only 2 emails an hour, and the fix that keeps confirmation on.

The message you seeSupabase Auth · 429

email rate limit exceeded

By Tim GeithnerPublished 4 min read

Short answer

Supabase Auth refused to send another email because your project used up its hourly email budget. With the built-in email service that budget is 2 emails per hour, for sign-up confirmations, magic links, password resets and email changes together. A few test sign-ups are enough. Set up custom SMTP with a real email provider, then adjust the limit under Authentication → Rate Limits. Do not turn off email confirmation to get past it.

Ask an AI about this page:ChatGPTClaude

On this page

Supabase Auth sends emails for sign-up confirmations, magic links, one-time codes, password resets, invites and email changes. All of them share one hourly budget per project. When it is used up, Auth refuses the next one with HTTP 429, the code over_email_send_rate_limit and the message email rate limit exceeded. No email was sent. With the built-in email service the budget is 2 emails per hour, so you usually hit this on day one, while testing your own sign-up form.

In the browser’s network tab, the response from Supabase Auth looks like this:

The response from Supabase Auth
{
  "code": 429,
  "error_code": "over_email_send_rate_limit",
  "msg": "email rate limit exceeded"
}

supabase-js turns it into an error with error.message, error.code and error.status, which is what your app sees.

Find your cause in 30 seconds

Your setupMost likely cause
No SMTP settings in your projectYou are still on the built-in email service
You signed up, reset and resent several times in a rowTesting sends more mail than you think
Custom SMTP is set up and real users see the errorReal users hit the custom SMTP limit

The three causes

1. You are still on the built-in email service

Every new Supabase project starts with a built-in email service. It is meant for trying things out: it sends 2 emails per hour, only to members of your Supabase organization, without any delivery promise. Other addresses get a different error, Email address not authorized. Fine for a first test, never enough for real users.

2. Testing sends more mail than you think

Each sign-up sends a confirmation. Each “resend link” click sends one more. A magic link login, a password reset or an email change sends one each. Two of these in an hour and the budget is gone, and the third one fails, even with a different test address. A separate message, For security purposes, you can only request this after ... seconds, means you asked for a second email to the same user too quickly.

3. Real users hit the custom SMTP limit

With custom SMTP, Supabase starts you at 30 emails per hour to protect the reputation of your new sender. A launch day, a Product Hunt post or a login page with magic links can pass that. Then real users cannot sign up or log in until the hour is over.

How to fix it

  1. Set up custom SMTP. Create an account with an email provider (Supabase lists Resend, AWS SES, Postmark, Twilio SendGrid, ZeptoMail and Brevo as examples), verify your domain there, and enter the SMTP details on the SMTP page of your project’s Authentication settings. Supabase’s production checklist asks for this before launch.
  2. Set the limit for your traffic. Under Authentication → Rate Limits, raise the email limit to what your launch needs, for example a few hundred per hour, not “unlimited”.
  3. Stop testing through the inbox. For test accounts, use Authentication → Users → Add user and confirm the user there, instead of signing up through your form again and again.
  4. Show a clear message. Catch the code in your app, tell the user to wait a few minutes, and do not retry automatically:
SafeShow a clear message instead of the raw error
function emailErrorMessage(error: { status?: number; code?: string } | null) {
  if (!error) return "Check your inbox for the link.";
  if (error.code === "over_email_send_rate_limit" || error.status === 429) {
    return "Too many emails were sent just now. Please wait a few minutes and try again.";
  }
  return "We could not send the email. Please try again.";
}

const { error } = await supabase.auth.signInWithOtp({ email });
showMessage(emailErrorMessage(error));
Handle email rate limit exceeded safely

My Supabase app shows “email rate limit exceeded” (HTTP 429, code over_email_send_rate_limit) when users sign up, request a magic link or reset their password. Find every call to supabase.auth that sends an email (signUp, signInWithOtp, resetPasswordForEmail, resend, updateUser with a new email). For each one, catch the error and show a friendly message when error.code is over_email_send_rate_limit or error.status is 429, disable the button for a minute, and never retry automatically. Then list the steps I need to do myself in the Supabase dashboard: set up custom SMTP and adjust Authentication → Rate Limits.

Do not turn off email confirmation, do not create users with the service role key in client code and do not reveal in error messages whether an email address is registered. Show me the changes before applying them.

Check that the fix works

After setting up custom SMTP, sign up once with a fresh address you own. The confirmation email must arrive from your own domain, not from Supabase. Then open Authentication → Rate Limits and check that the email limit shows the value you set. Finally, trigger the error on purpose in a test project, or temporarily lower the limit there, and check that your app shows your friendly message, not email rate limit exceeded. The wiki entry on rate limiting explains why the limit should stay on, just at the right height.

Frequently asked questions

How many emails can Supabase send per hour?

With the built-in email service, 2 per hour for the whole project, and only to members of your Supabase organization. With custom SMTP the default is 30 per hour, and you can change it under Authentication → Rate Limits. Supabase notes that the built-in limit can change without notice.

How long do I have to wait?

The limit counts emails per hour, so at most an hour. For testing, don’t wait: create confirmed test users under Authentication → Users instead of signing up again and again.

Can I just turn off Confirm email?

Not as a fix for this error. Without confirmation, anyone can sign up with an address they do not own, and your app treats it as theirs. Keep confirmation on and fix the sending side with custom SMTP.

What is over_email_send_rate_limit?

It is the error code Supabase Auth sends with this message, together with HTTP status 429. supabase-js puts it in error.code, so your app can show a clear message instead of the raw text.

Sources

  1. 1.Rate limits — Supabase Docs
  2. 2.Send emails with custom SMTP — Supabase Docs
  3. 3.Error codes — Supabase Docs
  4. 4.Production Checklist — Supabase Docs

Find this in your own app

ShipRely reads your repository (read-only), proves each finding with file and line, and gives you a fix prompt to paste into your AI builder.

Run a demo audit
  • Read-only access to your repository
  • Every finding with file and line
  • Fix prompts for Lovable, Cursor, Claude Code and Bolt