Issues Regarding smtp

Hii I hosted Open edx platform locally but not able to get authentication mail for account activation.
please help me fix following Error.

smtp-1 | 2024-03-21 11:53:40 1rnGy2-00000A-1Q H=alt3.gmail-smtp-in.l.google.com [2607:f8b0:4023:c0b::1b] Address not available
smtp-1 | 2024-03-21 11:53:40 1rnGy2-00000A-1Q H=alt4.gmail-smtp-in.l.google.com [2607:f8b0:4023:1004::1b] Address not available
smtp-1 | 2024-03-21 11:53:40 1rnGy2-00000A-1Q == patilanand3442@gmail.com R=dnslookup T=remote_smtp defer (99): Address not available
smtp-1 | 2024-03-21 11:53:58 1rnGz0-00000D-1F <= contact@local.edly.io H=(f0b8c07d7b4a) [172.18.0.9] P=esmtp S=11543 id=171102203791.29.2950214653460219722@f0b8c07d7b4a
smtp-1 | 2024-03-21 11:54:19 1rnGz0-00000D-1F H=alt2.gmail-smtp-in.l.google.com [173.194.65.27] Connection refused

Hi Anand
Have you followed the gmail setup/configuration guide here?
https://docs.tutor.edly.io/tutorials/google-smtp.html

“Less secure App access” has been removed by google can you please tell me the other alternatives.

Ah right, I forgot about that change :slight_smile: sorry I don’t normally use Gmail for sending, it’s usually preferable to control your own mail server since there may be other limitations to contend with on 3rd party/free services like gmail (rate limits, maximum emails/recipients per 24hr period, etc)

to answer your question though:
You might need to instead switch to using an app-specific password, detailed here: Sign in with app passwords - Gmail Help

It is required that you have 2-Step Verification enabled before you can generate an app-password.
The 16-character password is randomly generated by Google during the process and you can use this password instead of your main account password. The app-password is not recoverable after creating it so make a memo of the password before you close the window, otherwise you’ll have to delete and re-create it

yeah it worked Thank you so much for your help.

I’ve opened an issue on GitHub to have the documentation updated to better reflect the current Gmail requirements going forward: