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

Email-ext Plugin : Connection time out

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Email was triggered for: Success
      Sending email for trigger: Success
      Sending email to: sumit@just.com
      ERROR: Could not send email as a part of the post-build publishers.
      javax.mail.MessagingException: Could not connect to SMTP host: smtp.office365.com, port: 567;
      nested exception is:
      java.net.SocketTimeoutException: connect timed out
      at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1934)
      at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638)
      at javax.mail.Service.connect(Service.java:317)
      at javax.mail.Service.connect(Service.java:176)
      at javax.mail.Service.connect(Service.java:125)
      at javax.mail.Transport.send0(Transport.java:194)
      at javax.mail.Transport.send(Transport.java:124)
      at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:305)
      at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:283)
      at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:235)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:784)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:756)
      at hudson.model.Build$BuildExecution.cleanUp(Build.java:192)
      at hudson.model.Run.execute(Run.java:1715)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:231)
      Caused by: java.net.SocketTimeoutException: connect timed out
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
      at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
      at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
      at java.net.Socket.connect(Socket.java:579)
      at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:286)
      at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:231)
      at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1900)
      ... 17 more
      Finished: SUCCESS

        Attachments

          Activity

          Hide
          sturman Roman Isko added a comment - - edited

          Sumit Chudasama uses wrong SMTP port for smtp.office365.com. Sumit, please visit this page https://support.office.com/en-US/Article/Settings-for-POP-and-IMAP-access-for-Office-365-for-business-or-Microsoft-Exchange-accounts-7fc677eb-2491-4cbc-8153-8e7113525f6c?ui=en-US for correct settings.
          As you can compare, you specified 567 port but it should be 587.
          Please set correct port and try again.

          Show
          sturman Roman Isko added a comment - - edited Sumit Chudasama uses wrong SMTP port for smtp.office365.com. Sumit, please visit this page https://support.office.com/en-US/Article/Settings-for-POP-and-IMAP-access-for-Office-365-for-business-or-Microsoft-Exchange-accounts-7fc677eb-2491-4cbc-8153-8e7113525f6c?ui=en-US for correct settings. As you can compare, you specified 567 port but it should be 587. Please set correct port and try again.

            People

            • Assignee:
              jesse A. Jesse Jiryu Davis
              Reporter:
              sumit sumit chudasama
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: