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.

  • I have tried to use env variable DEFAULT_RECIPIENTS as part of build, and not as part of global env variables I need DEFAULT_RECIPIENTS value to be different for each job I try to set it as part of build step but the value is NOT available when email ext tries to send email I get === {quote} Recording test results Email was triggered for: Success Sending email for trigger: Success Sending email to: $team.acids ERROR: Could not send email as a part of the post-build publishers. com.sun.mail.smtp.SMTPSendFailedException: 250 2.6.0 <26943585.5.1337190669479.JavaMail.CAUDSWAP41$@CAUDSWAP41> Queued mail for delivery ; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1112) at javax.mail.Transport.send0(Transport.java:195) at javax.mail.Transport.send(Transport.java:124) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:263) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:247) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:207) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) 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.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1454) 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 User unknown at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1686) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1098) ... 14 more Notifying upstream projects of job completion Finished: SUCCESS {quote}
    via by kalpesh soni,
  • I have tried to use env variable DEFAULT_RECIPIENTS as part of build, and not as part of global env variables I need DEFAULT_RECIPIENTS value to be different for each job I try to set it as part of build step but the value is NOT available when email ext tries to send email I get === {quote} Recording test results Email was triggered for: Success Sending email for trigger: Success Sending email to: $team.acids ERROR: Could not send email as a part of the post-build publishers. com.sun.mail.smtp.SMTPSendFailedException: 250 2.6.0 <26943585.5.1337190669479.JavaMail.CAUDSWAP41$@CAUDSWAP41> Queued mail for delivery ; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1112) at javax.mail.Transport.send0(Transport.java:195) at javax.mail.Transport.send(Transport.java:124) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:263) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:247) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:207) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) 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.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1454) 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 User unknown at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1686) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1098) ... 14 more Notifying upstream projects of job completion Finished: SUCCESS {quote}
    via by kalpesh soni,
  • 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,
  • Version 2.16 of the plugin removes support for the PROJECT_DEFAULT_RECIPIENTS token, but leaves references to the token in the recipient lists for previously-configured build jobs. This causes build to attempt to send email to "$PROJECT_DEFAULT_RECIPIENTS" (literally), which of course fails. Delivery to legitimate addresses fails at the same time. This is a breaking change, as it requires manually editing all existing jobs to remove the offending token reference. For installations with many jobs, this could be overwhelming. In general, it's not a good idea to remove functionality like this, therefore forcing your users to immediately reconfigure to use your alternate method. (i.e. the "ENV" token approach suggested in the commit comment.) This change is also NOT listed in the version history for the plugin. A typical failure stack trace follows. Sending email to: real-address@mycompany.com $PROJECT_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 <$PROJECT_DEFAULT_RECIPIENTS>: Recipient address rejected: User unknown in local recipient table 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)
    via by rvaughn,
  • According to [https://issues.jenkins-ci.org/browse/JENKINS-11665], global recipients variable does no longer exist. But is still use in email-ext plugin, even if there is not present. $PROJECT_DEFAULT_RECIPIENTS is added to recipient list automatically. Stacktrace: Email was triggered for: Success Sending email for trigger: Success Sending email to: www.test@xxxxxxx.com $PROJECT_DEFAULT_RECIPIENTS ERROR: Could not send email as a part of the post-build publishers. com.sun.mail.smtp.SMTPSendFailedException: 250 2.0.0 pA99kJg2007424 Message accepted for delivery; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <$PROJECT_DEFAULT_RECIPIENTS>... 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:99) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:260) 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:695) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:670) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:648) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:172) at hudson.model.Run.run(Run.java:1448) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:47) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230)
    via by Bruno Marti,
  • 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,
  • Version 2.16 of the plugin removes support for the PROJECT_DEFAULT_RECIPIENTS token, but leaves references to the token in the recipient lists for previously-configured build jobs. This causes build to attempt to send email to "$PROJECT_DEFAULT_RECIPIENTS" (literally), which of course fails. Delivery to legitimate addresses fails at the same time. This is a breaking change, as it requires manually editing all existing jobs to remove the offending token reference. For installations with many jobs, this could be overwhelming. In general, it's not a good idea to remove functionality like this, therefore forcing your users to immediately reconfigure to use your alternate method. (i.e. the "ENV" token approach suggested in the commit comment.) This change is also NOT listed in the version history for the plugin. A typical failure stack trace follows. Sending email to: real-address@mycompany.com $PROJECT_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 <$PROJECT_DEFAULT_RECIPIENTS>: Recipient address rejected: User unknown in local recipient table 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)
    via by rvaughn,
  • According to [https://issues.jenkins-ci.org/browse/JENKINS-11665], global recipients variable does no longer exist. But is still use in email-ext plugin, even if there is not present. $PROJECT_DEFAULT_RECIPIENTS is added to recipient list automatically. Stacktrace: Email was triggered for: Success Sending email for trigger: Success Sending email to: www.test@xxxxxxx.com $PROJECT_DEFAULT_RECIPIENTS ERROR: Could not send email as a part of the post-build publishers. com.sun.mail.smtp.SMTPSendFailedException: 250 2.0.0 pA99kJg2007424 Message accepted for delivery; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <$PROJECT_DEFAULT_RECIPIENTS>... 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:99) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:260) 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:695) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:670) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:648) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:172) at hudson.model.Run.run(Run.java:1448) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:47) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230)
    via by Bruno Marti,
    • com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1112) at javax.mail.Transport.send0(Transport.java:195) at javax.mail.Transport.send(Transport.java:124) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:263) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:247) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:207) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) 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.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1454) 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 User unknown at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1686) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1098) ... 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