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

SMTPSendFailedException although email configuration was tested successfully

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: mailer-plugin
    • Labels:
      None
    • Environment:
      Windows 10 Pro (Version 1903, OS Build 18362.356)
      Jenkins 2.176.3
      Mailer-Plugin 1.28
    • Similar Issues:
    • Released As:
      1.29

      Description

      I have configured an external mail server in the mailer-plugin and I am able to send emails in the configuration menu ("Send email to test configuration").

      My email configuration is as follows:
      SMTP server: smtp.strato.de
      Use SSL: yes
      SMTP-Port: 465

      But when a job fails and I have configured email notifications for this job, I do get the following error. Unfortunately, I haven't found any further logs related to this error.

      Sending e-mails to: someone@gmail.com
      ERROR: 530 5.7.0 User not authenticated

      com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 User not authenticated

      at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2057)
      at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1580)
      at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1097)
      at javax.mail.Transport.send0(Transport.java:195)
      at javax.mail.Transport.send(Transport.java:124)
      at hudson.tasks.MailSender.run(MailSender.java:130)
      at hudson.tasks.Mailer.perform(Mailer.java:175)
      at hudson.tasks.Mailer.perform(Mailer.java:138)
      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.post2(Build.java:186)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
      at hudson.model.Run.execute(Run.java:1843)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)
      Finished: FAILURE

       

      I have had this issue also with mailer-plugin 1.26 and 1.27.

        Attachments

          Issue Links

            Activity

            Hide
            tsparber Tommy Sparber added a comment - - edited

            This should be fixed with the PR 67 once it is approved, merged and released.

            Show
            tsparber Tommy Sparber added a comment - - edited This should be fixed with the PR 67 once it is approved, merged and released.
            Hide
            lifeofguenter Gunter Grodotzki added a comment -

            thanks Tommy Sparber ! having the same issue

            Show
            lifeofguenter Gunter Grodotzki added a comment - thanks Tommy Sparber  ! having the same issue
            Hide
            alecharp Adrien Lecharpentier added a comment -

            Gunter Grodotzki may I ask you to grab the snapshot build of mailer and validate that it is fixing the problem in your case? Thanks!

            Show
            alecharp Adrien Lecharpentier added a comment - Gunter Grodotzki may I ask you to grab the snapshot build of mailer and validate that it is fixing the problem in your case? Thanks!
            Hide
            northh_kai Kai F. added a comment -

            Thank you. I can test it as well. Where can I download the snapshot?

            Show
            northh_kai Kai F. added a comment - Thank you. I can test it as well. Where can I download the snapshot?
            Hide
            northh_kai Kai F. added a comment -

            I have downloaded and tested this snapshot succesfully. Jenkins does send emails through my email provider Thank you!!!

            https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Fmailer-plugin/detail/PR-67/1/artifacts

            Show
            northh_kai Kai F. added a comment - I have downloaded and tested this snapshot succesfully. Jenkins does send emails through my email provider Thank you!!! https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Fmailer-plugin/detail/PR-67/1/artifacts
            Hide
            alecharp Adrien Lecharpentier added a comment -

            thank you Kai F. for the feedback. I merged the PR and will release 1.29 version of the plugin.

            Show
            alecharp Adrien Lecharpentier added a comment - thank you Kai F. for the feedback. I merged the PR and will release 1.29 version of the plugin.

              People

              Assignee:
              alecharp Adrien Lecharpentier
              Reporter:
              northh_kai Kai F.
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: