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

emailext takes incorrect SMTP username pwd values

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Minor Minor
    • None

      (Apologies if provided information is not sufficient enough. This is my first time setting-up / using jenkins)

      1. Have configured mailer, email, and email extension plugins to use my gmail smtp
      2. Jenkins Pipeline built to send email notification as a post- step
      3. Test smtp email from jenkins successful { smtp.google.com, my username, my 2fa app pwd, SSL, port:587 }
      4. Emailext plug-in's SMTP settings match ones created in step 3
      5. Post- build email fails w/ following:

       

      Adding recipients from trigger recipient list

      Successfully created MimeMessage 

      Sending email to: << redacted >>

      DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle] 

      DEBUG SMTP: need username and password for authentication 

      DEBUG SMTP: protocolConnect returning false, host=smtp.google.com, user=jenkins_adm, password=<null> 

      DEBUG SMTP: useEhlo true, useAuth true DEBUG SMTP: trying to connect to host "smtp.google.com", port 587, isSSL false

       

      Few other things I've tried:

      a. when emailext plugin SMTP settings are set to some invalid values e.g. smtp server = lalaland, port = 25, user = dumbo, password = dumbo; pipeline build shows same error as above, in the console log

      b. when email plugin SMTP settings are erased, logs indicate below mentioned, and it assumes user=jenkins_adm (my jenkins admin acct). Log shows same issue as above:

      DEBUG SMTP: need username and password for authentication 

      DEBUG SMTP: protocolConnect returning false, host=smtp.google.com, user=jenkins_adm, password=<null> 

      DEBUG SMTP: useEhlo true, useAuth true DEBUG SMTP: trying to connect to host "smtp.google.com", port 587, isSSL false

       c. tried turning SSL on, TLS off; same result. it doesn't take the username/pwd from emailext or mailer plugin's .xml file

       

      Happy to provide further logs / information.

          [JENKINS-66532] emailext takes incorrect SMTP username pwd values

          Maulik created issue -
          Maulik made changes -
          Component/s New: mailer-plugin [ 17522 ]
          Description Original: (Apologies if provided information is not sufficient enough. This is my first time setting-up / using jenkins)
           # Have configured mailer, email, and email extension plugins to use my gmail smtp
           # Jenkins Pipeline built to send email notification as a post- step
           # Test smtp email from jenkins successful { [smtp.google.com|http://smtp.google.com/], my username, my 2fa app pwd, SSL, port:587 }
           # Emailext plug-in's SMTP settings match ones created in step 3
           # Post- build email fails w/ following:

           

          {{_Adding recipients from trigger recipient list_}}

          {{_Successfully created MimeMessage_ }}

          {{_Sending email to: << redacted >>_}}

          {{_DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]_ }}

          {{*_DEBUG SMTP: need username and password for authentication_* }}

          {{_DEBUG SMTP: protocolConnect returning false, host=smtp.google.com,_ *_user=jenkins_adm, password=<null>_* }}

          {{_DEBUG SMTP: useEhlo true, useAuth true DEBUG SMTP: trying to connect to host "smtp.google.com", port 587,_ *_isSSL false_*}}

           

          Few other things I've tried:

          a. when emailext plugin SMTP settings are set to some invalid values e.g. _smtp server = lalaland, port = 25, user = dumbo, password = dumbo_; pipeline build shows same error as above, in the console log

          b. when email plugin SMTP settings are erased, logs indicate below mentioned, and it assumes user=jenkins_adm (my jenkins admin acct). Log shows same issue as above:

          {{*_DEBUG SMTP: need username and password for authentication_* }}

          {{_DEBUG SMTP: protocolConnect returning false, host=smtp.google.com,_ *_user=jenkins_adm, password=<null>_* }}

          {{_DEBUG SMTP: useEhlo true, useAuth true DEBUG SMTP: trying to connect to host "smtp.google.com", port 587,_ *_isSSL false_*}}

           

          Happy to provide further logs / information.
          New: (Apologies if provided information is not sufficient enough. This is my first time setting-up / using jenkins)
           # Have configured mailer, email, and email extension plugins to use my gmail smtp
           # Jenkins Pipeline built to send email notification as a post- step
           # Test smtp email from jenkins successful \{ [smtp.google.com|http://smtp.google.com/], my username, my 2fa app pwd, SSL, port:587 }
           # Emailext plug-in's SMTP settings match ones created in step 3
           # Post- build email fails w/ following:

           

          {{_Adding recipients from trigger recipient list_}}

          {{_Successfully created MimeMessage_ }}

          {{_Sending email to: << redacted >>_}}

          {{_DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]_ }}

          {{*_DEBUG SMTP: need username and password for authentication_* }}

          {{_DEBUG SMTP: protocolConnect returning false, host=smtp.google.com,_ *_user=jenkins_adm, password=<null>_* }}

          {{_DEBUG SMTP: useEhlo true, useAuth true DEBUG SMTP: trying to connect to host "smtp.google.com", port 587,_ *_isSSL false_*}}

           

          Few other things I've tried:

          a. when emailext plugin SMTP settings are set to some invalid values e.g. _smtp server = lalaland, port = 25, user = dumbo, password = dumbo_; pipeline build shows same error as above, in the console log

          b. when email plugin SMTP settings are erased, logs indicate below mentioned, and it assumes user=jenkins_adm (my jenkins admin acct). Log shows same issue as above:

          {{*_DEBUG SMTP: need username and password for authentication_* }}

          {{_DEBUG SMTP: protocolConnect returning false, host=smtp.google.com,_ *_user=jenkins_adm, password=<null>_* }}

          {{_DEBUG SMTP: useEhlo true, useAuth true DEBUG SMTP: trying to connect to host "smtp.google.com", port 587,_ *_isSSL false_*}}

           c. tried turning SSL on, TLS off; same result. it doesn't take the username/pwd from emailext or mailer plugin's .xml file

           

          Happy to provide further logs / information.
          Alex Earl made changes -
          Resolution New: Incomplete [ 4 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            Unassigned Unassigned
            maulikvaidya Maulik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: