I have installed ODK on ubuntu20 in Linode. I have added custom mail server. and Build and restart the service container. docker compose build service && docker compose up -d service.
After adding custom mail server i am not able to create new user. Trying to reset the password its keep scrolling. and users not able to receive the mails.
Here are the attached screenshot for .env file and errors logs.
I appreciate your support.
Thanks

Thanks @yanokwa for your response.
Yes, i did the same but still getting issue. You can see the .env file smtp setting.
EMAIL_HOST=smtp.office365.com
EMAIL_PORT=587
EMAIL_SECURE=false
EMAIL_IGNORE_TLS=false
EMAIL_USER=xxx@xxx.org
EMAIL_PASSWORD=Welcome@xxx
Also i have attached the email logs. Even creating user still scrolling if we use these Smtp setting.
Thanks

Is there anyone who can help me?
Are you still getting 500 errors once you change the port? Or is the problem you are getting no errors, but the messages are not being delivered.