com.sun.mail.smtp.SMTPAddressFailedException

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.

  • Sending Email as part of a Jenkins job, ended with an error msg of the mailer, because one recipient was (no longer) present. In Jenkins this looks like an unhandled exception, making the job failed. Is this behaviour intentional ? To me it made it difficult to find that the actual test was ok. Here is the relevant part of the console output {quote}Sending e-mails to: x.y@a.b ERROR: 250 2.0.0 q6P8QAeb019946 Message accepted for delivery com.sun.mail.smtp.SMTPSendFailedException: 250 2.0.0 q6P8QAeb019946 Message accepted for delivery ; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <x.y@a.b>... User unknown at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:598) at javax.mail.Transport.send0(Transport.java:169) at javax.mail.Transport.send(Transport.java:98) at hudson.tasks.MailSender.execute(MailSender.java:114) at hudson.tasks.Mailer.perform(Mailer.java:111) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:678) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:656) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:625) at hudson.model.Run.run(Run.java:1433) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <x.y@a.b>... User unknown at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584) ... 14 more Finished: FAILURE{quote}
    via by Martin Jost,
  • Sending Email as part of a Jenkins job, ended with an error msg of the mailer, because one recipient was (no longer) present. In Jenkins this looks like an unhandled exception, making the job failed. Is this behaviour intentional ? To me it made it difficult to find that the actual test was ok. Here is the relevant part of the console output {quote}Sending e-mails to: x.y@a.b ERROR: 250 2.0.0 q6P8QAeb019946 Message accepted for delivery com.sun.mail.smtp.SMTPSendFailedException: 250 2.0.0 q6P8QAeb019946 Message accepted for delivery ; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <x.y@a.b>... User unknown at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:598) at javax.mail.Transport.send0(Transport.java:169) at javax.mail.Transport.send(Transport.java:98) at hudson.tasks.MailSender.execute(MailSender.java:114) at hudson.tasks.Mailer.perform(Mailer.java:111) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:678) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:656) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:625) at hudson.model.Run.run(Run.java:1433) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <x.y@a.b>... User unknown at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584) ... 14 more Finished: FAILURE{quote}
    via by Martin Jost,
  • Unable to send email notifications
    via by Mehul Sanghvi,
  • Invalid email address since 1.440
    via by Daniel Becroft,
  • I have email-ext plugin version 2.16 installed on my Jenkins. In the configure system setting GUI page, I am trying to set the Default Recipients so that all emails send by the email-ext plugin will be sent to this email. I save the settings page once done. However, when I go back in to the configure system settings page, whatever email(s) I wrote in Default Recipients has been deleted. I know that this is a problem and that the value I set for Default Recipients did not save because all projects trying to send to the default recipients are unable to recognize that value: Sending email to: $DEFAULT_RECIPIENTS ERROR: Could not send email as a part of the post-build publishers. javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <$DEFAULT_RECIPIENTS>... User unknown at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584) at javax.mail.Transport.send0(Transport.java:169) at javax.mail.Transport.send(Transport.java:98) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:259) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:243) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:203) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1448) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <$DEFAULT_RECIPIENTS>... User unknown at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047) ... 15 more Finished: FAILURE
    via by Evan Brodie,
    • com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <x.y@a.b>... User unknown at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:598) at javax.mail.Transport.send0(Transport.java:169) at javax.mail.Transport.send(Transport.java:98) at hudson.tasks.MailSender.execute(MailSender.java:114) at hudson.tasks.Mailer.perform(Mailer.java:111) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:678) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:656) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:625) at hudson.model.Run.run(Run.java:1433) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <x.y@a.b>... User unknown at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584) ... 14 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    21 more bugmates