• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • email-ext-plugin
    • None
    • 2.80

      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] }

          [JENKINS-64141] Restore localhost as default SMTP server

          Chetan b added a comment -

          ERROR

           

          Could not find valid mail account

          Chetan b added a comment - ERROR   Could not find valid mail account

          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).

          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).

          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.

          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.

          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.

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

          basil: do you still need extra debug info?

          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. da5id_ : Thank you for this comment, this fixes the issues I had on my side too after the switch to 2.79. basil : do you still need extra debug info?

          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

          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

          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/

          chetub, da5id_, matttbe, and tom_gl, 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

          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/ chetub , da5id_ , matttbe , and tom_gl , 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

          Basil Crow added a comment -

          Released in 2.80.

          Basil Crow added a comment - Released in 2.80 .

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

              Created:
              Updated:
              Resolved: