unable to send test email from confluence GUI and getting MailException: javax.mail.Aut
Asked by Aamir Saeed:

Could some one advise on the below scenario:

while testing the mail form confluence GUI - send test mail . its failing   
please see the log below:

An error has occurred with sending the test email. If your mail server requires authentication, please ensure that TLS or SSL is enabled on your server for the specific mailbox. If your mail server allows anonymous connection, please remove the username and password from the configuration and try again.

com.atlassian.mail.MailException: javax.mail.AuthenticationFailedException: No authentication mechansims supported by both server and client  
at com.atlassian.confluence.jmx.JmxSMTPMailServer.doSendWithMessageIdSupport(JmxSMTPMailServer.java:120)  
at com.atlassian.confluence.jmx.JmxSMTPMailServer.send(JmxSMTPMailServer.java:79)  
at com.atlassian.confluence.admin.actions.mail.SendTestEmailAction.execute(SendTestEmailAction.java:57)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168)  
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:33)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.xwork.interceptors.XsrfTokenInterceptor.intercept(XsrfTokenInterceptor.java:100)  
at com.atlassian.confluence.xwork.ConfluenceXsrfTokenInterceptor.intercept(ConfluenceXsrfTokenInterceptor.java:29)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.security.interceptors.CaptchaInterceptor.intercept(CaptchaInterceptor.java:42)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.core.ConfluenceLicenseInterceptor.intercept(ConfluenceLicenseInterceptor.java:66)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.validation.MessageHolderInterceptor.intercept(MessageHolderInterceptor.java:37)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.util.LoggingContextInterceptor.intercept(LoggingContextInterceptor.java:44)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.core.CancellingInterceptor.intercept(CancellingInterceptor.java:21)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.xwork.HttpMethodValidationInterceptor.intercept(HttpMethodValidationInterceptor.java:68)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.security.websudo.WebSudoInterceptor.intercept(WebSudoInterceptor.java:64)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.themes.ThemeContextInterceptor.intercept(ThemeContextInterceptor.java:42)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.security.actions.PermissionCheckInterceptor.intercept(PermissionCheckInterceptor.java:96)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.setup.webwork.BootstrapAwareInterceptor.intercept(BootstrapAwareInterceptor.java:21)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.user.actions.UserAwareInterceptor.intercept(UserAwareInterceptor.java:53)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.pages.actions.CommentAwareInterceptor.intercept(CommentAwareInterceptor.java:39)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.pages.actions.PageAwareInterceptor.intercept(PageAwareInterceptor.java:68)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.spaces.actions.SpaceAwareInterceptor.intercept(SpaceAwareInterceptor.java:71)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.security.interceptors.ConfluenceAccessInterceptor.intercept(ConfluenceAccessInterceptor.java:31)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.xwork.FlashScopeInterceptor.intercept(FlashScopeInterceptor.java:21)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.core.actions.LastModifiedInterceptor.intercept(LastModifiedInterceptor.java:27)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.core.ConfluenceAutowireInterceptor.intercept(ConfluenceAutowireInterceptor.java:44)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.xwork.interceptors.TransactionalInvocation.invokeAndHandleExceptions(TransactionalInvocation.java:71)  
at com.atlassian.xwork.interceptors.TransactionalInvocation.invokeInTransaction(TransactionalInvocation.java:57)  
at com.atlassian.xwork.interceptors.XWorkTransactionInterceptor.intercept(XWorkTransactionInterceptor.java:56)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.xwork.SetupIncompleteInterceptor.intercept(SetupIncompleteInterceptor.java:61)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.atlassian.confluence.security.interceptors.SecurityHeadersInterceptor.intercept(SecurityHeadersInterceptor.java:39)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)  
at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:115)  
at com.atlassian.confluence.servlet.ConfluenceServletDispatcher.serviceAction(ConfluenceServletDispatcher.java:56)  
at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:199)  
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)  
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)  
at com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:46)  
at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:32)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)  
at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:39)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:58)  
at com.atlassian.confluence.plugins.baseurl.IncludeResourcesFilter.doFilter(IncludeResourcesFilter.java:52)  
at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:32)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:64)  
at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:37)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:58)  
at com.atlassian.labs.botkiller.BotKillerFilter.doFilter(BotKillerFilter.java:36)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:64)  
at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:37)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:58)  
at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:24)  


Answers:
author: Thomas Deiler
body: Dear [@Aamir Saeed](/t5/user/viewprofilepage/user-id/2007145),

without knowing your configuration, I suggest to read[this article](https://confluence.atlassian.com/confkb/no-authentication-mechanisms-supported-by-both-server-and-client-when-configuring-microsoft-exchange-smtp-server-331914082.html).

So long

Thomas


Tags: confluence-server

server