I am unable to send emails from local thinger server running on ubuntu server 16.04. I tried my private smtp server as well as gmail, noting worked… Below are the settings that are used, and logs:
The config file is:
“email” : {
“domain” : “xxx.xx”,
“type” : “smtp”,
“smtp” : {
“host” : “mail.xxx.xx”,
“port” : “587”,
“username” : “username@xxx.xx”,
“password” : “xxxx”,
“secure” : true
}
},
Log file shows that the connection can not be established:
2017-09-17T08:09:03.728358 debug [Email Interface] Sending email to 'test@xxx.xx using SMTP interface
2017-09-17T08:09:03.728461 trace [Server Module] [SMTP] Instance Registered
2017-09-17T08:09:03.728480 info [SMTP] Sending email from no-reply@xxx.xx to test@xxx.xx via SMTP server mail.xxx.xx:587
2017-09-17T08:09:03.729980 debug [SMTP] Initiating connection to mail.xxx.xxi:587 with SSL/TLS=true
It remains stuck here…
I am using private SMTP server with TLS encryption on port 587. This work well with other applications that i’m using, e.g. sSMTP where i have
mailhub=smtp.xxx.xx:587
UseTLS=YES
UseSTARTTLS=YES
AuthUser=xxx
AuthPass=xxx
Any ideas what might be wrong and how to solve that? My suspicions is that “secure” : true does not enable TLS encryption…