Confluence found exception in atlassian-confluence.log
Asked by Willam Won:

2014-12-11 14:38:10,741 ERROR \[scheduler_Worker-8\] \[atlassian.core.task.AbstractErrorQueuedTaskQueue\] handleException com.atlassian.mail.MailException: javax.mail.AuthenticationFailedException: 526 Authentication failure\[0\]

com.atlassian.mail.MailException: javax.mail.AuthenticationFailedException: 526 Authentication failure\[0\]

at com.atlassian.confluence.jmx.JmxSMTPMailServer.doSendWithMessageIdSupport(JmxSMTPMailServer.java:141)  
at com.atlassian.confluence.jmx.JmxSMTPMailServer.send(JmxSMTPMailServer.java:86)  
at com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem.send(AbstractMailNotificationQueueItem.java:144)  
at com.atlassian.confluence.mail.template.PreRenderedMailNotificationQueueItem.send(PreRenderedMailNotificationQueueItem.java:213)  
at com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem.execute(AbstractMailNotificationQueueItem.java:114)  
at com.atlassian.core.task.AbstractErrorQueuedTaskQueue$TaskDecorator.execute(AbstractErrorQueuedTaskQueue.java:100)  
at com.atlassian.core.task.AbstractTaskQueue.flush(AbstractTaskQueue.java:38)  
at com.atlassian.core.task.AbstractErrorQueuedTaskQueue.flush(AbstractErrorQueuedTaskQueue.java:30)  
at com.atlassian.quartz.jobs.TaskQueueFlushJob.doExecute(TaskQueueFlushJob.java:32)  
at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:88)  
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)  
at com.atlassian.confluence.setup.quartz.DelegatingClusterAwareQuartzJobBean.executeJob(DelegatingClusterAwareQuartzJobBean.java:16)  
at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(AbstractClusterAwareQuartzJobBean.java:65)  
at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:47)  
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)  
at org.quartz.core.JobRunShell.run(JobRunShell.java:199)  
at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20)  
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)  
Caused by: javax.mail.AuthenticationFailedException: 526 Authentication failure\[0\]

at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:823)  
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:756)  
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:673)  
at javax.mail.Service.connect(Service.java:317)  
at javax.mail.Service.connect(Service.java:176)  
at javax.mail.Service.connect(Service.java:125)  
at com.atlassian.confluence.jmx.JmxSMTPMailServer.doSendWithMessageIdSupport(JmxSMTPMailServer.java:112)  
... 17 more


Answers:
author: rrudnicki
body: Hi Willam,

Could you confirm if do your email server is allowing relay from Confluence?

In addition, you can enable de debug email on confluence so we can gather more details about what is happening. On this link you can find how to do that:

<https://confluence.atlassian.com/display/CONFKB/Mail+Troubleshooting>

I hope it helps.

Regards,

Renato Rudnicki


author: William Zanchet [Atlassian]
body: Hey Will,  

If you're trying to connect to a MS Exchange, the knowledge base that you want to follow is this one:  

<https://confluence.atlassian.com/display/JIRAKB/Authenticate+Failed+Error+when+Connecting+to+Exchange>  

Cheers,  
WZ


author: Gorka Puente _Appfire_
body: Hi @Willam Won,

It seems an error on mail authentication. Check this

<https://confluence.atlassian.com/display/JIRAKB/Sending+a+Test+Email+Fails+due+to+javax.mail.AuthenticationFailedException>

Check user and password in the mail configuration.

Regards,

Gorka


Tags: confluence-administration