Supabase Auth over SMTP
Send Supabase Auth emails — magic links, password resets, invites — from your own domain instead of Supabase's shared sender.
There is no native Supabase integration to install, no OAuth, and nothing to sync: Supabase Auth's Custom SMTP is a static config you paste values into. Supabase keeps rendering its own templates; ScopedPost delivers them through its SMTP relay. The guided version of this setup lives in the dashboard — Settings → SMTP credentials → Set up Supabase — which fills in the values for you.
1. Verify a domain and create an SMTP credential
In ScopedPost, verify the domain you want to send from (Domains page), then create an SMTP credential for it in Settings → SMTP credentials. One credential per domain; the password is shown once, when it is created or rotated — save it, because Supabase needs it and it cannot be shown again. The credential's username is shown in the list.
2. Paste the values into Supabase
In the Supabase dashboard, open your project, then Authentication → Emails → SMTP Settings and turn on Enable Custom SMTP. Fill in exactly these values:
| Supabase field | Value |
|---|---|
| Host | smtp.scopedpost.com |
| Port | 587 — STARTTLS. Port 465 is not served, so do not use it. |
| Username | The SMTP credential's username (shown in the Settings list). |
| Password | The shown-once password from when the credential was created or last rotated. |
| Sender email | An address on the verified domain, e.g. hello@your-domain.com. It must be on the credential's domain — the relay rejects anything else. |
| Sender name | Your product or team name — what recipients see in their inbox. |
The direct link to the settings page is https://supabase.com/dashboard/project/<your-project-ref>/auth/smtp — the project ref is the 20-character id in your dashboard URL.
3. The sender-identity rule
The domain must be verified in ScopedPost, and the sender email must be on the credential's domain. The relay enforces this on every send: a MAIL FROM on any other domain is rejected with a 550, even if the credentials are right. That is the same rule the API enforces — a credential can only ever send for its own domain.
4. Verify it worked
In Supabase, send a test Auth email — the easiest is Authentication → Users → Add user → Send invite, or a password reset for your own address. Then check ScopedPost: the message appears in the dashboard under Emails, filtered to your domain, with its delivery events. If it is not there, Supabase never handed it to the relay — check the troubleshooting below first.
Troubleshooting — what the relay actually says
Supabase reports a failed SMTP test with little detail. The relay's replies, which also appear in ScopedPost's Logs, say which side is wrong:
| Relay reply | Meaning | Fix |
|---|---|---|
535 5.7.8 Authentication credentials invalid | Wrong username or password — the two are indistinguishable by design. | Re-check the username against the Settings list and the password against the one you saved at creation. If the password is lost, rotate the credential and paste the new one — the old one stops working immediately. |
550 5.7.1 From domain does not match this credential | The sender email is not on the credential's domain. | Change the sender email to an address on the verified domain the credential belongs to. |
530 5.7.0 Must issue a STARTTLS command first | The client tried to authenticate before STARTTLS. | Use port 587 with STARTTLS (Supabase does this on 587). If you see this, the port is wrong — 465 is not served. |
421 — limit exceeded | The credential's hourly or daily cap was hit (defaults 100/hour, 1,000/day). | Wait for the window, or raise the limits on the credential in Settings. |
550 — policy rejection | The send passed the relay and was rejected by the policy engine (suppression, breaker, or scope). | Open the message in the dashboard — the rejection reason is shown on it. |
Supabase's own “Minimum interval per user” (default 60 seconds) is separate from ScopedPost's caps — it limits how often the same user can receive an Auth email, not how many your team can send.