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

Email-ext send email to unknown recipient when email address is not available

      When email-ext plugin is configured for a build and the build finished, the plugin send email to "unknown" email recipient. The email suffix is globally configured. So probably the email adress for the requester cannot be retrieved. But I think when the email cannot be retrieved the server should not send a email.

      Log:
      Email was triggered for: Success
      Sending email for trigger: Success
      Sending email to: unknown@meine.defaultdomain.com

          [JENKINS-28804] Email-ext send email to unknown recipient when email address is not available

          jim jaeger added a comment -

          screenshots attached from project config.

          jim jaeger added a comment - screenshots attached from project config.

          jim jaeger added a comment -

          Some more information about the projects:

          • Maven build
          • RTC Source control

          jim jaeger added a comment - Some more information about the projects: Maven build RTC Source control

          Alex Earl added a comment -

          When the username isn't a full email address, email-ext will look at the Mailer.UserProperty to get the configured address from Jenkins. This will call the MailAddressResolver resolve method, which goes through all the implemented MailAddressResolvers to find the email address for the user. If one of those is returning "unknown" then that is what email-ext uses. The address resolution is normally implemented in the source control plugin.

          Alex Earl added a comment - When the username isn't a full email address, email-ext will look at the Mailer.UserProperty to get the configured address from Jenkins. This will call the MailAddressResolver resolve method, which goes through all the implemented MailAddressResolvers to find the email address for the user. If one of those is returning "unknown" then that is what email-ext uses. The address resolution is normally implemented in the source control plugin.

          jim jaeger added a comment -

          The source control plugin is RTC.

          jim jaeger added a comment - The source control plugin is RTC.

          Alex Earl added a comment -

          Looks like RTC doesn't implement a MailAddressResolver, so something else is returning "unknown" to email-ext. Can you add a logger for hudson.tasks.MailAddressResolver with the level of FINE and it should put info in the log as to what resolver is being used.

          Alex Earl added a comment - Looks like RTC doesn't implement a MailAddressResolver, so something else is returning "unknown" to email-ext. Can you add a logger for hudson.tasks.MailAddressResolver with the level of FINE and it should put info in the log as to what resolver is being used.

          Alex Earl added a comment -

          Need more information

          Alex Earl added a comment - Need more information

            slide_o_mix Alex Earl
            jimjaeger jim jaeger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: