Smtp notification

would let me know how to solve the below issue

Garylog couldn t connect to server smtp.office365.com, connection is failed

please any suggestion thanks

GRAYLOG_TRANSPORT_EMAIL_ENABLED=true
GRAYLOG_TRANSPORT_EMAIL_HOSTNAME=smtp.office365.com
GRAYLOG_TRANSPORT_EMAIL_PORT=587
GRAYLOG_TRANSPORT_EMAIL_USE_AUTH=true
GRAYLOG_TRANSPORT_EMAIL_USE_TLS=true

GRAYLOG_TRANSPORT_EMAIL_USE_SSL=true
GRAYLOG_TRANSPORT_EMAIL_AUTH_USERNAME=*********************
GRAYLOG_TRANSPORT_EMAIL_AUTH_PASSWORD=***************
GRAYLOG_TRANSPORT_EMAIL_SUBJECT_PREFIX=[graylog]
GRAYLOG_TRANSPORT_EMAIL_FROM_EMAIL=*****************

What’s the exact error message from the logs of your Graylog node(s)?

I guess this should be set to false.

ERROR: org.graylog2.alarmcallbacks.EmailAlarmCallback - Alarm callback has email recipients and is triggered, but sending emails failed
org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.office365.com:587
        at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1469) ~[graylog.jar:?]
        at org.apache.commons.mail.Email.send(Email.java:1496) ~[graylog.jar:?]
        at org.graylog2.alerts.FormattedEmailAlertSender.sendEmail(FormattedEmailAlertSender.java:202) ~[graylog.jar:?]
        at org.graylog2.alerts.FormattedEmailAlertSender.sendEmails(FormattedEmailAlertSender.java:227) ~[graylog.jar:?]
        at org.graylog2.alerts.FormattedEmailAlertSender.sendEmails(FormattedEmailAlertSender.java:162) ~[graylog.jar:?]
        at org.graylog2.alarmcallbacks.EmailAlarmCallback.call(EmailAlarmCallback.java:105) [graylog.jar:?]
        at org.graylog2.rest.resources.alarmcallbacks.AlarmCallbacksResource.test(AlarmCallbacksResource.java:150) [graylog.jar:?]
        at sun.reflect.GeneratedMethodAccessor385.invoke(Unknown Source) ~[?:?]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_72-internal]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_72-internal]
        at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) [graylog.jar:?]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144) [graylog.jar:?]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161) [graylog.jar:?]
        at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160) [graylog.jar:?]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99) [graylog.jar:?]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389) [graylog.jar:?]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347) [graylog.jar:?]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) [graylog.jar:?]
        at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326) [graylog.jar:?]
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) [graylog.jar:?]
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) [graylog.jar:?]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:315) [graylog.jar:?]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:297) [graylog.jar:?]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:267) [graylog.jar:?]
        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) [graylog.jar:?]
        at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) [graylog.jar:?]
        at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154) [graylog.jar:?]
        at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:384) [graylog.jar:?]
        at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:224) [graylog.jar:?]
        at com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176) [graylog.jar:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_72-internal]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_72-internal]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72-internal]
Caused by: javax.mail.MessagingException: Could not connect to SMTP host: smtp.office365.com, port: 587
        at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2120) ~[graylog.jar:?]
        at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:712) ~[graylog.jar:?]
        at javax.mail.Service.connect(Service.java:388) ~[graylog.jar:?]
        at javax.mail.Service.connect(Service.java:246) ~[graylog.jar:?]
        at javax.mail.Service.connect(Service.java:195) ~[graylog.jar:?]
        at javax.mail.Transport.send0(Transport.java:254) ~[graylog.jar:?]
        at javax.mail.Transport.send(Transport.java:124) ~[graylog.jar:?]
        at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1459) ~[graylog.jar:?]
        ... 32 more
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
        at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:710) ~[?:1.8.0_72-internal]
        at sun.security.ssl.InputRecord.read(InputRecord.java:527) ~[?:1.8.0_72-internal]
        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) ~[?:1.8.0_72-internal]
        at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) ~[?:1.8.0_72-internal]
        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) ~[?:1.8.0_72-internal]
        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) ~[?:1.8.0_72-internal]
        at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:598) ~[graylog.jar:?]
        at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:372) ~[graylog.jar:?]
        at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:217) ~[graylog.jar:?]
        at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2084) ~[graylog.jar:?]
        at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:712) ~[graylog.jar:?]
        at javax.mail.Service.connect(Service.java:388) ~[graylog.jar:?]
        at javax.mail.Service.connect(Service.java:246) ~[graylog.jar:?]
        at javax.mail.Service.connect(Service.java:195) ~[graylog.jar:?]
        at javax.mail.Transport.send0(Transport.java:254) ~[graylog.jar:?]
        at javax.mail.Transport.send(Transport.java:124) ~[graylog.jar:?]
        at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1459) ~[graylog.jar:?]
        ... 32 more

See my previous reply:

yes yes i resolved this problem thank you very much

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.