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

Debug logs are misleading and incomplete when From address is invalid

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: email-ext-plugin
    • Labels:
      None
    • Environment:
      email-ext-plugin 2.75
    • Similar Issues:
    • Released As:
      2.79

      Description

      In Post-build Actions, Editable Email Notification, if Project From is not set, the build will produce this output with Enable Debug Mode set:

      ...
      
      Adding recipients from trigger recipient list
      Successfully created MimeMessage
      Sending email to: foo@acme.com
      Error sending to the following INVALID addresses: foo@acme.com
      SendFailedException message: Invalid Addresses
      Finished: SUCCESS
      

      This log message is wrong and totally confusing. I checked the Jenkins log on com.sun.mail.smtp and the following error message is seen:

      Aug 27, 2020 1:14:10 AM FINEST com.sun.mail.util.LogOutputStream logMAIL FROM:<nobody@nowhere>Aug 27, 2020 1:14:10 AM FINEST com.sun.mail.util.LogOutputStream log250 2.1.0 OkAug 27, 2020 1:14:10 AM FINE com.sun.mail.smtp.SMTPTransport rcptTosendPartial setAug 27, 2020 1:14:10 AM FINEST com.sun.mail.util.LogOutputStream logRCPT TO:<foo@acme.com>Aug 27, 2020 1:14:10 AM FINEST com.sun.mail.util.LogOutputStream log550 5.1.8 <nobody@nowhere>: Sender address rejected: Domain not foundAug 27, 2020 1:14:10 AM FINE com.sun.mail.smtp.SMTPTransport rcptToInvalid AddressesAug 27, 2020 1:14:10 AM FINE com.sun.mail.smtp.SMTPTransport rcptTofoo@acme.comAug 27, 2020 1:14:10 AM FINE com.sun.mail.smtp.SMTPTransport rcptToSending failed because of invalid destination addressesAug 27, 2020 1:14:10 AM FINEST com.sun.mail.util.LogOutputStream logRSETAug 27, 2020 1:14:10 AM FINEST com.sun.mail.util.LogOutputStream log250 2.0.0 OkAug 27, 2020 1:14:10 AM FINE com.sun.mail.smtp.SMTPTransport sendMessageMessagingException while sending
      com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.8 <nobody@nowhere>: Sender address rejected: Domain not foundat com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1917)
      Caused: javax.mail.SendFailedException: Invalid Addresses;
       nested exception is:
       com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.8 <nobody@nowhere>: Sender address rejected: Domain not foundat com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:2064)
       at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1286)
       at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:483)
       at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:441)
       at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:349)
       at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
       at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
       at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
       at hudson.model.Build$BuildExecution.cleanUp(Build.java:196)
       at hudson.model.Run.execute(Run.java:1927)
       at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:428)
      

       

        Attachments

          Issue Links

            Activity

            Hide
            basil Basil Crow added a comment -
            Show
            basil Basil Crow added a comment - Fixed in jenkinsci/email-ext-plugin#256 .
            Hide
            basil Basil Crow added a comment -

            Released in 2.79.

            Show
            basil Basil Crow added a comment - Released in 2.79 .

              People

              Assignee:
              basil Basil Crow
              Reporter:
              rvernica Rares Vernica
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: