Deadwood-ai / deadwood-api

Main FastAPI application for the deadwood backend
GNU General Public License v3.0
0 stars 0 forks source link

Use a custom SMTP Server because superbase SMTP rate limit is too restrictive #39

Closed JesJehle closed 2 months ago

JesJehle commented 2 months ago

As I understood in #29 the current rate limit is 3 per hour. We also got a user who could not register:

I try to sign up but no confirmation was sent to me.

I just tried to debug the registration process and got a rate limit error. Does this mean only 3 people could register in one hour? Superbase itself says that their SMTP Server is only for development; hence, I think we should move to a custom provider instead, since the current limit would make the application unusable for a larger number of users. They suggest:

@mmaelicke @cmosig What do you think?

JesJehle commented 2 months ago

I just realized that we have a custom SMTP from 1blu enabled: https://supabase.com/dashboard/project/ijuphmnaebfdzsfrnsrn/settings/auth image

@cmosig did you configured this? Is it working? Then we could increase the rate limit?

mmaelicke commented 2 months ago

This is bound to deadtrees.earth. I tried to set this up over my phone. Thus, you can try to increase the Limit. I can setup this properly after my vacation, if this does not yet work properly

mmaelicke commented 2 months ago

There is no need to pay another provider. I am already paying 1blu for the domain and smtp server

JesJehle commented 2 months ago

Awesome! I updated the rate limit to 30 per minute. Seems to work for me. I could register a new user.