Rank 3: Container
How to recovery password if I forget it and didn't setup the SMTP in self-hosting
Votes
0
Replies
11
Participants
Unknown
Messages
12
Rank 3: Container
How to recovery password if I forget it and didn't setup the SMTP in self-hosting
Admin
Trigger the forgot password and then check the docker logs for the appwrite-worker-mails container for the url. You might have to set the SMTP host env var to some non empty string
Rank 3: Container
SMTP Error: Could not connect to SMTP host.
Rank 3: Container
This looks like the output of docker compose exec appwrite doctor
What you need to do is
Make sure you're in the appwrite directory where the docker-compose.yml stays by doing
$ cd appwriteEdit the .env file in the appwrite directory.
$ nano .envChange the value of _APP_SMTP_HOST to any truthy value
_APP_SMTP_HOST=abc
Restart appwrite containers to use the new environment variables by doing
$ docker compose up -dP.S. Make sure you're in the appwrite directory
Trigger the Forgot Password from the login screen, and then check the logs for the container by doing
docker logs appwrite-worker-mailsYou should then see the email that was generated, which will include the link to reset the password. Copy it, and reset your password.
Rank 3: Container
I can see the reset link in log
Rank 3: Container
And able to reset now
Rank 3: Container
But it won’t send email out
Rank 3: Container
I followed the video of mailgun created by community
Rank 3: Container
This is a separate story. Since your issue has been resolved, you should create another post.
[CLOSED] Forget Password and No SMTP Setup