Skip to content
VibeSafeDaily

Guide

Supabase email rate limit exceeded: what the Auth error means

Published November 27, 2026 · Guides

What the message email rate limit exceeded means, which Auth limit returned the 429, and how to raise the cap on a project you own without turning off email confirmation.

This guide is for people who hit the Supabase Auth error email rate limit exceeded while signing up, sending a magic link, resetting a password, or requesting a one-time code. It explains what that message means, which limit returned it, and what to change on a project you own.

Run the checks only on an app you own or are allowed to administer. Do not point them at someone else's project, URL, or key.

What the message means

The test auth flows guide says a hosted project on the built-in email service returns a 429 with the code over_email_send_rate_limit and the message email rate limit exceeded when the project reaches its hourly email cap. The error codes page lists HTTP 429 as the status Auth sends when a rate limit is breached, and it says an AuthApiError carries code and status. Identify the error with error.code. The same page says message text alone is a weak check, because one code covers more than one case.

In the supabase-js fetch handler, error.message is the server message (msg or message on the JSON body), error.code is code or error_code, and error.status is the HTTP status. The Auth server defines the project-cap string in mail.go as email rate limit exceeded and returns it with over_email_send_rate_limit.

The error codes table describes that code as "Too many emails have been sent to this email address." The testing guide uses the same code for the project hourly cap. Both are in the current docs. The message is what separates them, and the next two sections are the split.

Why the built-in mailer hits it

The custom SMTP guide says every project starts with an SMTP server Supabase provides so you can explore Auth and try templates. That server is for getting started, templates sent to the project's team, and toy or demo apps. It is not meant for production, it has no SLA, and the number of messages it will send can change without notice. The same guide says the current value is 2 messages per hour. The rate limits page lists the same 2 emails per hour for the built-in provider, counted for the project across every email-sending Auth endpoint. The password auth guide repeats the 2-per-hour figure for the default service and says availability is best-effort. The production checklist dates the 2-per-hour email cap to 3 September 2024.

The SMTP guide names the flows that need that mailer: email and password accounts, one-time passwords and magic links, invites from the Users page or the Auth admin API, and social sign-in that still sends an email confirmation. Sign-up, reset, and a magic link share one project bucket. A few tests from the builder's own address can empty it.

A different failure looks similar and is not this error. Until custom SMTP is configured, the SMTP guide says Auth refuses addresses that are not members of the project's organization. You manage those members on the Team tab of the organization settings. Other addresses fail with the message Email address not authorized. The error codes page names that email_address_not_authorized. The testing guide says the same thing: the built-in service sends only to team addresses. Your own inbox can work because you are on the team, while the next person hits the team rule or the hourly cap. The built-in mailer card is the short version of both failures.

The other limits that return 429

The rate limits page says Auth uses a token bucket for limits that are by IP address. Most buckets hold 30 requests, so a client that has been idle can burst, and sustained traffic above the refill rate is denied with 429. The sign-ups and sign-ins row covers /auth/v1/signup, /auth/v1/recover, /auth/v1/resend, /auth/v1/magiclink, /auth/v1/otp, and /auth/v1/user. It is limited by IP address, defaults to 30 requests per 5 minutes, and allows bursts up to 30 requests. That row excludes anonymous sign-ins, which have their own hourly IP limit. The error codes page calls the IP failure over_request_rate_limit: too many requests from this client. It names a React effect that fires too often as one way an app causes it.

Three rows are limited by user, each with a default 60 second window before another request is allowed for the same user: send OTPs or magic links on /auth/v1/otp, the signup confirmation request on /auth/v1/signup, and the password reset request on /auth/v1/recover. In errors.go, that per-address wait returns the same code, over_email_send_rate_limit, with the message "For security purposes, you can only request this after N seconds." mail.go applies that check to confirmation, recovery, and email-change sends before it applies the project bucket. The CLI config reference lists auth.email.max_frequency with a default of 1m, which is the same 60 seconds.

Custom SMTP changes the project email cap. It does not remove these rows. The rate limits page says the email and SMS sending limits are what local testing and the test-auth guide help you avoid, and that the other limits on that page apply to tests too.

How to tell which limit fired

On your own app, trigger the flow once and read the failed Auth response in the browser's network panel, or the error your client already returned. Use the code first.

  • over_email_send_rate_limit and the message email rate limit exceeded is the project hourly cap. On the built-in service that cap is the 2 per hour figure above. After custom SMTP is saved, the SMTP guide says the starting cap is 30 messages per hour until you change it.
  • over_email_send_rate_limit and a message that begins "For security purposes, you can only request this after" is the per-address window. The rate limits page defaults that window to 60 seconds for signup confirmation, OTP or magic link, and password reset.
  • over_request_rate_limit is the IP limit. If the app calls Auth from a server, the rate limits page says the address Auth sees is that server's, unless you turn on IP address forwarding under Authentication > Rate Limits and send the visitor's address. Forwarding requires a secret key. Publishable keys and the legacy anon and service_role keys are not accepted for it.
  • email_address_not_authorized is the team-only rule on the built-in service. Raising a rate limit does not add that address to the team.

Fix it on your own project

The testing guide says the way to email any address, and then to change the email limit, is custom SMTP or the Send Email hook. After either one is in place, change the limit under Authentication > Rate Limits. The production checklist puts the SMTP form at Authentication > Emails > SMTP Settings. The SMTP guide calls the same screen the Authentication settings page, and the limit screen the Rate Limits configuration page.

1. Send through your own SMTP service

The SMTP guide says Auth works with any service that speaks SMTP. You need the host, port, user, password, and a From address such as no-reply@example.com. The guide's list includes Resend, AWS SES, Postmark, Twilio SendGrid, ZeptoMail, and Brevo. The production checklist names SendGrid and AWS SES the same way. Put the password in that dashboard form, or in the Management API as smtp_pass. Keep it out of the browser, out of a NEXT_PUBLIC_ or VITE_ variable, and out of the repo.

The SMTP guide says that once those settings are saved, Auth sends to all addresses, and a limit of 30 messages per hour is imposed to protect the new sender. The production checklist describes that default as 30 new users per hour. Raise it on Authentication > Rate Limits to a number your own traffic needs. The Management API field on the rate limits page is rate_limit_email_sent. The sample body on that page uses 10 to show the request shape. Set the value your own traffic needs.

The SMTP guide's example keeps mailer_autoconfirm false, so confirmation stays on. The same guide says to set DKIM, DMARC, and SPF with the sending service, to keep auth mail on its own From address and domain, and to leave marketing mail on a different service. The production checklist says to turn off link tracking at the SMTP provider, because tracking can rewrite the confirmation link Auth put in the message.

The Send Email hook is the other switch the rate limits page and the testing guide name. The hook guide says that when the email provider and the hook are both enabled, the hook sends the message and SMTP is not used. Use it when you need a queue, a provider without SMTP, or a fallback sender. The hook does not, by itself, replace the per-user and per-IP rows.

2. Stop the app from sending in a loop

The error codes page says a 429 on request volume can be an app bug, such as a useEffect that sends on every render. One confirmation, one magic link, or one reset per action is the shape the limits expect. Disable the button after a click. Show the message below, and wait for another click before calling Auth again. The email templates guide names signUp, signInWithOtp, signInWithOAuth, resetPasswordForEmail, and inviteUserByEmail as the calls that pass a redirect URL. The rate limits page also lists /auth/v1/resend on the sign-ups and sign-ins row.

Branch on error.code. Use the message only to split the two cases that share over_email_send_rate_limit. Show the check-your-email line when error is absent.
const { error } = await supabase.auth.signUp({ email, password });

if (error?.code === "over_email_send_rate_limit") {
  const projectCap = error.message === "email rate limit exceeded";
  showMessage(
    projectCap
      ? "This project is sending too many auth emails right now. Wait, then try again."
      : "Wait a minute, then request this email again.",
  );
  return;
}

if (error?.code === "over_request_rate_limit") {
  showMessage("Too many attempts from this network. Try again in a few minutes.");
  return;
}

if (error?.code === "email_address_not_authorized") {
  showMessage("This project cannot email that address yet.");
  return;
}

if (!error) {
  showMessage("Check your email for the confirmation link.");
}

3. Test against local Auth

The testing guide says the local stack needs the Supabase CLI and supabase init. supabase start sends every Auth email to Mailpit. Nothing leaves the machine, any address works, and local Auth has no hourly email limit. supabase status prints the Mailpit URL, http://127.0.0.1:54324 by default. Open that URL to read the link or code. Point the app at the local project URL and publishable key from the same status output, and put the hosted values back when you are done.

Local Auth still waits between emails to the same address. The testing guide says the default is one email per address per second, changed with auth.email.max_frequency in supabase/config.toml or supabase/config.jsonc. The CLI config reference lists that key's default as 1m. If the file sets a value, that value is the one the stack reads. Email confirmation is off by default locally and on by default for hosted projects, so a local sign-up sends no mail until you set auth.email.enable_confirmations to true and restart.

Older local configs called the mail catcher Inbucket. The CLI v3 migration guide says v3 cannot load a [inbucket] section, and to rename it to [local_smtp]. The CLI config reference says versions before v2.108.0 wrote [inbucket], and that later v2 versions still accept it with a deprecation warning. The inbox you open is Mailpit either way.

The same CLI config reference lists auth.rate_limit.email_sent with a default of 2, and says that key requires auth.email.smtp to be enabled. The testing guide says, separately, that local Auth has no hourly email limit. On a hosted project that is still on the built-in service, repeated tests belong on an organization team address, or on the local stack. The docs opened for this guide do not describe an email equivalent of the phone test-number list.

Leave the limits in place

The rate limits page says these limits protect the service from abuse. The SMTP guide describes the abuse they are aimed at: bots signing people up from a list of addresses, a burst that spends your sending reputation, a denial of service against sign-up and password reset, and pressure to turn confirmation off so an attacker can create an account in someone else's name. CAPTCHA on sign-up is the mitigation that guide calls the most effective for that bot traffic. A higher email cap without it spends the domain you just configured.

Leave Confirm email on. The general configuration page says that with Confirm email disabled, Auth assumes the address does not need to be verified and confirms it in the database. The setting lives on the email provider. The testing guide says turning it off also turns off the project's hourly email limit, and that anyone can then sign up with an address they do not own. If you turned it off to test, turn it back on under Authentication > Sign In / Providers before launch. The production security checklist says to enable email confirmations in that same section.

A public route that creates the user with the secret key has the same shape. The createUser reference says the call belongs on a server, and that the service_role key must never be in the browser. Its auto-confirm example sets email_confirm: true, which marks the address confirmed as the user is created. The users guide says the secret key, sb_secret_..., replaces that legacy key, bypasses row level security, and stays on a server. A sign-up form that anyone can call, which then calls createUser with email_confirm: true, confirms an address the visitor did not prove they control. The rate limits above are attached to the Auth paths in the rate limits table, including /auth/v1/signup. A route you add is your code, so it needs its own limit. The service role card is the case where that key has already shipped to the browser.

The publishable key in the page is a separate question. It is the key the browser is supposed to hold, and it is not what returns this 429. If the worry is that the project's tables are open to that key, the Supabase data guide is the row level security check for an app you own.

What a higher limit does not prove

A 200 from signUp means Auth accepted the request. It does not mean the message reached the inbox. The SMTP guide says the sending service can still drop or defer mail, and that you set SPF, DKIM, and DMARC so more of it lands. The 30-message starting cap can still return email rate limit exceeded until you raise it. The 60 second window and the IP limit can still return 429 after that. An empty inbox for an address outside the team, with the code email_address_not_authorized, means custom SMTP is not in use yet.

Common questions

What does email rate limit exceeded mean?

The test auth flows guide says a hosted project on the built-in email service returns HTTP 429 with the code over_email_send_rate_limit and the message email rate limit exceeded when the project reaches its hourly email cap. The rate limits page and the custom SMTP guide both put that built-in cap at 2 emails per hour. The SMTP guide says the number can change without notice. The same code is also used for a shorter per-address wait, and that case has a different message.

Why does this appear after a few signups or tests?

The rate limits page counts built-in Auth emails for the whole project, across every email-sending endpoint. Sign-up confirmation, magic links, one-time codes, password resets, and invites share that cap, so a few tests can empty it. The error codes page also says a client that sends too many requests, such as a React effect that fires on every render, can hit a rate limit of its own.

How do I tell the project cap from the per-user or per-IP limit?

The error codes page says to read error.code on the AuthApiError. over_email_send_rate_limit with the message email rate limit exceeded is the project hourly cap. The same code with the message For security purposes, you can only request this after N seconds is the per-address window. The Auth server source returns that second message, and the rate limits page defaults the window to 60 seconds for signup confirmation, OTP or magic link, and password reset. over_request_rate_limit is the IP limit. The sign-ups and sign-ins row defaults to 30 requests per 5 minutes per IP, with bursts up to 30. email_address_not_authorized is a different failure: the built-in service will not email an address outside the organization's team.

Will custom SMTP fix email rate limit exceeded?

The testing guide says custom SMTP or the Send Email hook is what lets you email any address and then change the email limit under Authentication > Rate Limits. The SMTP guide says that after you save custom SMTP, Auth sends to all addresses and starts at 30 messages per hour. The production checklist describes that default as 30 new users per hour. Raise it for your own traffic. The per-user windows and the per-IP limits on the rate limits page still apply. That page says the other limits apply to tests too.

Can I turn off Confirm email to stop the error?

The custom SMTP guide says not to disable email confirmations under pressure, because someone can then create an account in another person's name. The test auth flows guide says turning off Confirm email also turns off the project's hourly email limit, lets anyone sign up with an address they do not own, and marks that address confirmed. Turn it back on under Authentication > Sign In / Providers. The production security checklist says to enable email confirmations in that section before launch.

How do I test sign-up emails without hitting the cap?

The test auth flows guide says to run the local stack with supabase start. Local Auth has no hourly email limit and captures mail in Mailpit. The default Mailpit URL is http://127.0.0.1:54324. Local Auth still waits between emails to the same address. The testing guide says that default is one email per address per second, changed with auth.email.max_frequency. The CLI config reference lists that key's default as 1m. Email confirmation is off by default locally. Set auth.email.enable_confirmations to true and restart to test the confirmation email. On a hosted project that still uses the built-in service, mail goes only to organization team addresses.

The daily card

One break a day: the symptom, the cause, a prompt for your own project, and a short check. The address is not on the list until you confirm it.

One card a day, after you confirm. We email a confirmation link. You are not subscribed until you click it.

By signing up you agree to receive the daily card by email. You can unsubscribe any time. Privacy · Terms

Sources

Related cards