com.atlassian.mail.MailException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Original Claim from customer: {quote} Scheduled log scan does not succeed in sending me an email because MAIL FROM field contains noreply@atlassian.com, and my mail server rejects emails. I couldn't find out how to configure this email address in JIRA. SMTP configuration mail from address is set to other email address. All other (project related) emails are successfully sent. Here is a part of debug outgoing mail log file: {quote} And below is seen in the logs: {noformat} 2013-11-20 13:26:30,639 ERROR [Mozzart POP] Sending mailitem com.atlassian.support.tools.salext.mail.SimpleSupportMailQueueItem@1a8d597f milovan 806x9587835x3 1t0xmj 192.168.182.52 /secure/admin/MailQueueAdmin.jspa Error occurred in sending e-mail: com.atlassian.support.tools.salext.mail.SimpleSupportMailQueueItem@1a8d597f com.atlassian.mail.MailException: com.sun.mail.smtp.SMTPSendFailedException: 530 <noreply@atlassian.com>, Authentication does not match this account at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:201) at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:149) at com.atlassian.support.tools.salext.mail.AbstractSupportMailQueueItem.send(AbstractSupportMailQueueItem.java:52) at com.atlassian.support.tools.salext.mail.SimpleSupportMailQueueItem.send(SimpleSupportMailQueueItem.java:15) at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:66) {noformat} Upon confirmation, configuring the schedule log scan and enable the debug log shows the following result: *Expected*: the mail is sent with the email that is configured on the SMTP outgoing mail server email address. *Actual Result* It follows the below template: {noformat} From: noreply@atlassian.com To: xxxx@yyyy.com Message-ID: <988686800.0.1385392057951.JavaMail.richie@Richie-PC> Subject: [JIRA]TEST Log scan results for 2013-11-25... MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk Auto-Submitted: auto-generated <HTML> <HEAD> </HEAD> <BODY> <DIV CLASS="message_box" style='border: solid 1px #DEDEDE;background: #EAFFEF;color: #222222;padding: 4px;padding-left: 1em;'> This is a report generated by a regular scan of your JIRA instance for known problems.. <p>Found 3 known problems in the log file atlassian-jira.log (see below for details).</p> <UL> <LI><A HREF="https://confluence.atlassian.com/display/JIRAKB/JIRA+not+Functioning+due+to+IllegalStateException+zip+file+closed+error?utm_source=STP&amp;utm_medium=scheduledLogScan">JIRA not Functioning due to IllegalStateException zip file closed error</A></LI> <LI><A HREF="https://jira.atlassian.com/browse/JRA-24453?utm_source=STP&amp;utm_medium=scheduledLogScan">Unable to read bytes error on JIRA startup</A></LI> <LI><A HREF="https://confluence.atlassian.com/display/JIRAKB/Multiple+Redmine+projects+with+the+same+name+will+lead+to+error+when+importing+to+JIRA?utm_source=STP&amp;utm_medium=scheduledLogScan">Multiple Redmine projects with the same name will lead to error when importing to JIRA</A></LI> </UL> <p>If you no longer wish to receive these reports, contact your JIRA administrator.</p> </DIV> </BODY> </HTML> {noformat} As you can see, the From field is populated with noreply@atlassian.com for default and it might hit into problem if the customer's mail server has domain checking and you might see the error on logs like earlier which is returned from the mail server.
    via by Milovan Tosic,
  • Original Claim from customer: {quote} Scheduled log scan does not succeed in sending me an email because MAIL FROM field contains noreply@atlassian.com, and my mail server rejects emails. I couldn't find out how to configure this email address in JIRA. SMTP configuration mail from address is set to other email address. All other (project related) emails are successfully sent. Here is a part of debug outgoing mail log file: {quote} And below is seen in the logs: {noformat} 2013-11-20 13:26:30,639 ERROR [Mozzart POP] Sending mailitem com.atlassian.support.tools.salext.mail.SimpleSupportMailQueueItem@1a8d597f milovan 806x9587835x3 1t0xmj 192.168.182.52 /secure/admin/MailQueueAdmin.jspa Error occurred in sending e-mail: com.atlassian.support.tools.salext.mail.SimpleSupportMailQueueItem@1a8d597f com.atlassian.mail.MailException: com.sun.mail.smtp.SMTPSendFailedException: 530 <noreply@atlassian.com>, Authentication does not match this account at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:201) at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:149) at com.atlassian.support.tools.salext.mail.AbstractSupportMailQueueItem.send(AbstractSupportMailQueueItem.java:52) at com.atlassian.support.tools.salext.mail.SimpleSupportMailQueueItem.send(SimpleSupportMailQueueItem.java:15) at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:66) {noformat} Upon confirmation, configuring the schedule log scan and enable the debug log shows the following result: *Expected*: the mail is sent with the email that is configured on the SMTP outgoing mail server email address. *Actual Result* It follows the below template: {noformat} From: noreply@atlassian.com To: xxxx@yyyy.com Message-ID: <988686800.0.1385392057951.JavaMail.richie@Richie-PC> Subject: [JIRA]TEST Log scan results for 2013-11-25... MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk Auto-Submitted: auto-generated <HTML> <HEAD> </HEAD> <BODY> <DIV CLASS="message_box" style='border: solid 1px #DEDEDE;background: #EAFFEF;color: #222222;padding: 4px;padding-left: 1em;'> This is a report generated by a regular scan of your JIRA instance for known problems.. <p>Found 3 known problems in the log file atlassian-jira.log (see below for details).</p> <UL> <LI><A HREF="https://confluence.atlassian.com/display/JIRAKB/JIRA+not+Functioning+due+to+IllegalStateException+zip+file+closed+error?utm_source=STP&amp;utm_medium=scheduledLogScan">JIRA not Functioning due to IllegalStateException zip file closed error</A></LI> <LI><A HREF="https://jira.atlassian.com/browse/JRA-24453?utm_source=STP&amp;utm_medium=scheduledLogScan">Unable to read bytes error on JIRA startup</A></LI> <LI><A HREF="https://confluence.atlassian.com/display/JIRAKB/Multiple+Redmine+projects+with+the+same+name+will+lead+to+error+when+importing+to+JIRA?utm_source=STP&amp;utm_medium=scheduledLogScan">Multiple Redmine projects with the same name will lead to error when importing to JIRA</A></LI> </UL> <p>If you no longer wish to receive these reports, contact your JIRA administrator.</p> </DIV> </BODY> </HTML> {noformat} As you can see, the From field is populated with noreply@atlassian.com for default and it might hit into problem if the customer's mail server has domain checking and you might see the error on logs like earlier which is returned from the mail server.
    via by Milovan Tosic,
  • Since JIRA 4.4.4 some configurations of Exchange smtp mailboxes are receiving errors when connecting to the mailbox. {noformat} com.atlassian.mail.MailException: javax.mail.AuthenticationFailedException: No authentication mechansims supported by both server and client at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:183) at com.atlassian.jira.web.action.admin.mail.SendTestMail.doExecute(SendTestMail.java:102) at webwork.action.ActionSupport.execute(ActionSupport.java:165) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:76) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39) at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31) at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:205) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:143) at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:152) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) ... Caused by: javax.mail.AuthenticationFailedException: No authentication mechansims supported by both server and client at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:756) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:669) 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.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:154) ... {noformat} I think this came about from a change in javamail. Versions earlier than 4.4.4 use javamail 1.4.1 and the newer versions use 1.4.4. Workaround: [JIRA KB|https://confluence.atlassian.com/display/JIRAKB/%27No+authentication+mechansims+supported+by+both+server+and+client%27+when+Configuring+Microsoft+Exchange+SMTP+Server]
    via by Ivan Tse,
  • Steps needed to reproduce the behaviour: # Install Tomcat provided in packaged by Linux. # Place on CLASS_PATH {{mail-1.1.2}} from [GNU JavaMail|http://www.gnu.org/software/classpathx/javamail/javamail.html]. # Deploy JIRA WAR. # Configure SMTP integration in JIRA. # Attempt to sent email for e.g. from the admin > Services > SMTP. {noformat} An error has occurred with sending the test email: com.atlassian.mail.MailException: javax.mail.NoSuchProviderException: smtp at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:191) at com.atlassian.jira.web.action.admin.mail.SendTestMail.doExecute(SendTestMail.java:91) at webwork.action.ActionSupport.execute(ActionSupport.java:165) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:139) ... Caused by: javax.mail.NoSuchProviderException: smtp at javax.mail.Session.getService(Session.java:794) at javax.mail.Session.getTransport(Session.java:718) at javax.mail.Session.getTransport(Session.java:661) at javax.mail.Session.getTransport(Session.java:641) at alt.javax.mail.SessionImpl.getTransport(SessionImpl.java:77) at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:177) ... 111 more DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,gnu.mail.providers.smtp.SMTPTransport,nferrier@tapsellferrier.co.uk] java.lang.NoSuchMethodException: gnu.mail.providers.smtp.SMTPTransport.<init>(javax.mail.Session, javax.mail.URLName) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.getConstructor(Unknown Source) {noformat} Possible work around is listed in our documentation. {quote} To prevent any conflicts, check your application server's lib/ directory: * If the application server already contains mail-1.4.1.jar and activation-1.1.1.jar, then just remove WEB-INF/lib/mail-1.4.1.jar and WEB-INF/lib/activation-1.1.1.jar from the JIRA webapp. * If the application server does not contain mail-1.4.1.jar and activation-1.1.1.jar, then move JIRA's WEB-INF/lib/mail-1.4.1.jar and WEB-INF/lib/activation-1.1.1.jar into the application server's lib/ directory {quote} http://confluence.atlassian.com/display/JIRA/Configuring+JIRA+to+Send+SMTP+Mail#ConfiguringJIRAtoSendSMTPMail-MovetheJavaMailClasses
    via by Bogdan Dziedzic [Atlassian],
  • when user configures JNDI SMTP configuration and enters extra space characters in the JNDI location, our application accepts it but throws an error while sending email. Steps: # Navigate to mail servers from admin and configure SMTP mail server using JNDI location # Enter JNDI Location and enter some white spaces in the location field. # Attempt to send test email and also click on SMTP log level details check box and than exception will be thrown out like: {noformat} An error has occurred with sending the test email: com.atlassian.mail.MailException: javax.naming.NameNotFoundException: Name java: comp is not bound in this Context at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:187) at com.atlassian.jira.web.action.admin.mail.SendTestMail.doExecute(SendTestMail.java:91) at webwork.action.ActionSupport.execute(ActionSupport.java:165) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:139) at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:168) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) ... Caused by: javax.naming.NameNotFoundException: Name java: comp is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:770) at org.apache.naming.NamingContext.lookup(NamingContext.java:153) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137) at javax.naming.InitialContext.lookup(InitialContext.java:392) at com.atlassian.mail.server.impl.SMTPMailServerImpl.getJndiSession(SMTPMailServerImpl.java:161) at com.atlassian.mail.server.impl.SMTPMailServerImpl.getSession(SMTPMailServerImpl.java:110) at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:169) ... 110 more {noformat}
    via by Vikram Singh Siyawat [Atlassian],
  • h3. Summary When attempting to send mails from the support tools plugin, this mail fail with the exception below. h3. Steps to Replicate Replicated on JIRA 7.1.0, with no mail server setup. # Browse to create support request # Generate a new request h3. Experienced Behavior This can result in mail not being sent, and the below exception is thrown: {noformat} 2016-02-24 17:25:00,010 Sending mailitem com.atlassian.support.tools.salext.mail.SupportRequestMailQueueItem@666c5750 ERROR anonymous Mail Queue Service [c.a.mail.queue.MailQueueImpl] Error occurred in sending e-mail: com.atlassian.support.tools.salext.mail.SupportRequestMailQueueItem@666c5750 com.atlassian.mail.MailException: Tried to send mail (a) from no one (no 'from' and 'default from' specified). at com.atlassian.mail.server.impl.util.MessageCreator.updateMimeMessage(MessageCreator.java:94) at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:164) at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:151) at com.atlassian.support.tools.salext.mail.AbstractSupportMailQueueItem.send(AbstractSupportMailQueueItem.java:61) at com.atlassian.support.tools.salext.mail.SupportRequestMailQueueItem.send(SupportRequestMailQueueItem.java:55) at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:66) at com.atlassian.jira.mail.JiraMailQueue$1.apply(JiraMailQueue.java:51) at com.atlassian.jira.mail.JiraMailQueue$1.apply(JiraMailQueue.java:48) at com.atlassian.jira.util.velocity.DefaultVelocityRequestContextFactory.runWithStaticBaseUrl(DefaultVelocityRequestContextFactory.java:110) at com.atlassian.jira.util.DefaultBaseUrl.runWithStaticBaseUrl(DefaultBaseUrl.java:50) at com.atlassian.jira.mail.JiraMailQueue.sendBuffer(JiraMailQueue.java:48) at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:21) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.runService(ServiceRunner.java:62) at com.atlassian.jira.service.ServiceRunner.runServiceId(ServiceRunner.java:44) at com.atlassian.jira.service.ServiceRunner.runJob(ServiceRunner.java:32) at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:153) at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:118) at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:97) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:401) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeLocalJob(CaesiumSchedulerService.java:369) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:347) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:255) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:252) at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:65) at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:59) at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:34) at java.lang.Thread.run(Thread.java:745) {noformat} h3. Expected Behavior Mails send successfully. h3. Notes Support Request emails sent from STP use the email address defined in the SMTP server settings as the FROM address instead of using the contact email address that is supplied when submitting the request. Previous versions of STP used the contact email address as the FROM email address. The FROM address on the emails is the same as the contact email address
    via by Renan Battaglin,
    • com.atlassian.mail.MailException: com.sun.mail.smtp.SMTPSendFailedException: 530 <noreply@atlassian.com>, Authentication does not match this account at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:201) at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:149) at com.atlassian.support.tools.salext.mail.AbstractSupportMailQueueItem.send(AbstractSupportMailQueueItem.java:52) at com.atlassian.support.tools.salext.mail.SimpleSupportMailQueueItem.send(SimpleSupportMailQueueItem.java:15) at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:66)

    Users with the same issue

    Unknown visitor1 times, last one,