GuideSupabase Auth

Supabase Auth emails from your own domain.

Supabase sends your app's sign-up confirmations, sign-in links and password resets. Its built-in email is only for testing. Point it at MySendbox and those emails go out from your domain.

01

Before you start

  • A MySendbox workspace on a plan. Sending by SMTP or the API needs one: see pricing. Each email uses 1 credit.
  • Your domain added under Domains, with its DNS records in place and shown as verified. Email can only be sent from an address on a verified domain.
  • An SMTP key. In MySendbox, open API keys and choose Create SMTP key. It makes a key that can only send email (the emails:send scope). Limit it to your domain, then copy it: it's shown once and starts with msb_live_.
02

Enter the SMTP settings in Supabase

  1. In the Supabase dashboard, open your project's Authentication settings and go to its SMTP page: supabase.com/dashboard/project/_/auth/smtp. Turn on custom SMTP. If the page has moved, see Supabase's guide to custom SMTP.
  2. For the sender (From) address, use an address on your verified domain, such as no-reply@your-domain.com. The sender name is what people see, such as your app's name.
  3. Fill in the server settings:
SMTP settingsSupabase
Host:     smtp.mysendbox.com
Port:     587 (STARTTLS) or 465 (TLS)
Username: mysendbox
Password: your SMTP key (msb_live_…)

Save. Use port 587 unless your setup needs 465.

03

Check that it works

  1. In your app, sign up with a real email address of yours, or ask for a password reset.
  2. The email arrives from your own address, not from Supabase.
  3. In MySendbox, open Emails. The email is listed there with its status.
04

Good to know

  • Supabase's own limit. After you turn on custom SMTP, Supabase sends at most 30 emails an hour until you raise it on its Rate Limits page. This is Supabase's limit, described in their guide.
  • Why not the built-in email? Supabase's guide says its default service only delivers to your project's team members, at 2 emails an hour, and isn't meant for production.
  • Keep the key safe. Give Supabase its own key, limited to your domain. If it leaks, roll it under API keys and paste the new one into Supabase.
05

If an email doesn't send

Supabase shows or logs the reply from MySendbox:

  • “535” or a login error: the username must be mysendbox, and the password a key that has the emails:send scope. Ten failed logins in 15 minutes lock the key out for 15 minutes.
  • “550”: the email was refused, and the message says why. Most often the From address isn't on a verified domain, or the key is limited to another domain.
  • “452”: the workspace has no plan, or is out of credits. Start the plan or add credits under Billing.
  • A test to example.com fails: addresses on example domains are never sent to. Use a real inbox of yours.

All setup guides · API reference