Supabase Auth over SMTP
Supabase Auth, also known as GoTrue, sends sign-up confirmations, magic links and password resets over SMTP. You can point it at weneed.email.
You need
Section titled “You need”- An SMTP credential for the address Supabase should send from.
- Its password, which was shown once when you created it.
Settings
Section titled “Settings”The dashboard shows these values, filled in, on the credential’s View SMTP settings page.
For self-hosted GoTrue:
GOTRUE_SMTP_HOST=smtp.weneed.emailGOTRUE_SMTP_PORT=587GOTRUE_SMTP_USER=smtp_… # your credential's usernameGOTRUE_SMTP_PASS=… # from your secret storeGOTRUE_SMTP_ADMIN_EMAIL=hello@yourdomain.com # exactly the credential's senderGOTRUE_SMTP_SENDER_NAME=Your AppOn Supabase’s hosted platform, enter the same host, port, username, password and sender address in the project’s custom SMTP settings.
Check the variable names against your GoTrue version.
Things to know
Section titled “Things to know”- The sender must match exactly. Any other From address is refused.
- Duplicates are possible. GoTrue can’t add an idempotency header. If a connection drops after weneed.email stored a message but before GoTrue saw the reply, GoTrue may send it again and the user gets two emails. See Retries and duplicates.
- Watch your allowance. Every sign-up and reset counts. See Alpha allowance.