Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-11683

email-ext: user unknown ($PROJECT_DEFAULT_RECIPIENTS) exception

      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-11683] email-ext: user unknown ($PROJECT_DEFAULT_RECIPIENTS) exception

          Bruno Marti created issue -

          strange, just updated to 2.16 and working fine for me.

          Spencer Oliver added a comment - strange, just updated to 2.16 and working fine for me.

          newenigma added a comment -

          Have also got the same issue with 2.16. Reverted back to 2.15 for now

          newenigma added a comment - Have also got the same issue with 2.16. Reverted back to 2.15 for now

          Cees Bos added a comment -

          Faced the same issue.
          Workaround: add a global environment variable PROJECT_DEFAULT_RECIPIENTS with empty value

          Cees Bos added a comment - Faced the same issue. Workaround: add a global environment variable PROJECT_DEFAULT_RECIPIENTS with empty value

          I had the same issue because $PROJECT_DEFAULT_RECIPIENTS is stored in all projects configurations.
          Removing this value from the recipientList of each trigger in all configurations solved the issue. (With a little replaceAll in all config.xml files)

          Arnaud Héritier added a comment - I had the same issue because $PROJECT_DEFAULT_RECIPIENTS is stored in all projects configurations. Removing this value from the recipientList of each trigger in all configurations solved the issue. (With a little replaceAll in all config.xml files)

          strange - on another server i also go this problem.
          aheritier workaround fixed it for me.

          Spencer Oliver added a comment - strange - on another server i also go this problem. aheritier workaround fixed it for me.

          stibbons added a comment -

          Also had to revert to 2.15 while waiting for this regression to be fixed

          stibbons added a comment - Also had to revert to 2.15 while waiting for this regression to be fixed
          kutzi made changes -
          Link New: This issue is duplicated by JENKINS-11913 [ JENKINS-11913 ]

          jpschewe added a comment -

          I'm running Jenkins 1.448 and Jenkins Email Extension Plugin 2.16 and see this behavior as well. I did not see it happening with Jenkins 1.437 and Jenkins Email Extension Plugin 2.15.

          jpschewe added a comment - I'm running Jenkins 1.448 and Jenkins Email Extension Plugin 2.16 and see this behavior as well. I did not see it happening with Jenkins 1.437 and Jenkins Email Extension Plugin 2.15.

          jpschewe added a comment -

          I did find that if I remove the trigger and then add it back PROJECT_DEFAULT_RECIPIENTS is removed from my config.xml. So Perhaps all one needs to do is edit all config.xml files. It would probably be better if email-ext upgraded the settings itself though.

          jpschewe added a comment - I did find that if I remove the trigger and then add it back PROJECT_DEFAULT_RECIPIENTS is removed from my config.xml. So Perhaps all one needs to do is edit all config.xml files. It would probably be better if email-ext upgraded the settings itself though.

            slide_o_mix Alex Earl
            mbr Bruno Marti
            Votes:
            17 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: