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

SMTP authentication not working

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • core
    • None
    • Platform: PC, OS: All

    Description

      I've tried to use my Exchange 2007 server as an SMTP server for Hudson, which
      requires SMTP authentication. I configured the standard authentication settings
      which have been confirmed to work on Outlook, Outlook Express as well as our
      office printer (which can sending scans by email). When sending a test email, or
      having emails sent after a build, I get the following:

      com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not
      authenticated

      See attachment for full stack trace.

      It would appear the problem is related to the way JavaMail is called in Hudson.
      The following FAQ entry describes the problem:

      http://java.sun.com/products/javamail/FAQ.html#smtpauth

      I checked hudson.tasks.Mailer in core/src/main/java/hudson/tasks and it seems
      indeed that JavaMail is being called using Transport.send(msg) instead of the
      method suggested in the FAQ above.

      Attachments

        Issue Links

          Activity

            kutzi kutzi added a comment - Seems to be fixed in JavaMail 1.4.3 http://www.oracle.com/technetwork/java/javamail/javamail143-243221.html

            Code changed in jenkins
            User: Christoph Kutzinski
            Path:
            core/pom.xml
            http://jenkins-ci.org/commit/jenkins/4afaf0bbc2c9f7298c45dc527269fb5c81cc710d
            Log:
            Update JavaMail dependency to 1.4.4. Should fix JENKINS-1152 and JENKINS-3983

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: core/pom.xml http://jenkins-ci.org/commit/jenkins/4afaf0bbc2c9f7298c45dc527269fb5c81cc710d Log: Update JavaMail dependency to 1.4.4. Should fix JENKINS-1152 and JENKINS-3983

            Code changed in jenkins
            User: Christoph Kutzinski
            Path:
            changelog.html
            http://jenkins-ci.org/commit/jenkins/c4dd892ea3067be942d4a89778029ed1522512ff
            Log:
            Changelog for JENKINS-1152 and JENKINS-3983

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: changelog.html http://jenkins-ci.org/commit/jenkins/c4dd892ea3067be942d4a89778029ed1522512ff Log: Changelog for JENKINS-1152 and JENKINS-3983

            Code changed in jenkins
            User: Christoph Kutzinski
            Path:
            core/pom.xml
            http://jenkins-ci.org/commit/jenkins/efce00a177bd4d6ac64cad481544729e90144358
            Log:
            Update JavaMail dependency to 1.4.4. Should fix JENKINS-1152 and JENKINS-3983(cherry picked from commit 4afaf0bbc2c9f7298c45dc527269fb5c81cc710d)

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: core/pom.xml http://jenkins-ci.org/commit/jenkins/efce00a177bd4d6ac64cad481544729e90144358 Log: Update JavaMail dependency to 1.4.4. Should fix JENKINS-1152 and JENKINS-3983 (cherry picked from commit 4afaf0bbc2c9f7298c45dc527269fb5c81cc710d)

            Code changed in jenkins
            User: Christoph Kutzinski
            Path:
            changelog.html
            http://jenkins-ci.org/commit/jenkins/f481b1971d32141219e33aad5f449b45463a8e7c
            Log:
            Changelog for JENKINS-1152 and JENKINS-3983
            (cherry picked from commit c4dd892ea3067be942d4a89778029ed1522512ff)

            Conflicts:

            changelog.html

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: changelog.html http://jenkins-ci.org/commit/jenkins/f481b1971d32141219e33aad5f449b45463a8e7c Log: Changelog for JENKINS-1152 and JENKINS-3983 (cherry picked from commit c4dd892ea3067be942d4a89778029ed1522512ff) Conflicts: changelog.html

            People

              Unassigned Unassigned
              marcb marcb
              Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: