Using gmail smtp server for sending emails isn’t working anymore / will cease to work ending this month:
Here part of the logs trying to reset my login password:
lms_1 | 2022-05-06 06:53:19,561 INFO 40 [audit] [user None] [ip xxx.xxx.xxx.xxx] password_reset.py:608 - Password reset initiated for email edx-admin@we-teach-you.academy.
lms_1 | 2022-05-06 06:53:20,298 ERROR 40 [edx_ace.channel.django_email] [user None] [ip xxx.xxx.xxx.xxx] django_email.py:70 - (535, b'5.7.8 Username and Password not accepted. Learn more at\n5.7.8 https://support.google.com/mail/?p=BadCredentials i3-20020adff303000000b0020c5253d8fcsm3465928wro.72 - gsmtp')
lms_1 | Traceback (most recent call last):
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/edx_ace/channel/django_email.py", line 68, in deliver
lms_1 | mail.send()
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/core/mail/message.py", line 284, in send
lms_1 | return self.get_connection(fail_silently).send_messages([self])
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/core/mail/backends/smtp.py", line 102, in send_messages
lms_1 | new_conn_created = self.open()
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/core/mail/backends/smtp.py", line 69, in open
lms_1 | self.connection.login(self.username, self.password)
lms_1 | File "/opt/pyenv/versions/3.8.12/lib/python3.8/smtplib.py", line 748, in login
lms_1 | raise last_exception
lms_1 | File "/opt/pyenv/versions/3.8.12/lib/python3.8/smtplib.py", line 737, in login
lms_1 | (code, resp) = self.auth(
lms_1 | File "/opt/pyenv/versions/3.8.12/lib/python3.8/smtplib.py", line 660, in auth
lms_1 | raise SMTPAuthenticationError(code, resp)
lms_1 | smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted. Learn more at\n5.7.8 https://support.google.com/mail/?p=BadCredentials i3-20020adff303000000b0020c5253d8fcsm3465928wro.72 - gsmtp')
And I get an email from Google warning about an invalid login attempt.
This was working perfectly before…