How to configure email on the sender side ( DKIM, DMARC and SPF )
Hello! I am asking a question here becouse i cant find the answer and my email provider is not helpfull. My email provider says i need to get some info from supabase about what to set up at their end to make emails work. In supabase docs it just says i should work with my email provider. Has anybode done this and could point me in the right direction? Im wanting auth emails to come from my own domain
3 Replies
@thorprestboen Hey! I’ve been through that basically you’ll need to set up custom SMTP in Supabase Auth settings using the details from your email provider (like SMTP host, port, username, password) then verify your domain with proper DNS records (SPF, DKIM, DMARC)
Who is your email provider? what kind of information are they asking for?
Here are the general steps. In my example, I will use example.com as the domain.
1. Buy a service from one of the many email delivery services. I use Zeptomail, but many others here use Resend. There are tons to choose from.
2. Follow their instructions on how to configure their service to allow you to use the example.com domain to send email. Nobody here nor at Supabase can help you with that, because those instructions are specific to your chosen provider. This is where they will tell you how to configure your SPF, DKIM, and DMARC settings in your DNS.
3. configure Supabase to use that external email provider. Usually this will be setting the SMTP server and providing the user/password credentials you get from step 1. Some services use other APIs so if Supabase supports that API, you can configure that instead of the SMTP protocol.
4. tell Supabase to use your preferred email address to send confirmations, such as foo@example.com
5. profit. one must always profit.