Supabase Auth ships with a built-in email sender, but it is meant for development only. To send sign-up confirmations, magic links and password resets to real users, connect a custom SMTP server in Authentication, SMTP settings, then raise the Auth email rate limit. It takes about ten minutes once your sending domain is verified.
Why the default Supabase email is not enough
According to Supabase’s SMTP docs, the built-in service has three limits that make it unsuitable for production:
| Limit | Built-in service | With custom SMTP |
|---|---|---|
| Recipients | Only members of your organization’s team | Anyone |
| Rate | Currently 2 messages per hour, subject to change | 30 per hour by default, adjustable |
| Reliability | Best effort, no SLA | Your provider’s service |
If you try to sign up a user whose address is not on your team, the request fails with “Email address not authorized”. That error is the usual sign you have reached the point where custom SMTP is needed.
Before you start: verify your sending domain
Your SMTP provider will only send from a domain you have verified, and mailbox providers filter mail from domains without authentication. Add your domain (for example acme.com) in your provider’s dashboard and publish the DNS records it gives you: DKIM, SPF and usually a DMARC policy. The SPF, DKIM and DMARC setup guide explains each record.
You will also need from your provider:
- SMTP host
- Port (465 or 587)
- Username and password (often an API key)
- A sender address on the verified domain, such as
no-reply@acme.com
Step 1: turn on custom SMTP in the dashboard
- Open your project in the Supabase dashboard.
- Go to Authentication, then SMTP settings (the URL ends in
/auth/smtp). - Turn on Enable custom SMTP.
- Fill in the sender details:
- Sender email address:
no-reply@acme.com - Sender name:
Acme
- Sender email address:
- Fill in the server details:
- Host: your provider’s SMTP host
- Port:
587or465 - Username and Password: from your provider
- Save.
With Mailcandor, the values are host smtp.mailcandor.com, port 587 or 465, username mailcandor, and your API key as the password. A sending-only API key locked to your Auth domain is a good choice here: if it ever leaks, it cannot be used to manage your account or send from your other domains.
Port 587 starts plain and upgrades with STARTTLS; port 465 is encrypted from the first byte. Both are secure. See SMTP ports explained if a connection fails on one of them.
Step 2: raise the Auth email rate limit
Once custom SMTP is on, Supabase applies a default limit of 30 Auth emails per hour. For any real launch that is low: a burst of sign-ups or a password reset prompt can use it in minutes, and users then see a rate limit error.
Go to Authentication, Rate Limits (the URL ends in /auth/rate-limits) and set the email limit to a number that fits your traffic. Check it against your provider’s own limits too. On Mailcandor, the free Starter plan allows 100 emails a day, so a limit far above that will not help until you move to a paid plan.
Step 3: test every Auth email
Send each type of Auth email to a real inbox you control:
- Sign-up confirmation
- Magic link
- Password reset
- Email change confirmation
- Invite (if you use it)
For each one, check that it arrives, that the sender name and address are right, and that the link works. Then open the message headers (in Gmail, “Show original”) and confirm SPF, DKIM and DMARC all pass. If the email lands in spam, the cause is almost always DNS, not Supabase.
Configure SMTP with the Management API
To script the setup across projects, send a PATCH to the Supabase Management API with a personal access token:
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 '{
"external_email_enabled": true,
"smtp_admin_email": "no-reply@acme.com",
"smtp_sender_name": "Acme",
"smtp_host": "smtp.mailcandor.com",
"smtp_port": "587",
"smtp_user": "mailcandor",
"smtp_pass": "'"$MAILCANDOR_KEY"'"
}'
The field names come from Supabase’s SMTP guide. smtp_admin_email is the sender address.
Troubleshooting
| Symptom | Likely cause |
|---|---|
| “Email address not authorized” | Custom SMTP is not turned on, so the built-in service is still in use |
| “Email rate limit exceeded” | The Auth rate limit (30 an hour by default) is too low |
| Error sending confirmation email | Wrong host, port or password, or the sender address is not on a verified domain |
| Emails arrive in spam | Missing or failing SPF, DKIM or DMARC on the sender domain |
| Links point to localhost | The Site URL under Authentication, URL Configuration is still the default |
When Supabase only reports a generic sending error, check your SMTP provider’s logs. They show whether the message was rejected at login, at the sender address or by the receiving server.
What custom SMTP does not cover
The SMTP setting only delivers Supabase Auth emails. Order confirmations, notifications and other app emails need to be sent by your own code, for example from a Supabase Edge Function that calls an email API with fetch. The pattern is the same as in our Deno and Bun guide, since Edge Functions run on Deno.
Using Mailcandor for Supabase Auth
Mailcandor’s SMTP relay works with the settings above, and the same API key can send your app’s other emails through the API. The Starter plan includes 3,000 emails a month free; see pricing to request access.