当前位置:网站首页>Unrecognized SSL message, plaintext connection?
Unrecognized SSL message, plaintext connection?
2022-07-03 02:00:00 【爱琴孩】
前言
昨天快下班了,一同事在群里发了一个异常日志,内容如下
发送邮件失败:{}
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:710)
at sun.security.ssl.InputRecord.read(InputRecord.java:527)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:619)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:393)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:217)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2160)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:726)
at javax.mail.Service.connect(Service.java:366)报错日志是一个发送邮件功能,他怀疑是不是邮件内容中包含了转义字符,导致有的邮件可以正常发送,有的邮件发送失败。
问题本质
看这异常日志,像是SSL解析问题,涉及邮件发送的服务之前都升级为SSL了,服务都已经上线了,发送邮件相关代码理论上是没问题的,后来想到邮件发送的25端口和465端口,报着试试的态度,去集成环境服务器上查看了下邮件服务器的配置,真相大白了,66服务器上邮箱端口居然是25的,而169服务器上的端口是465的,服务端两个节点,请求在两个节点上轮询,这就解释了,为啥有的邮件发送是ok的。显然将25端口改为465就ok了。
在排查问题的时候,经常会出现偶现问题,这时候就要考虑环境的是否有多节点,节点环境、配置是否一致。之前还出现过mq配置错的,测试环境的mq消费了集成环境的消息问题,所以在排查问题的时候要冷静,要看异常日志的实际报错信息,从而再排查问题。
具体邮件支持SSL相关信息,可以查看邮件发送工具类
边栏推荐
- 自定义组件、使用npm包、全局数据共享、分包
- Analyzing several common string library functions in C language
- Rockchip3399 start auto load driver
- easyPOI
- Distributed transaction solution
- Network security - Information Collection
- Network security - DNS spoofing and phishing websites
- stm32F407-------DMA
- A 30-year-old software tester, who has been unemployed for 4 months, is confused and doesn't know what to do?
- Introduce in detail how to communicate with Huawei cloud IOT through mqtt protocol
猜你喜欢

stm32F407-------IIC通讯协议

Depth (penetration) selector:: v-deep/deep/ and > > >

Learn BeanShell before you dare to say you know JMeter

stm32F407-------ADC

udp接收队列以及多次初始化的测试

easyPOI

Technology sharing | Frida's powerful ability to realize hook functions
![[fluent] hero animation (hero animation use process | create hero animation core components | create source page | create destination page | page Jump)](/img/68/65b8c0530cfdc92ba4f583b0162544.gif)
[fluent] hero animation (hero animation use process | create hero animation core components | create source page | create destination page | page Jump)

Wechat applet development tool post net:: err_ PROXY_ CONNECTION_ Failed agent problem

8 free, HD, copyright free video material download websites are recommended
随机推荐
DQL basic operation
[shutter] bottom navigation bar implementation (bottomnavigationbar bottom navigation bar | bottomnavigationbaritem navigation bar entry | pageview)
Y54. Chapter III kubernetes from introduction to mastery -- ingress (27)
微信小程序開發工具 POST net::ERR_PROXY_CONNECTION_FAILED 代理問題
Distributed transaction solution
[leetcode] 797 and 1189 (basis of graph theory)
Su Shimin: 25 principles of work and life
疫情当头,作为Leader如何进行团队的管理?| 社区征文
《上市风云》荐书——唯勇气最可贵
iptables 4层转发
Cfdiv2 Fixed Point Guessing - (2 points for Interval answer)
深度(穿透)选择器 ::v-deep/deep/及 > > >
Kotlin middle process understanding and Practice (II)
Comment communiquer avec Huawei Cloud IOT via le Protocole mqtt
502 (bad gateway) causes and Solutions
es6 filter() 数组过滤方法总结
When the epidemic comes, how to manage the team as a leader| Community essay solicitation
Analyzing several common string library functions in C language
Solution for processing overtime orders (Overtime unpaid)
DML Foundation