Password Reset 504 Gateway Time-out nginx

I am trying to establish the connection between SMTP server and LMS. My users are not able to create new accounts and old users are not able to reset their password.

Step I followed for configuration of SMTP connection:

  1. Added the following lines to config.yml:
    SMTP_HOST: smtp.google.com
    SMTP_PASSWORD: EmailPassword
    SMTP_PORT: 587
    SMTP_USERNAME: support@fakemail.com (We use Google Email Server)
    SMTP_USE_TLS: true

  2. Changed the “Allow less secure apps” to “On”.

  3. local quickstart

  4. Reset Password by entering a registered email id.

  5. When I click on Recover password, it does not respond for some time.

  6. I get 504 Gateway Time-out nginx error.

I have been stuck in this step since a long time. Can someone help with this?

@regis: This is my new thread. Last time I tried to hijack someone else’s thread. Hope you can help me with this.

Are you using an App Password as value for SMTP_PASSWORD? 2-step verification became mandatory some time ago and with 2-Step Verification, less secure apps may be blocked from accessing your Google Account. App Passwords are a way to let the blocked app access your Google Account. I hope this helps you to resolve your issue.

According to the Google docs, the SMTP server host should be smtp.gmail.com, not smtp.google.com: Send email from a printer, scanner, or app - Google Workspace Admin Help
Can you try that?

Thanks, @regis. Simply changing smtp.google.comsmtp.gmail.com worked.
Thanks for such a prompt reply.