"SSL23_GET_SERVER_HELLO:未知协议"尝试访问Outlook SMTP服务器时出错 [英] "SSL23_GET_SERVER_HELLO:unknown protocol" Error Trying to Reach Outlook smtp Server

查看:139
本文介绍了"SSL23_GET_SERVER_HELLO:未知协议"尝试访问Outlook SMTP服务器时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从iOS应用程序中的Outlook帐户发送电子邮件.我正在使用Mailcore2和Outlook的Live-SDK.我能够接收电子邮件,但是在尝试发送电子邮件时收到错误消息:无法建立与服务器的稳定连接".

要调查此问题,我进入终端并尝试通过SSL连接:

openssl s_client -crlf -connect smtp-mail.outlook.com:587

我回来的答复是:

error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown  protocol:/SourceCache/OpenSSL098/OpenSSL098-50/src/ssl/s23_clnt.c:607

我不确切知道此错误的含义,经过一番搜索后,我发现对此问题的常见回答是,我尝试连接的服务器可能不支持必要的SSL协议.此网站: http://foundeo.com/products/iis-weak- ssl-ciphers/test.cfm 允许您测试为特定域启用了哪些SSL协议.我发现使用此功能禁用了SSLV2,同时也禁用了SSLV3.

我不清楚这是什么意思,或者我可能需要做些什么才能连接到该服务器.感谢您的帮助.

解决方案

到端口587的SMTP连接开始未加密.如果服务器支持,以后可以在SMTP会话中使用STARTTLS命令关闭加密.

openssl对于某些协议(包括SMTP)支持STARTTLS.它需要-starttls smtp命令行选项,如 https://stackoverflow.com/a/14645854/2139766 中所述. >


Outlook.com似乎不支持smtps: http://windows.microsoft.com/zh-我们/windows/outlook/send-receive-from-app

I'm trying to send emails from an Outlook account in my iOS application. I'm using Mailcore2 and Outlook's Live-SDK. I am able to receive emails, but get an error when I try to send emails: "a stable connection to the server could not be established".

To investigate the issue, I went into the terminal and tried to connect via SSL:

openssl s_client -crlf -connect smtp-mail.outlook.com:587

The response I got back was:

error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown  protocol:/SourceCache/OpenSSL098/OpenSSL098-50/src/ssl/s23_clnt.c:607

I don't know exactly what this error means, after a bit of searching I found that a common response to this issue was that the server I am trying to reach may not support a necessary SSL protocol. This site: http://foundeo.com/products/iis-weak-ssl-ciphers/test.cfm allows you to test which SSL protocols are enabled for a particular domain. Using this I found that SSLV2 is disabled and SSLV3 is also disabled.

I not clear on what all this means or what I might need to do to connect to this server. Any help is appreciated.

解决方案

SMTP connections to port 587 starts unencrypted. Encryption may be turned out later using STARTTLS command in SMTP session if server supports it.

openssl supports STARTTLS for some protocols including SMTP. It requires -starttls smtp command line options as described in https://stackoverflow.com/a/14645854/2139766


Outlook.com does not seem to support smtps: http://windows.microsoft.com/en-us/windows/outlook/send-receive-from-app

这篇关于"SSL23_GET_SERVER_HELLO:未知协议"尝试访问Outlook SMTP服务器时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆