com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first.

Jenkins JIRA | matiasgrodriguez | 8 years ago
  1. 0

    I was unable to configure Hudson to use the google smtp server to send notification emails. I get this error: ERROR: 530 5.7.0 Must issue a STARTTLS command first. c44sm12222795hsc.12 com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. at com.sun.mail.smtp.SMTPTransport.issueSendCommand (SMTPTransport.java:1388) at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583) at javax.mail.Transport.send0(Transport.java:169) at javax.mail.Transport.send(Transport.java:98) at hudson.tasks.MailSender.execute(MailSender.java:75) at hudson.tasks.Mailer._perform(Mailer.java:77) at hudson.tasks.Mailer.perform(Mailer.java:71) at hudson.tasks.BuildStepCompatibilityLayer.perform (BuildStepCompatibilityLayer.java:33) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep (AbstractBuild.java:318) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep (AbstractBuild.java:306) at hudson.model.Build$RunnerImpl.post2(Build.java:126) at hudson.model.AbstractBuild$AbstractRunner.post (AbstractBuild.java:291) at hudson.model.Run.run(Run.java:813) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:88) This can be fixed on the java mail api setting this property: props.put("mail.smtp.starttls.enable","true"); Enabling SSL did not work either. It would be nice if the Hudson mail configuration UI allowed us to configure this. Thanks Matias G. Rodriguez

    Jenkins JIRA | 8 years ago | matiasgrodriguez
    com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first.
  2. 0

    I was unable to configure Hudson to use the google smtp server to send notification emails. I get this error: ERROR: 530 5.7.0 Must issue a STARTTLS command first. c44sm12222795hsc.12 com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. at com.sun.mail.smtp.SMTPTransport.issueSendCommand (SMTPTransport.java:1388) at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583) at javax.mail.Transport.send0(Transport.java:169) at javax.mail.Transport.send(Transport.java:98) at hudson.tasks.MailSender.execute(MailSender.java:75) at hudson.tasks.Mailer._perform(Mailer.java:77) at hudson.tasks.Mailer.perform(Mailer.java:71) at hudson.tasks.BuildStepCompatibilityLayer.perform (BuildStepCompatibilityLayer.java:33) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep (AbstractBuild.java:318) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep (AbstractBuild.java:306) at hudson.model.Build$RunnerImpl.post2(Build.java:126) at hudson.model.AbstractBuild$AbstractRunner.post (AbstractBuild.java:291) at hudson.model.Run.run(Run.java:813) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:88) This can be fixed on the java mail api setting this property: props.put("mail.smtp.starttls.enable","true"); Enabling SSL did not work either. It would be nice if the Hudson mail configuration UI allowed us to configure this. Thanks Matias G. Rodriguez

    Jenkins JIRA | 8 years ago | matiasgrodriguez
    com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first.
  3. 0

    Must issue a STARTTLS command first. - gsmtp ; Sending email with attachment using gmail account

    Stack Overflow | 2 years ago | SaRak
    com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. of6sm3574020lbb.11 - gsmtp
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to send an email using MS exchange server

    Stack Overflow | 6 years ago | user509755
    com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not authenticated
  6. 0

    550 Access denied - Invalid HELO name

    Stack Overflow | 5 years ago | Abhishek
    org.apache.commons.mail.EmailException: Sending the e mail to the following server failed : mail.just-flick.com:25

  1. abrazeneb 1 times, last 4 months ago
39 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.sun.mail.smtp.SMTPSendFailedException

    530 5.7.0 Must issue a STARTTLS command first.

    at com.sun.mail.smtp.SMTPTransport.issueSendCommand()
  2. JavaMail API (compat)
    SMTPTransport.sendMessage
    1. com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
    2. com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)
    3. com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
    3 frames
  3. JavaMail API
    Transport.send
    1. javax.mail.Transport.send0(Transport.java:169)
    2. javax.mail.Transport.send(Transport.java:98)
    2 frames
  4. Hudson
    Executor.run
    1. hudson.tasks.MailSender.execute(MailSender.java:75)
    2. hudson.tasks.Mailer._perform(Mailer.java:77)
    3. hudson.tasks.Mailer.perform(Mailer.java:71)
    4. hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:33)
    5. hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:318)
    6. hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:306)
    7. hudson.model.Build$RunnerImpl.post2(Build.java:126)
    8. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:291)
    9. hudson.model.Run.run(Run.java:813)
    10. hudson.model.Build.run(Build.java:88)
    11. hudson.model.ResourceController.execute(ResourceController.java:70)
    12. hudson.model.Executor.run(Executor.java:88)
    12 frames