The short answer: in the Supabase dashboard, open the SMTP settings of Authentication, turn on custom SMTP, and enter:
Host: smtp.smtpfa.st
Port: 587 (or 2525)
Username: smtpfast
Password: an SMTPfast API key with the email:send scope
Sender: an address on a domain you verified in SMTPfast, e.g. [email protected]
Then raise the Auth email rate limit, which Supabase sets to 30 emails an hour when you turn custom SMTP on.
We build SMTPfast. The Supabase details below come from the Supabase docs, checked on 22 November 2026; the links are at the end.
Why the built-in mailer is not enough
The Supabase docs describe the default mailer as a service for trying things out, not for production:
- It sends only to addresses in your organization's team. Any other address fails with "Email address not authorized".
- It sends at most 2 messages an hour, and that limit can change without notice.
- It has no SLA for delivery or uptime.
With custom SMTP, Supabase sends every Auth email (sign-up confirmation, magic link, password reset, invite, email change) through your provider, from your domain, to any address.
Step 1: verify your sending domain in SMTPfast
Supabase sends from the address you give it, so that domain must be verified in SMTPfast first. The Supabase docs suggest a separate domain or subdomain for auth email, such as auth.yourdomain.com, so marketing mail never affects sign-in mail.
- In SMTPfast, open Domains and add the domain.
- Publish the records SMTPfast shows at your DNS host: three DKIM CNAME records, an SPF TXT record, a DMARC TXT record, and an MX and a TXT record for the
bounce.subdomain (the MAIL FROM domain). On Cloudflare, Connect Cloudflare adds them for you. - Click Verify Now. The domain must show as verified before SMTPfast accepts mail from it.
Domains lists every record. You can check them with the SPF, DKIM and DMARC checkers.
Step 2: create an API key for Supabase
In SMTPfast, open API Keys and create a key with only the email:send scope. Name it after the Supabase project, so you can revoke it alone later. The key is the SMTP password; the username is always smtpfast. Set SMTP mail without a category header to Transactional, so Auth email is sent as transactional.
Step 3: enter the settings in Supabase
Open your project in the Supabase dashboard, go to the SMTP settings of Authentication (/dashboard/project/<ref>/auth/smtp), turn on custom SMTP and fill in:
| Supabase setting | Value |
|---|---|
| Sender email | [email protected] (on your verified domain) |
| Sender name | Your app name |
| Host | smtp.smtpfa.st |
| Port | 587 (or 2525) |
| Username | smtpfast |
| Password | The API key from step 2 |
SMTPfast uses STARTTLS on both ports and has no port 465.
You can set the same values with the Supabase 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 '{
"external_email_enabled": true,
"smtp_admin_email": "[email protected]",
"smtp_sender_name": "Acme",
"smtp_host": "smtp.smtpfa.st",
"smtp_port": "587",
"smtp_user": "smtpfast",
"smtp_pass": "'"$SMTPFAST_API_KEY"'"
}'
For local development with the Supabase CLI, the same settings live under [auth.email.smtp] in supabase/config.toml (host, port, user, pass, admin_email, sender_name).
Step 4: raise the rate limit
When custom SMTP is on, Supabase limits Auth email to 30 messages an hour by default. Change it on the Rate Limits page of Authentication (/dashboard/project/<ref>/auth/rate-limits). Set it to what your sign-up traffic needs, and below your SMTPfast plan's hourly sending limit (see Rate limits and Pricing). A new SMTPfast account also sends in stages during its first week.
Step 5: test it
- Sign up in your app with an address you can read, or send a magic link or a password reset to it.
- In SMTPfast, open Emails. The message shows with its status (queued, sent, delivered or bounced) and every delivery attempt.
- In the inbox, open the original message (in Gmail: Show original) and check that SPF, DKIM and DMARC pass for your domain. The email header analyzer reads the headers for you, and the mail tester scores a test message.
If nothing arrives and the message is not in the SMTPfast log, check the Auth logs in the Supabase dashboard for the SMTP error.
Know this before you go live: category and tracking
SMTPfast sorts every email into marketing or transactional. Over SMTP, a message can pick its category with an X-SMTPfast-Category header, but the Supabase SMTP settings have no field for custom headers. A message without the header takes the category set on its API key, so Supabase Auth email is transactional when its key is set to transactional:
- It has no one-click
List-Unsubscribeheader. - A recipient who unsubscribed from your marketing email still gets it. Bounced and complained addresses are still skipped.
Keys are marketing unless you change them. To switch a key you already use, open API Keys, Edit on the key and choose Transactional. Use this key only for Supabase Auth email, and another key, left on marketing, for any newsletter you send over SMTP. See SMTP mail and categories.
Click and open tracking follow your SMTPfast account settings. To send a link in an Auth template exactly as written, add data-smtpfast-track="off" to the link in the Supabase email template:
<a href="{{ .ConfirmationURL }}" data-smtpfast-track="off">Confirm your email</a>
SMTPfast removes the attribute before sending. See Tracking per email.
Common errors
| What you see | Cause and fix |
|---|---|
535 Authentication failed |
The username must be exactly smtpfast, and the password the full API key. The key must have email:send and must not be revoked. |
550 Domain ... is not verified |
The sender email is not on a verified SMTPfast domain. Verify the domain (step 1) or change the sender email. |
| Connection timeout | Port 465 is not open on SMTPfast. Use 587, or 2525 if your network blocks 587. |
451 with a limit message |
Your SMTPfast hourly limit or first-week stage was reached, so that send fails. Keep the Supabase rate limit below your plan's limit, or move to a larger plan. |
| "email rate limit exceeded" from Supabase | The Supabase Auth rate limit (30 an hour by default). Raise it on the Rate Limits page. |
550 All To recipients are suppressed |
The address bounced or complained before. See Suppressions. |
| Mail lands in spam | Check that SPF, DKIM and DMARC pass, that the sender is on your own domain, and that the template is not only a link. Supabase also recommends CAPTCHA on sign-up, since bot sign-ups send confirmation email to addresses that bounce. |
Sources
Checked on 22 November 2026:
- Supabase: Send emails with custom SMTP (default mailer limits, settings, Management API, 30 an hour default)
- Supabase: CLI config reference (
[auth.email.smtp]) - Supabase: Send Email Hook
- SMTPfast: SMTP relay settings, Domains, Marketing and transactional email
Other auth guides: Clerk, Better Auth, Auth.js / NextAuth and Firebase Authentication.
Frequently asked questions
Why do I need custom SMTP for Supabase Auth?
The built-in Supabase mailer is for testing. Its docs say it sends only to members of your organization's team, at most 2 messages an hour, with no delivery guarantee. With custom SMTP, Supabase sends confirmation, magic link, password reset and invite emails to any address, from your own domain.
What are the SMTPfast SMTP settings for Supabase?
Host smtp.smtpfa.st, port 587 (or 2525), username smtpfast, and an SMTPfast API key with the email:send scope as the password. The connection uses STARTTLS. The sender email must be an address on a domain you verified in SMTPfast.
What is the Supabase Auth email rate limit with custom SMTP?
Supabase starts it at 30 emails an hour when you turn on custom SMTP. Change it on the Rate Limits page of the Authentication settings. SMTPfast has its own hourly limit per plan, so keep the Supabase number below it.
Does SMTPfast support port 465 for Supabase?
No. SMTPfast accepts SMTP on ports 587 and 2525 with STARTTLS. Use 587, or 2525 if your network blocks 587.
Are Supabase Auth emails sent as transactional?
Yes, when the API key Supabase uses is set to transactional. Supabase cannot add custom headers, so SMTPfast takes the category from the key: transactional email has no unsubscribe header and still reaches recipients who unsubscribed from marketing email. Keys are marketing by default; choose Transactional when you create the key, or under API Keys, Edit.
Ready to get started?
Start sending transactional email today. Free to start, no credit card required.
Start freeRelated Posts
109 MCP Tools vs 2: What Compact Mode Saves (and Costs), Measured
SMTPfast's MCP server now has a compact mode at /api/mcp/compact: two tools, search_api and call_api, in place of 109. The tool list drops from 33,743 tokens to 634. In 100 measured runs on Claude Opus 5.5 and Claude Sonnet 5.5, every task passed in both modes, and compact mode sent 6.6 to 7.1 times fewer input tokens through the model. It was also slower (one more model turn per task), and with a warm prompt cache it cost about the same. It saves money when the tool list is not cached.
Best Email APIs for AI Agents in 2027 (7 Compared, 4 Fully Tested)
For an agent that needs its own inbox, four APIs passed every functional check we ran: SMTPfast, AgentMail, Resend Inboxes and Nylas Agent Accounts. All four sent, received in about 3 seconds, kept reply threads, handled attachments and worked through MCP in Claude Code. AgentMail is the fastest start (an inbox from one API call, no domain, no person); Nylas adds calendars and asks a person to confirm MCP sends; Resend fits if you already send with it; SMTPfast needs your own domain and a paid plan. Postmark received mail but could not send yet while its new-account review was pending. Tested on 22 November 2026.