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

Restore localhost as default SMTP server

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      2.80

      Description

      Hi 

      Mail sending stopped when updated email-ext-plugin from the v2.78 to 2.79 

       

      Error as below

      [Pipeline] emailextCould not find valid mail account[Pipeline] }

        Attachments

          Activity

          Hide
          chetub Chetan b added a comment -

          ERROR

           

          Could not find valid mail account

          Show
          chetub Chetan b added a comment - ERROR   Could not find valid mail account
          Hide
          basil Basil Crow added a comment -

          Please provide the following information:

          1. A redacted version of the <mailAccount/> and <addAccounts/> sections of ${JENKINS_HOME}/hudson.plugins.emailext.ExtendedEmailPublisher.xml. Please remember to redact sensitive information from the configuration before posting it (e.g., remove actual server names, usernames, and passwords).
          2. A redacted build log with debug mode enabled. Go to Manage Jenkins, click on Configure System, and in the Extended E-mail Notification section check Enable Debug Mode to enable debug mode for the Email Extension plugin. This will add additional log output to the build log for debugging purposes. Please remember to redact the build log before posting it (e.g., remove actual email addresses, etc).
          Show
          basil Basil Crow added a comment - Please provide the following information: A redacted version of the <mailAccount/> and <addAccounts/> sections of ${JENKINS_HOME}/hudson.plugins.emailext.ExtendedEmailPublisher.xml . Please remember to redact sensitive information from the configuration before posting it (e.g., remove actual server names, usernames, and passwords). A redacted build log with debug mode enabled. Go to Manage Jenkins, click on Configure System, and in the Extended E-mail Notification section check Enable Debug Mode to enable debug mode for the Email Extension plugin. This will add additional log output to the build log for debugging purposes. Please remember to redact the build log before posting it (e.g., remove actual email addresses, etc).
          Hide
          da5id_ David Hows added a comment -

          I ran into this issue aswell.

          It looks like the mail plugin no longer has a default override for no "SMTP Server" configuration value. I set "SMTP Server" to localhost and this fixed the issues.

          Show
          da5id_ David Hows added a comment - I ran into this issue aswell. It looks like the mail plugin no longer has a default override for no "SMTP Server" configuration value. I set "SMTP Server" to localhost and this fixed the issues.
          Hide
          matttbe Matthieu Baerts added a comment -

          Hi,

          It looks like the mail plugin no longer has a default override for no "SMTP Server" configuration value. I set "SMTP Server" to localhost and this fixed the issues.

          David Hows: Thank you for this comment, this fixes the issues I had on my side too after the switch to 2.79.

          Basil Crow: do you still need extra debug info?

          Show
          matttbe Matthieu Baerts added a comment - Hi, It looks like the mail plugin no longer has a default override for no "SMTP Server" configuration value. I set "SMTP Server" to localhost and this fixed the issues. David Hows : Thank you for this comment, this fixes the issues I had on my side too after the switch to 2.79. Basil Crow : do you still need extra debug info?
          Hide
          tom_gl Thomas de Grenier de Latour added a comment -

          I've just submitted a simple PR to restore pre-2.79 behavior (tolerate that SMTP server is not explicitly configured, which then means using localhost):

          https://github.com/jenkinsci/email-ext-plugin/pull/262

          Show
          tom_gl Thomas de Grenier de Latour added a comment - I've just submitted a simple PR to restore pre-2.79 behavior (tolerate that SMTP server is not explicitly configured, which then means using localhost): https://github.com/jenkinsci/email-ext-plugin/pull/262
          Hide
          basil Basil Crow added a comment -

          Fixed in jenkinsci/email-ext-plugin#262.

          Incremental build email-ext-2.80-rc1422.b0249ccb299a is available for testing. The incremental build is available from: https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/plugins/email-ext/2.80-rc1422.b0249ccb299a/

          Chetan b, David Hows, Matthieu Baerts, and Thomas de Grenier de Latour, can you please test the incremental build and confirm the issue is resolved? For instructions on how to install a custom build, see: https://www.jenkins.io/doc/book/managing/plugins/#advanced-installation

          Show
          basil Basil Crow added a comment - Fixed in jenkinsci/email-ext-plugin#262 . Incremental build email-ext-2.80-rc1422.b0249ccb299a is available for testing. The incremental build is available from: https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/plugins/email-ext/2.80-rc1422.b0249ccb299a/ Chetan b , David Hows , Matthieu Baerts , and Thomas de Grenier de Latour , can you please test the incremental build and confirm the issue is resolved? For instructions on how to install a custom build, see: https://www.jenkins.io/doc/book/managing/plugins/#advanced-installation
          Hide
          basil Basil Crow added a comment -

          Released in 2.80.

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

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            chetub Chetan b
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: