它非常晚了&我很累但稍后会提供更多细节。
问题:测试ruby Mail gem对GMail,Yahoo& amp; Exchange 2003。 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端口配置的邮件gem& SSL = true。
有什么想法吗?我一直在打猎几个小时而没有找到参考。
答案 0 :(得分:0)
:openssl_verify_mode => 'none'可能不太理想,但可能适合你。 看看这里: Rails 3 ActionMailer error - hostname was not match with the server certificate