27.11.2020, 14:43
This can possibly be some firewall/router issue. Try this script and post what you get in Logs tab:
You can also replace 'smtp.gmail.com', 465 with another host/port with SSL support to test the connection.
Code:
require('socket')
ssl = require('ssl')
s = socket.tcp()
s:settimeout(5)
res, err = s:connect('smtp.gmail.com', 465)
log('connect', res, err)
if res then
res, err = ssl.wrap(s, { mode = 'client', protocol = 'tlsv12' })
log('wrap', res, err)
if res then
s = res
s:settimeout(5)
res, err = s:dohandshake()
log('handshake', res, err)
if res then
res, err = s:receive('*l')
log('receive', res, err)
end
end
end
s:close()