Synology problem sending email notification
Posted: September 22nd, 2016, 10:22 am
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:
got this output:
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
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])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
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