Integration guide · SMTP
Send Supabase Auth emails with Buzzmark.
Supabase Auth sends confirmation, magic link, invite and password reset emails. Its built-in email service is meant for trying things out, so a production project needs custom SMTP. This guide points it at Buzzmark so those emails come from your own domain.
What you need
- A Supabase project you can change the Authentication settings of.
- A Buzzmark account. The free plan covers 300 emails a month.
- Access to the DNS of the domain you want to send from.
1. Verify your sending domain
In the Buzzmark dashboard, open Domains and add the domain your auth emails will come from. Buzzmark generates four DNS records: SPF, DKIM, DMARC and Return-Path. Add them at your DNS provider and wait for each one to show as verified. Supabase can only send from an address on a verified domain.
You can confirm what the outside world sees with the SPF, DKIM and DMARC checker.
2. Create a hive and copy its token
A hive is a mail stream with its own token, message log and suppression list. Create one for
this project, for example “Supabase Auth”, and copy its token. It starts with
bzm_srv_ and is shown once, so keep it somewhere safe until step 3.
3. Enter the SMTP settings in Supabase
In the Supabase dashboard, open your project and go to the Authentication section, then its SMTP settings (currently listed with the email settings). Turn on custom SMTP and fill in the form:
| Field | Value |
|---|---|
| Sender email address | An address on your verified domain, such as auth@acme.com |
| Sender name | The name recipients see, such as Acme |
| Host | smtp.buzzmarkapp.com |
| Port | 587 |
| Username | Your hive token, bzm_srv_... |
| Password | The same hive token |
Save the form. Port 587 uses STARTTLS, which Supabase negotiates by itself. If your network
blocks 587, use 2525.
Running Supabase yourself with Docker? The same values go in the stack’s
.env file. Restart the auth container afterwards.
# docker/.env (self-hosted Supabase)
SMTP_ADMIN_EMAIL=auth@acme.com
SMTP_HOST=smtp.buzzmarkapp.com
SMTP_PORT=587
SMTP_USER=bzm_srv_...
SMTP_PASS=bzm_srv_...
SMTP_SENDER_NAME=Acme
4. Raise the Supabase email rate limit
Supabase caps how many auth emails a project sends per hour, and the cap stays in place after you enable custom SMTP. Open the Rate Limits page under Authentication and set it to match the sign-up volume you expect. This is a Supabase setting, separate from your Buzzmark allowance.
5. Test it
Trigger a real auth email: invite a user from the Users page in Supabase, or request a password reset or magic link from your app. The email should arrive within a few seconds, and it appears in the hive’s message log in Buzzmark with its delivery status.
For a staging project, use a capture hive instead. Mail sent with a capture hive’s token is caught in a test inbox and never delivered, so sign-up tests cannot reach real people.
The full list of settings and SMTP reply codes is in the SMTP reference.
Troubleshooting
Supabase says there was an error sending the email. What is wrong?
Buzzmark refused the message, most often because the sender address is on a domain that is not verified yet. Open Domains in the Buzzmark dashboard and check that all four records pass. Your project's Auth logs in Supabase show the SMTP reply, which names the reason.
Why does authentication fail?
The token was pasted with a space or line break around it, or it has been rotated since. Paste it again into both the username and the password field. Rotating a token in Buzzmark stops the old one working straight away.
Why can Supabase not connect?
Check the port. Buzzmark listens on 587 and 2525 with STARTTLS. There is no port 465, so a connection to it never opens.
Why do I get "email rate limit exceeded"?
That limit is Supabase's own cap on how many auth emails a project sends, and it is separate from Buzzmark. With custom SMTP enabled you can raise it on the Rate Limits page under Authentication.
Setting up something else? See all integration guides.
Rather not do DNS by hand?
Buzzmark is EU-hosted transactional email that generates your SPF, DKIM, DMARC and Return-Path records, checks them for you and warns you if they ever drift.
Free up to 300 emails a month · No credit card