Unable to send email when using Port 465 as SMTP port on inSync Server
This article applies to:
- OS: Windows and iOS
- Product edition: inSync On-Premises
If you have configured the SMTP port to be port 465 under your email setting on inSync Management Console, the email delivery may fail.
When you try and send a test email from Settings > Email > Edit > Send test email, it would fail with the below error:
The following traceback is generated at C:\ProgramData\Druva\inSyncCloud\logs\CPortal.log
[ERROR] Error <class 'smtplib.SMTPServerDisconnected'>:Connection unexpectedly closed. Traceback -Traceback (most recent call last):
File "inSyncWWWLib\Email.pyc", line 116, in send_test_email
File "inSyncLib\inSyncSMTP.pyc", line 118, in send_email
File "inSyncLib\inSyncSMTP.pyc", line 150, in send_email_lock
File "smtplib.pyc", line 251, in __init__
File "smtplib.pyc", line 312, in connect
File "smtplib.pyc", line 363, in getreply
SMTPServerDisconnected: Connection unexpectedly closed
By design, inSync does not support port 465 as it is not RFC compliant and is a non-standard port for SMTP communication.