com.atlassian.mail.MailException: Tried to send mail (a) from no one (no 'from' and 'default from' specified).

Atlassian JIRA | Renan Battaglin | 10 months ago
  1. 0

    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

    Atlassian JIRA | 10 months ago | Renan Battaglin
    com.atlassian.mail.MailException: Tried to send mail (a) from no one (no 'from' and 'default from' specified).
  2. 0

    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

    Atlassian JIRA | 10 months ago | Renan Battaglin
    com.atlassian.mail.MailException: Tried to send mail (a) from no one (no 'from' and 'default from' specified).
  3. 0

    [JRA-27623] No authentication mechansims supported by both server and client - Atlassian JIRA

    atlassian.com | 1 year ago
    com.atlassian.mail.MailException: javax.mail.AuthenticationFailedException: No authentication mechansims supported by both server and client
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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]

    Atlassian JIRA | 5 years ago | Ivan Tse
    com.atlassian.mail.MailException: javax.mail.AuthenticationFailedException: No authentication mechansims supported by both server and client

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. com.atlassian.mail
      SMTPMailServerImpl.send
      1. com.atlassian.mail.server.impl.util.MessageCreator.updateMimeMessage(MessageCreator.java:94)
      2. com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:164)
      3. com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:151)
      3 frames
    3. com.atlassian.support
      SupportRequestMailQueueItem.send
      1. com.atlassian.support.tools.salext.mail.AbstractSupportMailQueueItem.send(AbstractSupportMailQueueItem.java:61)
      2. com.atlassian.support.tools.salext.mail.SupportRequestMailQueueItem.send(SupportRequestMailQueueItem.java:55)
      2 frames
    4. com.atlassian.mail
      MailQueueImpl.sendBuffer
      1. com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:66)
      1 frame
    5. com.atlassian.jira
      ServiceRunner.runJob
      1. com.atlassian.jira.mail.JiraMailQueue$1.apply(JiraMailQueue.java:51)
      2. com.atlassian.jira.mail.JiraMailQueue$1.apply(JiraMailQueue.java:48)
      3. com.atlassian.jira.util.velocity.DefaultVelocityRequestContextFactory.runWithStaticBaseUrl(DefaultVelocityRequestContextFactory.java:110)
      4. com.atlassian.jira.util.DefaultBaseUrl.runWithStaticBaseUrl(DefaultBaseUrl.java:50)
      5. com.atlassian.jira.mail.JiraMailQueue.sendBuffer(JiraMailQueue.java:48)
      6. com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:21)
      7. com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61)
      8. com.atlassian.jira.service.ServiceRunner.runService(ServiceRunner.java:62)
      9. com.atlassian.jira.service.ServiceRunner.runServiceId(ServiceRunner.java:44)
      10. com.atlassian.jira.service.ServiceRunner.runJob(ServiceRunner.java:32)
      10 frames
    6. com.atlassian.scheduler
      SchedulerQueueWorker.run
      1. com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:153)
      2. com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:118)
      3. com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:97)
      4. com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:401)
      5. com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeLocalJob(CaesiumSchedulerService.java:369)
      6. com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:347)
      7. com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:255)
      8. com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:252)
      9. com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:65)
      10. com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:59)
      11. com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:34)
      11 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame