Hey all,
Has anybody here been successful connecting to Microsoft Exchange 2010 servers usnig STunnel? Here is what I have in my stunnel.conf:
********************
cert = stunnel.pem
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
client = yes
[ssmtp]
accept = 127.0.0.1:587
connect = smtp.ex3.secureserver.net:587
*******************
And this is what I see in the log:
*******************
2016.02.03 18:55:14 LOG5[63]: Service [ssmtp] accepted connection from 127.0.0.1:57314
2016.02.03 18:55:14 LOG5[63]: s_connect: connected 184.168.131.205:587
2016.02.03 18:55:14 LOG5[63]: Service [ssmtp] connected remote server from 10.10.10.10:57315
2016.02.03 18:55:14 LOG3[63]: SSL_connect: 140770FC: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
2016.02.03 18:55:14 LOG5[63]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket
*******************
I am quite sure that my server address and port is correct, and obviously the other application is pushing data to stunnel. Seems like what’s coming back from server is puzzling. Any help regarding this?
Thanks, Mahdi.