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

ERROR: 530 Authentication required

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • mailer-plugin
    • None
    • jenkins 2.187, 2.192
      mailer plugin: 1.24, 1.25
    • 1.29

      authentication failed using mailer plugin and AWS SES (or sendgrid)

      error:
      Build step 'Execute shell' marked build as failure
      Sending e-mails to:
      apetrenko@trueaccord.com
      ERROR: 530 Authentication required

      com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required

      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:1840)
      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
       

      setting recommended by AWS (https://us-west-2.console.aws.amazon.com/ses/home?region=us-west-2#smtp-settings) and sendgrid.

      Authentication is working fine from the same host using postfix.

      parameters:

      awt.toolkit sun.awt.X11.XToolkit
      executable-war /usr/share/jenkins/jenkins.war
      file.encoding UTF-8
      file.encoding.pkg sun .io
      file.separator /
      guice.disable.misplaced.annotation.check true
      java.awt.graphicsenv sun.awt.X11GraphicsEnvironment
      java.awt.headless true
      java.awt.printerjob sun.print.PSPrinterJob
      java.class.path /usr/share/jenkins/jenkins.war
      java.class.version 52.0
      java.endorsed.dirs /usr/local/openjdk-8/jre/lib/endorsed
      java.ext.dirs /usr/local/openjdk-8/jre/lib/ext:/usr/java/packages/lib/ext
      java.home /usr/local/openjdk-8/jre
      java.io.tmpdir /tmp
      java.library.path /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
      java.runtime.name OpenJDK Runtime Environment
      java.runtime.version 1.8.0_222-b10
      java.specification.name Java Platform API Specification
      java.specification.vendor Oracle Corporation
      java.specification.version 1.8
      java.vendor Oracle Corporation
      java.vendor.url http ://java .oracle .com/
      java.vendor.url.bug http ://bugreport .sun .com /bugreport/
      java.version 1.8.0_222
      java.vm.info mixed mode
      java.vm.name OpenJDK 64-Bit Server VM
      java.vm.specification.name Java Virtual Machine Specification
      java.vm.specification.vendor Oracle Corporation
      java.vm.specification.version 1.8
      java.vm.vendor Oracle Corporation
      java.vm.version 25.222-b10
      javamelody.About Monitoring https ://wiki .jenkins -ci .org /display /JENKINS /Monitoring
      javamelody.analytics-id UA-1335263-7
      javamelody.csrf-protection-enabled true
      javamelody.custom-reports Jenkins Info,About Monitoring
      javamelody.gzip-compression-disabled true
      javamelody.http-transform-pattern /\d+/|(?<=/static/|/adjuncts/|/bound/)[\w\-]|(?<=/ws/|/user/|/testReport/|/javadoc/|/site/|/violations/file/|/cobertura/).|(?<=/job/).+(?=/descriptorByName/)
      javamelody.Jenkins Info /systemInfo
      javamelody.maven-repositories /var/jenkins_home/.m2/repository,http ://repo1 .maven .org /maven2 ,http ://repo .jenkins -ci .org /public
      javamelody.no-database true
      javamelody.storage-directory //var/jenkins_home/monitoring
      javamelody.system-actions-enabled true
      jenkins.model.Jenkins.slaveAgentPort 50000
      jetty.git.hash e1bc35120a6617ee3df052294e433f3a25ce7097
      jna.loaded true
      jna.platform.library.path /usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:/lib64:/usr/lib:/lib:/usr/local/openjdk-8/lib/amd64/jli:/usr/local/openjdk-8/lib/amd64
      jnidispatch.path /var/jenkins_home/.cache/JNA/temp/jna4808791561566321017.tmp
      line.separator
      mail.smtp.sendpartial true
      mail.smtp.starttls.enable true
      mail.smtps.sendpartial true
      os.arch amd64
      os.name Linux
      os.version 4.9.184-linuxkit
      path.separator :
      pid 6
      sun.arch.data.model 64
      sun.boot.class.path /usr/local/openjdk-8/jre/lib/resources.jar:/usr/local/openjdk-8/jre/lib/rt.jar:/usr/local/openjdk-8/jre/lib/sunrsasign.jar:/usr/local/openjdk-8/jre/lib/jsse.jar:/usr/local/openjdk-8/jre/lib/jce.jar:/usr/local/openjdk-8/jre/lib/charsets.jar:/usr/local/openjdk-8/jre/lib/jfr.jar:/usr/local/openjdk-8/jre/classes
      sun.boot.library.path /usr/local/openjdk-8/jre/lib/amd64
      sun.cpu.endian little
      sun.cpu.isalist
      sun.font.fontmanager sun.awt.X11FontManager
      sun.io.unicode.encoding UnicodeLittle
      sun.java.command /usr/share/jenkins/jenkins.war
      sun.java.launcher SUN_STANDARD
      sun.jnu.encoding UTF-8
      sun.management.compiler HotSpot 64-Bit Tiered Compilers
      sun.os.patch.level unknown
      svnkit.http.methods Digest,Basic,NTLM,Negotiate
      svnkit.ssh2.persistent false
      user.dir /
      user.home /var/jenkins_home
      user.language en
      user.name jenkins
      user.timezone Etc/UTC

      Environment Variables

      Name  ↓ Value   
      COPY_REFERENCE_FILE_LOG /var/jenkins_home/copy_reference_file.log
      HOME /var/jenkins_home
      HOSTNAME 019ab371eb61
      JAVA_BASE_URL https ://github .com /AdoptOpenJDK /openjdk8 -upstream -binaries /releases /download /jdk8u222 -b10 /OpenJDK8U -jdk_
      JAVA_HOME /usr/local/openjdk-8
      JAVA_OPTS -Xmx4096m -Dmail.smtp.starttls.enable=true
      JAVA_URL_VERSION 8u222b10
      JAVA_VERSION 8u222
      JENKINS_HOME /var/jenkins_home
      JENKINS_INCREMENTALS_REPO_MIRROR https ://repo .jenkins -ci .org /incrementals
      JENKINS_SLAVE_AGENT_PORT 50000
      JENKINS_UC https ://updates .jenkins .io
      JENKINS_UC_EXPERIMENTAL https ://updates .jenkins .io /experimental
      JENKINS_VERSION 2.192
      LANG C.UTF-8
      PATH /usr/local/openjdk-8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
      PWD /
      REF /usr/share/jenkins/ref
      SHLVL 0

      Plugins

      Name  ↓ Version    Enabled   
      ace-editor 1.1 true
      ansicolor 0.6.2 true
      ant 1.10 true
      antisamy-markup-formatter 1.6 true
      apache-httpcomponents-client-4-api 4.5.5-3.0 true
      authentication-tokens 1.3 true
      aws-credentials 1.27 true
      aws-java-sdk 1.11.594 true
      bouncycastle-api 2.17 true
      branch-api 2.5.4 true
      build-timeout 1.19 true
      build-token-root 1.5 true
      cloudbees-folder 6.9 true
      command-launcher 1.3 true
      credentials 2.3.0 true
      credentials-binding 1.20 true
      crowd2 2.0.2 true
      cvs 2.14 true
      datadog 0.7.1 true
      date-parameter 0.0.4 true
      display-url-api 2.3.2 true
      docker-commons 1.15 true
      docker-java-api 3.0.14 true
      docker-plugin 1.1.7 true
      docker-workflow 1.19 true
      durable-task 1.30 true
      ec2 1.45 true
      ec2-fleet 1.10.2 true
      email-ext 2.66 true
      emailext-template 1.1 true
      external-monitor-job 1.7 true
      gerrit-trigger 2.30.0 true
      git 3.12.0 true
      git-client 2.8.2 true
      git-server 1.8 true
      github 1.29.4 true
      github-api 1.95 true
      github-branch-source 2.5.6 true
      gradle 1.33 true
      greenballs 1.15 true
      handlebars 1.1.1 true
      icon-shim 2.0.3 true
      jackson2-api 2.9.9.1 true
      javadoc 1.5 true
      jdk-tool 1.0 true
      jobConfigHistory 2.23.1 true
      jquery-detached 1.2.1 true
      jsch 0.1.55.1 true
      junit 1.28 true
      kubernetes 1.18.3 true
      kubernetes-credentials 0.4.1 true
      ldap 1.20 true
      lockable-resources 2.5 true
      mailer 1.25 true
      mapdb-api 1.0.9.0 true
      matrix-auth 2.4.2 true
      matrix-project 1.14 true
      maven-plugin 3.4 true
      momentjs 1.1.1 true
      monitoring 1.79.0 true
      naginator 1.18 true
      node-iterator-api 1.5.0 true
      pam-auth 1.5.1 true
      pipeline-build-step 2.9 true
      pipeline-github-lib 1.0 true
      pipeline-graph-analysis 1.10 true
      pipeline-input-step 2.11 true
      pipeline-milestone-step 1.3.1 true
      pipeline-model-api 1.3.9 true
      pipeline-model-declarative-agent 1.1.1 true
      pipeline-model-definition 1.3.9 true
      pipeline-model-extensions 1.3.9 true
      pipeline-rest-api 2.12 true
      pipeline-stage-step 2.3 true
      pipeline-stage-tags-metadata 1.3.9 true
      pipeline-stage-view 2.12 true
      plain-credentials 1.5 true
      resource-disposer 0.13 true
      run-condition 1.2 true
      run-condition-extras 0.3 true
      saml 1.1.2 true
      sauce-ondemand 1.186 true
      scm-api 2.6.3 true
      scm-sync-configuration 0.0.10 true
      script-security 1.62 true
      secure-requester-whitelist 1.3 true
      slack 2.32 true
      ssh-agent 1.17 true
      ssh-credentials 1.17.1 true
      ssh-slaves 1.30.1 true
      structs 1.20 true
      subversion 2.12.2 true
      throttle-concurrents 2.0.1 true
      timestamper 1.10 true
      token-macro 2.8 true
      translation 1.16 true
      trilead-api 1.0.5 true
      variant 1.3 true
      windows-slaves 1.4 true
      workflow-aggregator 2.6 true
      workflow-api 2.37 true
      workflow-basic-steps 2.18 true
      workflow-cps 2.74 true
      workflow-cps-global-lib 2.15 true
      workflow-durable-task-step 2.33 true
      workflow-job 2.34 true
      workflow-multibranch 2.21 true
      workflow-scm-step 2.9 true
      workflow-step-api 2.20 true
      workflow-support 3.3 true
      ws-cleanup 0.37 true

       

       

       

            alecharp Adrien Lecharpentier
            aplsms Andrii Petrenko
            Votes:
            7 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: