Hello, I have Karaf 4.0.2 and decanter 1.1.0 installed with sla-checker and e-mail alert.
I configured the e-mail alert with the following properties: # # Decanter SLA e-mail alerter configuration # # From e-mail address [email protected] # To e-mail address [email protected] # Hostname of the SMTP server host=smtp.office365.com # Port of the SMTP server port=587 # enable SMTP auth auth=true # enable starttls and ssl starttls=true ssl=false # Optionally, username for the SMTP server username=<username> # Optionally, password for the SMTP server password=<password> However I keep getting the error below. I tried to connect to gmail and got the same error there. Is there any other configuration we need to do to get the e-mail alert to work? I know the username and password is correct as I have used them to login to the respective accounts. 016-11-07 14:23:54,067 | ERROR | Thread-31 | EmailAlerter | Can't send the alert e-mail javax.mail.AuthenticationFailedException: failed to connect, no password specified? at javax.mail.Service.connect(Service.java:329)[74:javax.mail:1.4.7] at javax.mail.Service.connect(Service.java:176)[74:javax.mail:1.4.7] at javax.mail.Service.connect(Service.java:125)[74:javax.mail:1.4.7] at javax.mail.Transport.send0(Transport.java:194)[74:javax.mail:1.4.7] at javax.mail.Transport.send(Transport.java:124)[74:javax.mail:1.4.7] at org.apache.karaf.decanter.sla.email.EmailAlerter.handleEvent(EmailAlerter.java:101)[81:org.apache.karaf.decanter.sla.email:1.1.0] at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:415)[84:org.apache.karaf.services.eventadmin:4.0.2] at org.apache.felix.eventadmin.impl.tasks.HandlerTask.run(HandlerTask.java:90)[84:org.apache.karaf.services.eventadmin:4.0.2] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_71] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_71] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_71] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_71] at java.lang.Thread.run(Thread.java:745)[:1.8.0_71] 2016-11-07 14:23:54,052 | ERROR | Thread-26 | EmailAlerter | Can't send the alert e-mail javax.mail.AuthenticationFailedException: failed to connect, no password specified? at javax.mail.Service.connect(Service.java:329)[74:javax.mail:1.4.7] at javax.mail.Service.connect(Service.java:176)[74:javax.mail:1.4.7] at javax.mail.Service.connect(Service.java:125)[74:javax.mail:1.4.7] at javax.mail.Transport.send0(Transport.java:194)[74:javax.mail:1.4.7] at javax.mail.Transport.send(Transport.java:124)[74:javax.mail:1.4.7] at org.apache.karaf.decanter.sla.email.EmailAlerter.handleEvent(EmailAlerter.java:101)[81:org.apache.karaf.decanter.sla.email:1.1.0] at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:415)[84:org.apache.karaf.services.eventadmin:4.0.2] at org.apache.felix.eventadmin.impl.tasks.HandlerTask.run(HandlerTask.java:90)[84:org.apache.karaf.services.eventadmin:4.0.2] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_71] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_71] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_71] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_71] -- View this message in context: http://karaf.922171.n3.nabble.com/Decanater-alert-e-mail-configuration-tp4048599.html Sent from the Karaf - User mailing list archive at Nabble.com.
