Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Expand
titleContents

Table of Contents
indent13px
maxLevel5
stylenone

POP3 component microservice is used to connect to a mail server/News server and retrieve emails/news articles using the POP3/IMAP/NNTP protocol. It uses the JavaMail API.
The component POP3 supports these the below functions:

  • Retrieve emails/news articles from the mail/news server.
  • Fetch the email/news count on the mail/news server.
  • Verify signature, decrypt mail and MDN.

Configuration

Managed Connection Factory

The following properties that can be configured in the Managed Connection Properties Factory panel of CPS are explained the sections below.


Figure 1: Managed Connection Factory Panel of POP3

General attributes

...

  • POP3 – POP3 protocol is used to retrieve emails. The property Folder to pick mails property is not visible if this value is selected.
  • IMAP – IMAP protocol is used to retrieve emails. The property Folder to pick mails property is visible if this value is selected.
  • NNTP – NNTP protocol is used to retrieve news articles. The property Newsgroup to pick news articles property is visible if this value is selected.
  • MailserverURL – Specifies the URL at which the mail server is hosted.

...

URL of the mail server.

MailServer Port

Specifies Specify the port number on which the mail server accepts POP3/IMAP/NNTP connections. The default port number for NNTP is 119 and IMAP is 143.

...

Additional properties which can be used for creating connection can be specified here. For instance, to enable debug in Javamail set in Javamail, set a property 'mail.debug' to 'true'.For example, to retrive

Info
titleExample:

To retrieve mails from gmail,

...

  1. Provide the following property values:
    1. MailserverURL: pop.gmail.com

...

    1. MailServer Port: 995
  1. Generate app password from https://accounts.google.com/IssuedAuthSubTokens?hide_authsub=1 for 'Mail'
  2. Choose the desired device in App passwords section at Google Account > Security > Signing in to Google.
  3. Use the generated password in the Authentication Configuration section.
  4. Apart from the above, provide the following additional properties:
    1. mail.pop3.starttls.enable=true

    2. mail.pop3.auth=true

    3. mail.pop3.

...

    1. ssl.

...

    1. enable=true

    2. mail.pop3.socketFactory.fallback=false

    3. mail.pop3.socketFactory.port=995

Info
    1. mail.pop3.ssl.protocols=TLSv1.2
Tip
titleReference:

For the properties which are supported by

Authentication Configuration

...

Adaptavist ThemeBuilder EngineAtlassian Confluence