SMTP Disconnected issue

Hi I have noticed a recent issue with and installation of tutor where the server is returning a disconnected setting for smtp lib

the SMTP SETTINGS in the config.yml are

RUN_SMTP: false
SMTP_HOST: external mail servername redacted
SMTP_PASSWORD: redacted
SMTP_PORT: 587
SMTP_USERNAME: redacted
SMTP_USE_TLS: true
> lms_1            | 2021-06-18 12:55:47,286 INFO 10 [audit] [user 11] [ip 31.48.108.172] password_reset.py:289 - Password reset initiated for email Redacted.
> lms_1            | 2021-06-18 12:55:47,377 ERROR 10 [edx_ace.channel.django_email] [user 11] [ip 31.48.108.172] django_email.py:95 - Connection unexpectedly closed: [Errno 104] Connection reset by peer
> lms_1            | Traceback (most recent call last):
> lms_1            |   File "/opt/pyenv/versions/3.8.6/lib/python3.8/smtplib.py", line 391, in getreply
> lms_1            |     line = self.file.readline(_MAXLINE + 1)
> lms_1            |   File "/opt/pyenv/versions/3.8.6/lib/python3.8/socket.py", line 669, in readinto
> lms_1            |     return self._sock.recv_into(b)
> lms_1            | ConnectionResetError: [Errno 104] Connection reset by peer
> lms_1            |
> lms_1            | During handling of the above exception, another exception occurred:
> lms_1            |
> lms_1            | Traceback (most recent call last):
> lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/edx_ace/channel/django_email.py", line 93, in deliver
> lms_1            |     mail.send()
> lms_1            |   File "/openedx/venv/lib/python3.8/site-packages/django/core/mail/message.py", line 306, 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 103, 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 63, in open
> lms_1            |     self.connection = self.connection_class(self.host, self.port, **connection_params)
> lms_1            |   File "/opt/pyenv/versions/3.8.6/lib/python3.8/smtplib.py", line 253, in __init__
> lms_1            |     (code, msg) = self.connect(host, port)
> lms_1            |   File "/opt/pyenv/versions/3.8.6/lib/python3.8/smtplib.py", line 341, in connect
> lms_1            |     (code, msg) = self.getreply()
> lms_1            |   File "/opt/pyenv/versions/3.8.6/lib/python3.8/smtplib.py", line 394, in getreply
> lms_1            |     raise SMTPServerDisconnected("Connection unexpectedly closed: "
> lms_1            | smtplib.SMTPServerDisconnected: Connection unexpectedly closed: [Errno 104] Connection reset by peer

With another server setup exactly the same it works fine

kind of lost on this one any suggestions?

This issue is almost certainly caused by your upstream server. You should take a look at the logs from your SMTP server.

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