com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <$PROJECT_DEFAULT_RECIPIENTS>: Recipient address rejected: User unknown in local recipient table

Jenkins JIRA | rvaughn | 5 years ago
  1. 0

    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)

    Jenkins JIRA | 5 years ago | rvaughn
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <$PROJECT_DEFAULT_RECIPIENTS>: Recipient address rejected: User unknown in local recipient table
  2. 0

    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)

    Jenkins JIRA | 5 years ago | rvaughn
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <$PROJECT_DEFAULT_RECIPIENTS>: Recipient address rejected: User unknown in local recipient table
  3. 0

    Invalid email address since 1.440

    Google Groups | 5 years ago | Daniel Becroft
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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

    Jenkins JIRA | 5 years ago | Evan Brodie
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <$DEFAULT_RECIPIENTS>... User unknown
  6. 0

    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)

    Jenkins JIRA | 5 years ago | Bruno Marti
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <$PROJECT_DEFAULT_RECIPIENTS>... user unknown

    21 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.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()
    2. JavaMail API (compat)
      SMTPTransport.sendMessage
      1. com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196)
      2. com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
      2 frames
    3. JavaMail API
      Transport.send
      1. javax.mail.Transport.send0(Transport.java:169)
      2. javax.mail.Transport.send(Transport.java:98)
      2 frames
    4. Hudson Email Extension Plugin
      ExtendedEmailPublisher.perform
      1. hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:259)
      2. hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:243)
      3. hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:203)
      3 frames
    5. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667)
      4. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645)
      5. hudson.model.Build$RunnerImpl.cleanUp(Build.java:171)
      6. hudson.model.Run.run(Run.java:1448)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:238)
      9 frames