Matéo - Hey! I'm trying to configure emails wit...
Hey! I'm trying to configure emails with BREVO, but it seems like it's not taking into account the environment variables:
When I try to reset the password, it says it has been sent, but I don't receive anything and it doesn't display any errors.
26 Replies
Did you send a message in french before or did I hallucinate? 😄
If you start LLDAP with verbose true, it'll dump the config that it loaded at the top of the logs. Very useful to debug whether you have the right env variables
Yes the automatic translation did not work x)
Oh, and verbose will also tell you what's happening with the email, whether it actually tried to send it or not. If the username was not found it doesn't send the email but doesn't tell you about it (since that would leak the existing users or their emails)
And the logs from trying to reset a password?
Erf, that's a cache hit 😄
It shouldn't be a get request
But a post
Can you add a comment to issue 887? Or create a new issue, it's technically a different problem
and why at one point did I still get an error when clicking on the button?
If the server attempts to send an email but fails, you get an error in the frontend. After that it probably cached the error (or a success) and then just returned the cached value
In the meantime you can clear your cache to get a proper response
Solution
That usually means that you have starttls with the SSL port or vice versa
SMTP configuration is very annoying because for them TLS means starttls, but its completely different, it's actually ssl
What should I do?
Your SMTP configuration is incorrect. You have the protocol and port mixed up. Ideally, switch everything to SSL
(the SMTP encryption for LLDAP will be TLS, but the port should be the one listed for SSL)
I deactivated it and it seems to work:
i set LLDAP_SMTP_OPTIONS__SMTP_ENCRYPTION to none
Hmm, you can, but it's highly not recommended
It was to test
It means you're not encrypting the content of the email which contains the link to change your password (and take over your account)
localhost ?
You need to set the LLDAP http url in the config
He has a hole planned 🙂
?
You have planned everything
x)
Ah yes 🙂 Well, that's not quite true, but I try 🙂