Skip to content
BaaS & Auth Integration

Supabase Custom SMTP & Transactional Email

By default, Supabase Cloud projects restrict confirmation emails to 3 per hour (and 30 per hour on Pro), causing 429 "Email rate limit exceeded" errors. SadaSend provides instant custom SMTP credentials (smtp.sadasend.com:587) and a type-safe REST API for Supabase Edge Functions, featuring domain DKIM/SPF alignment and 6,000 free emails a month.

The Problem: Default Supabase Limits

429: Too Many Requests & noreply@mail.app.supabase.io

Supabase Cloud shares an internal SMTP relay across free tier projects. It restricts confirmation sends to 3 emails per hour and dispatches from an unbranded address.

{"code": 429, "message": "Email rate limit exceeded"}
  • Unbranded noreply@mail.app.supabase.io sender lacks DKIM alignment and triggers spam filters.
  • New users fail to receive magic links and confirmation emails during launch traffic spikes.
The Solution: SadaSend Custom SMTP

Custom Domain SMTP & Zero 429 Throttle

Connecting SadaSend custom SMTP replaces noreply@mail.app.supabase.io with your verified brand domain. Deliver magic links and OTPs with 100% SPF, DKIM and DMARC alignment.

202 {"id": "msg_…", "status": "queued"}
  • 6,000 free transactional emails every month on the Free plan (200 a day).
  • EU-hosted delivery with real-time logs and delivery webhooks.
Step-by-Step Configuration

Configure Supabase SMTP in 3 Minutes

In your Supabase project dashboard, navigate to Project Settings → Authentication → SMTP Settings and toggle Enable Custom SMTP.

Open Supabase Dashboard
Supabase Setting FieldRecommended ValueDescriptionAction
Enable Custom SMTPToggle ONActivates external transactional email routing in your Supabase Auth dashboard.—
Sender Emailauth@yourdomain.comThe verified from address associated with your SadaSend domain.
Sender NameYour App NameHuman-readable sender name displayed in user inboxes.—
SMTP Hostsmtp.sadasend.comSadaSend dedicated SMTP relay gateway.
SMTP Port587Standard submission port using explicit STARTTLS encryption (RFC 3207).
SMTP UserapikeyStandard authentication username for all SadaSend SMTP connections (SendGrid drop-in compatible).—
SMTP Passwordyour_sadasend_api_keyYour production or test API key generated in the SadaSend dashboard.—
Developer Implementation

Supabase Ecosystem Code Recipes

Whether routing via Supabase Auth, dispatching from Deno Edge Functions, or running local Docker containers, SadaSend connects natively.

supabase/functions/send-email/index.tsZero-Dependency Native Fetch
TYPESCRIPT
// Supabase Edge Function: supabase/functions/send-email/index.ts
// Direct native fetch dispatch to SadaSend REST API (low latency)
import { serve } from 'https://deno.land/std@0.168.0/http/server.ts';

serve(async (req) => {
  if (req.method !== 'POST') {
    return new Response('Method Not Allowed', { status: 405 });
  }

  const { to, subject, html } = await req.json();

  const response = await fetch('https://api.sadasend.com/emails', {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${Deno.env.get('SADASEND_API_KEY')}`,
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      from: 'alerts@yourdomain.com',
      to,
      subject,
      html,
    }),
  });

  const result = await response.json();
  return new Response(JSON.stringify(result), {
    headers: { 'Content-Type': 'application/json' },
    status: response.status,
  });
});
Built for Modern BaaS Stacks

Why Supabase Builders Choose SadaSend

Beyond fixing SMTP rate limits, SadaSend gives your backend production-grade observability and agent guardrails.

Per-Key Recipient Allowlists

Scope your local development and staging API keys to only send to @company.com. Prevent local database seeds from ever leaking test auth links to production users.

Database Webhook Ingestion

Trigger transactional emails directly from Supabase Postgres Database Webhooks or Database Triggers (e.g., when a new row is inserted into users or invoices).

Native AI Agent MCP Server

Building AI agents on Supabase? Give your Claude Desktop, Cursor, or Windsurf agents native email tools with hard spending limits and dry-run preview verification.

Frequently Asked Questions

Supabase Custom SMTP Questions

Everything you need to know about eliminating auth rate limits and configuring custom domains.

How do I replace noreply@mail.app.supabase.io with custom SMTP in Supabase?

In your Supabase project dashboard, navigate to Project Settings -> Authentication -> SMTP Settings. Toggle "Enable Custom SMTP" to ON. Enter your verified custom sender address in "Sender Email" (e.g. auth@yourdomain.com), set the SMTP Host to smtp.sadasend.com, Port to 587, User to apikey, and Password to your SadaSend API key. Supabase will immediately stop sending from unbranded noreply@mail.app.supabase.io and send all auth confirmation and magic link emails from your verified domain with full DKIM and SPF alignment.

What are the exact custom SMTP settings for Supabase?

The verified SMTP settings for Supabase Auth are: Host: smtp.sadasend.com, Port: 587, Encryption: STARTTLS (RFC 3207), Username: apikey, Password: your SadaSend production API key, Sender Email: your verified domain email (e.g. auth@yourdomain.com), Sender Name: your application name. Save your settings in the Supabase dashboard and test by triggering an authentication email.

Why does Supabase return error 429: "Email rate limit exceeded"?

By default, Supabase Cloud projects share an internal built-in email service with a restrictive quota of 3 confirmation emails per hour on the Free tier and approximately 30 emails per hour on Pro. When multiple users sign up or request magic links within a short window, Supabase throws an HTTP 429 error. Connecting SadaSend custom SMTP immediately removes this restriction; your SadaSend plan’s limits apply instead.

How long does it take to connect SadaSend custom SMTP to Supabase?

Under 3 minutes. In your Supabase Dashboard, navigate to Project Settings -> Authentication -> SMTP Settings, toggle Enable Custom SMTP to ON, and enter host smtp.sadasend.com on port 587 with your SadaSend API key as the password.

Can I use SadaSend with Supabase Edge Functions?

Yes. In addition to standard Supabase Auth SMTP, you can dispatch transactional emails directly from Deno-based Supabase Edge Functions using native fetch to https://api.sadasend.com/emails. This enables programmatic notifications for Stripe webhooks, database triggers, and AI agent events.

Does SadaSend protect local Supabase Docker development from leaking emails?

Yes. With SadaSend’s per-key recipient allowlists, you can issue an API key dedicated to local development (in supabase/config.toml) that is strictly constrained to only send to your team’s domain (e.g. *@yourcompany.com). Any test emails addressed to real customer addresses are safely rejected at the gateway.

How much does it cost to use SadaSend with Supabase?

SadaSend offers 6,000 free transactional emails every month (200 a day) with no credit card required. When your Supabase application scales, paid plans start at $12/month for 15,000 emails, $19/month for 75,000 emails, and $79/month for 250,000 emails with SPF, DKIM and DMARC authentication included.

6,000 Free Emails Every Month · No Card Required

Fix Supabase 429 Errors in 3 Minutes

Create your SadaSend account with GitHub or Google, generate your SMTP credentials, and stop losing auth magic links and OTPs to the 2-per-hour limit.