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

SMTPSendFailedException although email configuration was tested successfully

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • mailer-plugin
    • None
    • Windows 10 Pro (Version 1903, OS Build 18362.356)
      Jenkins 2.176.3
      Mailer-Plugin 1.28
    • 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

            northh_kai Kai F. created issue -
            tsparber Tommy Sparber made changes -
            Field Original Value New Value
            Remote Link This issue links to "PR 67 (Web Link)" [ 23717 ]
            tsparber Tommy Sparber added a comment - - edited

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

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

            thanks tsparber ! having the same issue

            lifeofguenter Günter Grodotzki added a comment - thanks tsparber  ! having the same issue

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

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

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

            northh_kai Kai F. added a comment - Thank you. I can test it as well. Where can I download the snapshot?
            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

            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

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

            alecharp Adrien Lecharpentier added a comment - thank you northh_kai for the feedback. I merged the PR and will release 1.29 version of the plugin.
            alecharp Adrien Lecharpentier made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
            alecharp Adrien Lecharpentier made changes -
            Released As 1.29
            Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]
            medianick Nick Jones made changes -
            Summary STMPSendFailedException although email configuration was tested successfully SMTPSendFailedException although email configuration was tested successfully

            People

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

              Dates

                Created:
                Updated:
                Resolved: