Skip to content
Contact usSign in

Supabase "email rate limit exceeded": the fix

Supabase's built-in email sender is for testing and allows only a few emails an hour. How custom SMTP raises the limit, and other ways to send sign-in codes.

OTPBy Ricky, Full Stack DeveloperUpdated 24 November 20265 min read

You call signInWithOtp a few times while testing and get email rate limit exceeded. Nothing is broken. Supabase’s built-in email sender is a test service with a very small hourly limit, and production apps are expected to bring their own SMTP.

Why it happens

Supabase sends auth emails (sign-up confirmations, magic links, email OTP codes, password resets) through a built-in sender unless you configure your own. That sender:

  • allows only a few emails an hour per project (2 an hour at the time of writing),
  • is meant for development, not real users,
  • may only deliver to addresses on your project team.

Every auth email type counts against the same limit, so two test sign-ins can use it up.

What we saw: the limits in Supabase’s own config

On 24 November 2026 we ran supabase init with the Supabase CLI 2.105.0 and read the Auth settings it writes to supabase/config.toml. These are the defaults a local project starts with, and the names to look for in the dashboard. We did not start the local stack itself: it needs Docker, which that machine did not have.

Setting in config.toml Default What it means for email codes
[auth.rate_limit] email_sent 2 an hour The same small number as the hosted limit. Its comment says it applies once auth.email.smtp is on, so it is the first number to raise after you add SMTP.
[auth.email] otp_length 6 A 6-digit code, the same length as most apps use
[auth.email] otp_expiry 3600 seconds One hour. A code that lives an hour is a long window for a guessed or forwarded code; 10 minutes (600) is the common choice.
[auth.email] max_frequency "1s" locally The wait before another confirmation or reset email to the same user. Set a real wait, such as 30 to 60 seconds, so a double tap does not send two codes.
[auth.rate_limit] token_verifications 30 per 5 minutes per IP How many code or link checks one IP can make. This, not a per-code try count, is what slows guessing.
[auth.rate_limit] sign_in_sign_ups 30 per 5 minutes per IP Every signInWithOtp call counts here as well as against email_sent.
[inbucket] on, port 54324 Locally, auth emails go to Inbucket’s inbox on your machine and reach nobody, so the limit you meet in development is not the one users meet.

The same file sets SMS far more loosely than email: sms_sent is 30 an hour against 2 emails, the SMS resend wait is 5 seconds, and a [auth.sms.test_otp] table lets you map test phone numbers to fixed codes so tests send nothing. Email has no such table; locally Inbucket catches the mail instead, and on a hosted project every test sign-in spends one of the hour’s emails.

Two things follow. The code expiry and the resend wait are as much yours to set as the hourly limit, and both start loose. And the hourly limit counts every auth email, so sign-up confirmations and password resets share the allowance with sign-in codes.

The fix: custom SMTP

  1. Pick an email provider: Amazon SES, ZeptoMail, Resend, Brevo, Postmark or SendGrid all work.
  2. Verify your sending domain with them (they give you DKIM and SPF records to add to DNS).
  3. In Supabase open Authentication, Emails, SMTP Settings, turn on custom SMTP, and enter the host, port, user and password from the provider.
  4. Open Authentication, Rate Limits and set the email limit you need.
  5. In the email settings, shorten the OTP expiry from an hour to what you want, such as 10 minutes.

Your emails now go through your provider, with your domain as the sender, and you pay that provider per email.

Supabase’s signInWithOtp sends a magic link by default. To send a code, edit the Magic Link email template to include {{ .Token }}, then verify the code the user types:

await supabase.auth.signInWithOtp({ email: "ananya@example.in" }); // counts against email_sent and sign_in_sign_ups

// later, with the code the user typed
const { data, error } = await supabase.auth.verifyOtp({
  email: "ananya@example.in",
  token: "482913",
  type: "email",
});

Other ways to send sign-in codes

If you would rather not run SMTP, deliverability and templates yourself:

  • Use an email OTP API that makes, sends and checks the code. SignOps Email OTP is two calls, send and verify, with 1,000 codes free every month and 2,000 on Starter, sent from your own domain. You verify the code on your server, then sign the user in to Supabase from there.
  • Skip email for returning users. A passkey or a push approval on a phone they already use sends no email at all.

Sources: Supabase CLI 2.105.0, supabase init (24 November 2026), Supabase: auth rate limits, Supabase: send emails with custom SMTP, Supabase: passwordless email logins, SendLayer: Supabase custom SMTP guide.

Frequently asked questions

More questions? Email us and the answer goes on this page.

hello@signops.dev
What is Supabase's email rate limit on the free tier?

Supabase's built-in email sender is meant for testing and allows only a few auth emails an hour per project (2 an hour at the time of writing). Check Authentication, Rate Limits in your project for the current figure.

How do I increase the Supabase email rate limit?

Set up custom SMTP under Authentication, Emails, SMTP Settings with any email provider. Once custom SMTP is on, you can raise the email limit on the Rate Limits page.

Does Supabase charge for email OTP?

Supabase does not charge per email OTP; it sends through its built-in sender for testing or through the SMTP provider you configure, who bills you for the emails.

Send your first push today.

Free for 1,000 push devices, 100 approvals and 1,000 passkey sign-ins a month, and 1,000 email codes a month. No card until you pass a free amount.