Page 1 of 1

Synology problem sending email notification

Posted: September 22nd, 2016, 10:22 am
by chasajau
Hi all

Since I updated to DSM 6 I tried several times sending email notifications without success. I always got the error "Failed to connect to mail server" and thought the problem is my providers setup. But maybe it isn't, hopefully somebody can tell me if it is a bug or still a config issue.

To get more information about the answer from my provider I added the following line in the exception (line 86, emailer.py) to get debug log:

Code: Select all

logging.debug(errorcode[0])
got this output:

Code: Select all

2016-09-22 16:55:06,671::DEBUG::[emailer:77] Connecting to server xxx:465
2016-09-22 16:55:06,751::DEBUG::[emailer:86] 'module' object has no attribute 'SSLFakeSocket'
2016-09-22 16:55:06,751::DEBUG::[emailer:91] Non-SSL mail server detected reconnecting to server xxx:465
Is it possible that some python init function fails in ssmtplib.py?

Setup:
Synology DSM: DSM 6.0.2-8451 Update 1
Python: 2.7.11-15
Sabnzbd: 1.1.0-17
Email Provider: SMTP over SSL

Re: Synology problem sending email notification

Posted: September 22nd, 2016, 12:28 pm
by shypike
It looks like there is a problem with the Python (and OpenSSL) libs of the DSM.
Nothing we can solve, I'm afraid.
You could try to use a non-SSL port (119 normally).

Re: Synology problem sending email notification

Posted: September 26th, 2016, 2:37 am
by chasajau
Ok, so I will be patient and wait for a fix.

Thank you