Not receiving Auth emails from the Supabase project
我们强烈建议在你的项目中配置自己的自定义 SMTP 提供商,以避免在从项目发送邮件时遇到问题。内置的邮件提供商仅用于演示目的,并且提供的速率限制非常低。你可以在这里阅读有关速率限制的更多详细信息。
如果你正在测试你的 Supabase 项目,可以考虑配置一个像 Mailtrap 这样的邮件测试工具来测试你的邮件。这是一个邮件沙箱工具,可以帮助你调试邮件,而不会真正发送给终端用户。
🌐 If you're testing your Supabase projects, consider configuring an email testing tool like Mailtrap to test your emails. It's an email sandbox tool that helps debug emails without sending an email to an end user.
在调试未投递邮件的初步步骤中,先检查你项目的授权日志,看看在交给邮件提供商时是否有错误。一般来说,交接问题可能是由于自定义 SMTP 提供商配置错误导致的。
🌐 As the initial step in debugging not-delivered emails, check your project's Auth logs for errors that can occur when handing over to the email providers. In general, handover issues can occur due to misconfiguration of the custom SMTP provider.
一旦交给邮箱服务提供商,Supabase 就无法控制邮件的发送了。邮件无法到达用户收件箱可能有多种原因。
🌐 Once handed over to the email provider, Supabase has no control over email delivery. There can be multiple reasons why emails do not reach the user's inbox.
1. 邮箱服务提供商的问题。 #
🌐 1. Issues with the email provider.
接下来查看邮箱提供商的日志,以排查邮件投递问题。有些情况下,邮箱提供商会因为以前退回的邮件而阻止投递。一些邮箱提供商会维护一个抑制列表,出于多种原因不发送邮件。你可以在这里了解更多信息:https://sendgrid.com/en-us/blog/what-is-a-suppression-list
🌐 The email provider's logs are the next place to look for email delivery issues. There are cases where the email provider blocks the delivery due to past bounced-back emails. Some email providers maintain a suppression list for not sending emails due to several reasons. You can read more about it here - https://sendgrid.com/en-us/blog/what-is-a-suppression-list
2. 用户的邮箱服务器问题 #
🌐 2. Issues with the user's email server
为了安全和防垃圾邮件的原因,很多邮件防火墙会维护一个IP和域名的拒收名单。有时候,它们会阻止来自未知地址、带有某些关键词的邮件,例如密码重置、验证链接等。在这种情况下,可以让用户联系他们的邮件服务器管理员,看看是否阻止了你的邮件域名或者把收到的邮件隔离了。如果你使用默认提供商,邮件域名是 supabase.io。这里有一些关于邮件防火墙的信息 - https://mailchimp.com/help/about-email-firewalls/.
🌐 Many email firewalls maintain a denylist of IPs and domain names for security reasons and as spam filters. Sometimes, they block incoming emails from unknown addresses with certain keywords such as password reset, verification link, etc. In these cases, ask the user to check with their email server admin to see if they are blocking your email domain or quarantining the incoming emails. If you use the default provider, the email domain is supabase.io. Some information on email firewalls are available here - https://mailchimp.com/help/about-email-firewalls/.
还有其他明显的失败原因,比如消息被归入垃圾邮件。有时候默认的服务提供商也会出现这种情况。因此(以及其他原因),你最好配置自己邮箱服务提供商,以便控制邮件的发送。 参考资料: 配置自定义 SMTP - https://supabase.com/docs/guides/auth/auth-smtp
🌐 There are other obvious failure reasons, including a message going to spam. These can sometimes happen with a default provider. For this reason (among others), you should configure your own email provider to have control over email delivery. References: Configure a Custom SMTP - https://supabase.com/docs/guides/auth/auth-smtp