Is it possible send alerts by email using that? I have to sign auto certificate but this isn’t possible because I dont know how do it.
Log:
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:710) ~[?:1.8.0_131]
at sun.security.ssl.InputRecord.read(InputRecord.java:527) ~[?:1.8.0_131]
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) ~[?:1.8.0_131]
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) ~[?:1.8.0_131]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) ~[?:1.8.0_131]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) ~[?:1.8.0_131]
at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:543) ~[graylog.jar:?]
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:348) ~[graylog.jar:?]
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:215) ~[graylog.jar:?]
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2019) ~[graylog.jar:?]
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:697) ~[graylog.jar:?]
at javax.mail.Service.connect(Service.java:386) ~[graylog.jar:?]
at javax.mail.Service.connect(Service.java:245) ~[graylog.jar:?]
at javax.mail.Service.connect(Service.java:194) ~[graylog.jar:?]
at javax.mail.Transport.send0(Transport.java:253) ~[graylog.jar:?]
at javax.mail.Transport.send(Transport.java:124) ~[graylog.jar:?]
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1411) ~[graylog.jar:?]
Yes I saw it but I prefered do it easier. I am using a banahosting cpanel. I created an account there and I’m trying to use that details to send emails but… not luck
My config:
The Graylog server encountered an error while trying to send an email. This is the detailed error message: org.apache.commons.mail.EmailException: Sending the email to the following server failed : mail.DOMAIN:25 (javax.mail.MessagingException: Could not connect to SMTP host: mail.DOMAIN, port: 25; nested exception is: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?)
Test with telnet:
telnet mail.DOMAIN 25
Trying 107.6.184.51…
Connected to DOMAIN.
Escape character is ‘^]’. 220-sh-europe120.banahosting.com ESMTP Exim 4.89 #1 Thu, 08 Jun 2017 01:49:01 -0500
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.