Default clean installation Centos 8 + Jenkins Sending emails not work. No way at all. I studied forums and documentation, searched in google. I tryed
-Dmail.smtp.starttls.enable=true
and ssl-debug - mail not send. Its in log:
javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
at java.base/sun.security.ssl.HandshakeContext.<init>(HandshakeContext.java:169)
at java.base/sun.security.ssl.ClientHandshakeContext.<init>(ClientHandshakeContext.java:98)
at java.base/sun.security.ssl.TransportContext.kickstart(TransportContext.java:216)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:395)
at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:507)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:238)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1900)
Caused: javax.mail.MessagingException: Could not connect to SMTP host: smtp.yandex.ru, port: 465;
nested exception is:
javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1934)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638)
at javax.mail.Service.connect(Service.java:317)
..........
I tried to install on windows with identical mail settings - email has gone! I tryed on Ubuntu - email has gone! i tryed another variation of accounts, potrs, SSL on/off, smtp-servers - mail is not sent. I launched a sniffer (wireshark) and i see:
- jenkins send: STARTTLS
- snmp-server answers: 220 Go ahead
- jenkins send TCP-FYN packen and i see web-error "protocol is disabled or cipher suites are inappropriate"
I tryed another installation Centos 8 on another servers and I tried to do other Jenkins installations - everything starts, but mail does not work Please help me. |