Email send failed. Error 3392 ssl3_get_record:wrong version number

I have a switch that is triggering to send an email alert and have verified the switch is working. I am running node-RED v0.20.7. The email send node is giving me this error:

image

Error: 3392:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:332:

Any ideas?

you might want to post your flow and also versions of NR, NPM etc

Craig

Based on the error it appears you are running on Windows. It’s using openssl to connect to your email server. Does your email server still support SSL3? If no, update your OpenSSL.exe to something that supports newer versions of TLS. If yes, are you by chance behind a proxy?

Here’s one of the reasons you shouldn’t use SSL3 nowadays, by the way: it is vulnerable to the POODLE attack.

I am running windows 10. I currently have NR running on this computer to mock a setup (when I get there I will be placing NR on an application server)

I am attempting to use the outgoing mail server smtp.office365.com. I did not make an attempt to choose how I am connecting to smtp.office365.com besides the options in the email node.

What is odd is that the directory that the error is referencing does not exist on this machine.

NR version is 0.20.7
node.js version 12.7.0
NPM version is 6.10.0

Flow is:


[{"id":"de8e1018.2dcb8","type":"ui_gauge","z":"7a869bd5.b34bf4","name":"Temperature","group":"99eb2e52.d184f","order":3,"width":"0","height":"0","gtype":"gage","title":"Temperature","label":"ÂşF","format":"{{value | number: 2}}","min":0,"max":"100","colors":["#00b500","#ffff00","#ca3838"],"seg1":"","seg2":"","x":670,"y":1360,"wires":[ ]},{"id":"8a591aac.e8ac08","type":"ncd-wireless-node","z":"7a869bd5.b34bf4","name":"Temp. & Humid. Sensor 1","connection":"110d8045.25f968","config_comm":"110d8045.25f968","addr":"00:13:a2:00:41:a3:d1:cd","sensor_type":"1","auto_config":true,"node_id":0,"delay":"300","destination":"0000FFFF","power":4,"retries":10,"pan_id":"7FFF","change_enabled":"","change_pr":"0","change_interval":"0","cm_calibration":"60.6","bp_altitude":"0","bp_pressure":"0","bp_temp_prec":"0","bp_press_prec":"0","amgt_accel":"0","amgt_mag":"0","amgt_gyro":"0","impact_accel":"0","impact_data_rate":"4","impact_threshold":25,"impact_duration":1,"activ_interr_x":1,"activ_interr_y":2,"activ_interr_z":4,"activ_interr_op":8,"filtering":0,"data_rate":5,"time_series":0,"reading_type":1,"x":280,"y":1440,"wires":[["d8f57787.eb04f8","e37af0e2.b44808","d3ca24d0.76dc3"]]},{"id":"d8f57787.eb04f8","type":"change","z":"7a869bd5.b34bf4","name":"CtF","rules":[{"t":"set","p":"payload","pt":"msg","to":"msg.payload.temperature*1.8+32","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":1440,"wires":[["de8e1018.2dcb8","be167d57.d0f3d8","254a654f.1523ea"]]},{"id":"be167d57.d0f3d8","type":"change","z":"7a869bd5.b34bf4","name":"Get Local Settings","rules":[{"t":"set","p":"flow_settings","pt":"msg","to":"app_settings","tot":"flow"},{"t":"set","p":"enable_alert","pt":"msg","to":"flow_settings.enable_alert","tot":"msg"},{"t":"set","p":"min","pt":"msg","to":"flow_settings.min_temp","tot":"msg"},{"t":"set","p":"max","pt":"msg","to":"flow_settings.max_temp","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"Temperature Alert in My Office!","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":1440,"wires":[["69bb9292.107f34"]]},{"id":"69bb9292.107f34","type":"switch","z":"7a869bd5.b34bf4","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"max","vt":"msg"},{"t":"lt","v":"min","vt":"msg"}],"checkall":"true","repair":false,"outputs":2,"x":940,"y":1440,"wires":[["3a062fd2.a5555"],["2d98a70.5ce8e5a"]]},{"id":"3a062fd2.a5555","type":"template","z":"7a869bd5.b34bf4","name":"High Alert","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"The temperature is above acceptable limits!! ({{payload}})","output":"str","x":1140,"y":1400,"wires":[["33a1819.e544cfe"]]},{"id":"2d98a70.5ce8e5a","type":"template","z":"7a869bd5.b34bf4","name":"Low Alert","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"The temperature is below acceptable limits!! ({{payload}})","output":"str","x":1150,"y":1460,"wires":[["33a1819.e544cfe"]]},{"id":"33a1819.e544cfe","type":"delay","z":"7a869bd5.b34bf4","name":"1 msg / 10 seconds","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1420,"y":1440,"wires":[["da102e37.1bc8e8","3bc6b0d3.081cb"]]},{"id":"da102e37.1bc8e8","type":"ui_toast","z":"7a869bd5.b34bf4","position":"dialog","displayTime":"3","highlight":"","outputs":1,"ok":"OK","cancel":"","topic":"","name":"Dashboard Notification","x":1730,"y":1380,"wires":[[]]},{"id":"3bc6b0d3.081cb","type":"switch","z":"7a869bd5.b34bf4","name":"","property":"enable_alert","propertyType":"msg","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":1700,"y":1520,"wires":[["bcab2eaa.aa6368","aae32725.f6e7f"]]},{"id":"bcab2eaa.aa6368","type":"e-mail","z":"7a869bd5.b34bf4","server":"smtp.office365.com","port":"587","secure":true,"tls":true,"name":"","dname":"Send emal alert","x":1920,"y":1520,"wires":[]},{"id":"aae32725.f6e7f","type":"debug","z":"7a869bd5.b34bf4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"enable_alert","targetType":"msg","x":1870,"y":1620,"wires":[]},{"id":"254a654f.1523ea","type":"debug","z":"7a869bd5.b34bf4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":690,"y":1560,"wires":[]},{"id":"99eb2e52.d184f","type":"ui_group","z":"","name":"Temperature","tab":"c9c6123a.6c1d9","disp":true,"width":"6","collapse":false},{"id":"110d8045.25f968","type":"ncd-gateway-config","z":"","name":"Wireless Modem","comm_type":"tcp","ip_address":"10.0.1.185","tcp_port":"2101","port":"","baudRate":"115200","pan_id":"7FFF","rssi":false},{"id":"c9c6123a.6c1d9","type":"ui_tab","z":"","name":"Room 1","icon":"dashboard","disabled":false,"hidden":false}]

I suggest starting by using a version of nodejs. 12.x is not officially supported yet. Go back to 10.x to see if that helps.

Apart from that your flow is not importable. See this for how to share flows here, you can edit your previous post accordingly.

Okay scratch that, sounded like that was the issue but if that folder doesn’t exist it’s more complex. Turns out this error with half of that path is common. Are you behind a (corporate) proxy? The error is almost always hitting when you use an https proxy setting, but not connecting to an https proxy or using a non-https port.

1 Like

Changing to node.js to the latest 10.X version did not solve the problem.

In the node properties I unchecked 'Use secure connection." next to the Port field and it now works (not sure why I didn't try that to start). I do have TLS checked.

What exact purpose does 'Use secure connection.' serve? How does it function?

Secure connection means https, or in the case of email, smtp+ssl. If the server plus port you connect to isn’t ssl/tls enabled, it gives problems like the error seen here. Always make sure that your settings match up with the instructions given, in any way or shape. I learned that the hard way when writing raw SMTP calls over a socket connection to gmail’s smtp+ssl server for a school project once; the server we had to use didn’t allow us to use the internal mail server, and the php version on that server was deliberately compiled without openssl support. So raw SMTP was the result. It worked a lot better once I wrapped up the ssl calls to the correct port that did allow ssl.