Uploaded image for project: 'Spring XD'
  1. Spring XD
  2. XD-3076

Add SSL properties to the Mail source

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 1.2 RC1, 1.1.3
    • Component/s: None
    • Labels:
      None
    • Story Points:
      1
    • Rank (Obsolete):
      9223372036854775807
    • Acceptance Criteria:
      Hide
      stream create --name mailstream --definition "mail --host=imap.gmail.com --username=user%40gmail.com --password=pass --port=993 | log" --deploy
      

      The above stream should consume form the mail source and write it to logs.

      The unicode requirements for the --userName and --password needs documented.

      Gmail specific requirement (such as: --port 993) needs documented

      Show
      stream create --name mailstream --definition "mail --host=imap.gmail.com --username=user%40gmail.com --password=pass --port=993 | log" --deploy The above stream should consume form the mail source and write it to logs. The unicode requirements for the --userName and --password needs documented. Gmail specific requirement (such as: --port 993) needs documented
    • Sprint:
      Sprint 49

      Description

      As a user, I'd like to use the Mail source to connect to secured IMAP and/or SMTP mail servers.

      Mail source config file requires a <util:properties/> bean (with ssl/tls properties), provided to the adapter via the java-mail-properties attribute. Ref. Example.

         <beans:beans profile="default">
              <util:properties id="javaMailProperties">
                  <beans:prop key="mail.imap.socketFactory.class">javax.net.ssl.SSLSocketFactory</beans:prop>
                  <beans:prop key="mail.imap.socketFactory.fallback">false</beans:prop>
                  <beans:prop key="mail.store.protocol">imaps</beans:prop>
                  <beans:prop key="mail.debug">false</beans:prop>
              </util:properties>
          </beans:beans>
      

      List of all java-mail properties

        Attachments

          Activity

            People

            Assignee:
            iperumal Ilayaperumal Gopinathan
            Reporter:
            sabby Sabby Anandan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: