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

Poll Mail box plugin not able to connect to Gmail account

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Critical Critical
    • None
    • Jenkin Version ->2.60

      Poll Mail Box Plugin ->1.025

      Java Version -> 1.8.0_121

      Operation System -> Windows 7/64 Bit

      Poll Mail box plugin is unable to connect to Mail Server(Gmail),even though i am able to telnet the mail server successfully with 993 port.

      Setting Poll Mail Box Trigger in Jenkin -->

      Hostname -> imap.gmail.com
      Username -> gmail_user@gmail.com
      Password -> password of gmail account

      Advanced Email Properties ->

      1. Connection configuration
        storeName=imaps
      1. Search configuration
        folder=INBOX
        subjectContains=jenkins >
        receivedXMinutesAgo=1440
      1. JavaMail configuration
        mail.debug=true
        mail.debug.auth=true
        mail.imaps.host=imap.gmail.com
        mail.imaps.port=993

       

       

      Error Message -->

       

      Connecting to the mailbox...
      Error : javax.mail.MessagingException: Connection reset;
        nested exception is:
      java.net.SocketException: Connection reset
      at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:665)
      at javax.mail.Service.connect(Service.java:295)
      at javax.mail.Service.connect(Service.java:176)
      at org.jenkinsci.plugins.pollmailboxtrigger.mail.MailReader.connect(MailReader.java:58)
      at org.jenkinsci.plugins.pollmailboxtrigger.PollMailboxTrigger.checkForEmails(PollMailboxTrigger.java:238)
      at org.jenkinsci.plugins.pollmailboxtrigger.PollMailboxTrigger$PollMailboxTriggerDescriptor.doTestConnection(PollMailboxTrigger.java:584)
      at java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)
      at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
      at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:248)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
      at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:248)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)

            Unassigned Unassigned
            varun454 Varun Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: