2

很晚了,我很累,但稍后会提供更多细节。

问题:针对 GMail、Yahoo 和 Exchange 2003 测试 ruby​​ Mail gem 做 IMAP 的东西。GMail 很好。雅虎不错。Exchange 2003 导致 '''SSL_read:: 错误版本号''' 对 '''openssl s_client -crlf -connect myimapserver:imaps''' 的响应是;

---
No client certificate CA names sent
---
SSL handshake has read 2914 bytes and written 509 bytes
---
New, TLSv1/SSLv3, Cipher is DES-CBC3-SHA
Server public key is 1024 bit
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : TLSv1
    Cipher    : DES-CBC3-SHA
    Session-ID: A8180000B48B14E0FB6FEBC0666C72BCB03A96489A5A6865C76ABCB3E55585FE
    Session-ID-ctx: 
    Master-Key:      3C6B487D9BB2AD63928A78EAD57B305864D23A8C196D1D1D5414979E78B5D0B1E939B5F257EEFAA6D27E14FAC6AD23CE
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    Start Time: 1360581090
    Timeout   : 300 (sec)
    Verify return code: 20 (unable to get local issuer certificate)
    ---
    * OK Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.7638.1  (WDCPOST.waitomo-int.govt.nz) ready.

不安全的 IMAP 有效,但 SSL 不为端口 993 和 SSL = true 配置邮件 gem。

有任何想法吗?我一直在寻找几个小时没有找到参考。

4

1 回答 1

0

:openssl_verify_mode => 'none' 可能并不理想,但可能对你有用。在这里查看: Rails 3 ActionMailer 错误 - 主机名与服务器证书不匹配

于 2013-05-01T22:52:09.020 回答