Vibe-Code Rescue

email rate limit exceeded

Why it happens

New Supabase projects send auth emails through a built-in service. Supabase documents it as a test service, limited to 2 emails per hour, and it only sends to addresses on your project team.

A few sign-up tests or one small launch use that up fast. The API then answers 429 with the code over_email_send_rate_limit.

How to fix it

  1. Confirm it is this error. In the network tab, the sign-up or password reset call returns status 429 and the code over_email_send_rate_limit.
  2. Pick an email sending service that offers SMTP and get its host, port, username and password. Choose a From address on a domain you own.
  3. In the Supabase dashboard open Authentication and set up Custom SMTP with those details. Supabase also lets you set it through the Management API.
    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 '{
        "smtp_admin_email": "no-reply@example.com",
        "smtp_host": "smtp.example.com",
        "smtp_port": 587,
        "smtp_user": "your-smtp-user",
        "smtp_pass": "your-smtp-password",
        "smtp_sender_name": "Your App Name"
      }'
  4. Expect a new cap. After you save custom SMTP, Supabase starts you at 30 messages per hour to protect your sender reputation. Raise it on the Rate Limits page in the Authentication settings, or through the API.
    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 }'
  5. Try a sign up again with an address that is not on your team. It should now be delivered.

When it is not this

Questions

How many emails can Supabase send by default?

The built-in provider is limited to 2 emails per hour and only sends to members of your project team, according to the Supabase docs.

How do I remove the limit?

Set up custom SMTP, then raise the email rate limit in the Authentication rate limit settings. After you save custom SMTP, Supabase starts you at 30 messages per hour.

Sources

Still broken?

The free health check asks ten questions about your app and shows the three fixes to do first. It runs in your browser.

If you would rather have someone read the code, the fixed-price audit is $497 one-time. It covers security and scaling, with a written report ranked by severity.