Unable to send emails (SMTP) amazon SES

I am unable to receive account activiation mails.
i get this error in the logs.

2021-07-21 22:51:03,161 ERROR 107 [edx_ace.channel.django_email] [user 11] [ip] django_email.py:70 - Connection unexpectedly closed
Traceback (most recent call last):
  File "/openedx/venv/lib/python3.8/site-packages/edx_ace/channel/django_email.py", line 68, in deliver
  File "/openedx/venv/lib/python3.8/site-packages/django/core/mail/message.py", line 306, in send
    return self.get_connection(fail_silently).send_messages([self])
  File "/openedx/venv/lib/python3.8/site-packages/django/core/mail/backends/smtp.py", line 103, in send_messages
    new_conn_created = self.open()
  File "/openedx/venv/lib/python3.8/site-packages/django/core/mail/backends/smtp.py", line 63, in open
    self.connection = self.connection_class(self.host, self.port, **connection_params)
  File "/opt/pyenv/versions/3.8.6/lib/python3.8/smtplib.py", line 253, in __init__
    (code, msg) = self.connect(host, port)
  File "/opt/pyenv/versions/3.8.6/lib/python3.8/smtplib.py", line 341, in connect
    (code, msg) = self.getreply()
  File "/opt/pyenv/versions/3.8.6/lib/python3.8/smtplib.py", line 398, in getreply
    raise SMTPServerDisconnected("Connection unexpectedly closed")
smtplib.SMTPServerDisconnected: Connection unexpectedly closed
[p2021-07-21 22:51:03,165 INFO 107 [celery.app.trace] [user None] [ip None] trace.py:125 - Task common.djangoapps.student.tasks.send_activation_email[7a3f3d10-ccca-4a4c-a4e5-7418167e5f8e] succeeded in 30.141899406000448s: None

i took ses out of the sandbox and changed tthe port to 587. That seems to have solved it

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.