Incoming Mail Connections

Incoming Mail Connections

To see the list of mailbox connections, go to INCOMING EMAILS ADMINISTRATION --> Incoming Mail Connections.

To create a new Incoming Mail Connection, click on Add. The Incoming Mail Connections page has a set of mandatory and optional attributes that vary depending on the selected connection type.

Incoming Mail Connections are always added in a disabled state. After editing an enabled Incoming Mail Connection, its state will change back to disabled. You need to enable them before they can be used.

Incoming Mail Connections dialog - generic settings

Incoming Mail Connection General Settings
  • Name - enter the preferred name to identify the connection

  • Description (optional) - short description to help identify the connection

  • Connection Mode - depending on what you select here, options will vary

  • Interval - Time interval between email downloads in minutes, valid value: 1-60 minutes, the default is 1 minute.

  • Folder - The folder of the mailbox you want to process emails from.

    • If left empty, we default to the folder named Inbox.

    • If your mailbox is in a different language, you do need to specify the exact name of the folder, for example: Posteingang.

    • To connect to a subfolder, you need to use forward slashes to specify the whole folder structure, for example: MainFolder/SubFolder.

    • Folder selection is not supported on a POP3 connection.

  • Certificates - If you would like to process encrypted emails with Email This Issue, a Certificate can be added to the Incoming Connection that will be used by the Mail Handler. One Connection can have multiple Certificates, and one Certificate can be added to multiple Connections. You can search for certificates by starting to type their name or alias into the select field search bar. They will appear with their name first and alias in parentheses. More information about using Certificates can be found in Email Security

  • After download - Select what should happen to emails after we download them. You can opt to have them marked as read or to be deleted from the mail server. This action is performed only after we download the email.

  • Timeout - Timeout for connection attempts to the mail server in milliseconds, valid values: 1-60000 msec.

Connection Mode - specific settings

Email This Issue supports login and OAuth authentication mechanisms for Incoming Mail Connections. You can select it by selecting the correct protocol.

Note: the content of the dialog changes based on the authentication method you select.

Google OAuth2 connection

  1. Create the OAuth2 credentials: Gmail with OAuth2

  2. Select the Client Credentials you created on the credentials page.

  3. Enter the user name of the Outgoing Mail Connection you want to use.

  4. Click on the "Authorize" button to grant access to Email This Issue to send emails from your account.

  5. In the dialog, select the account that belongs to the email address you use for login: Note: If you have multiple Google accounts, select the one with the email that matches the username in the Outgoing Mail Connection dialog. Emails will be sent from that account.

  6. If you get the following warning, do the following:

    1. Click Advanced.

    2. Click the "Go to meta-inf.hu (unsafe)" link.

    3. Confirm your choice by clicking Allow.

If you want to revoke the access from Email This Issue to your Gmail account, you can do it by visiting Account Settings.

Microsoft Connections

Microsoft IMAP with OAuth 2.0

  1. Set up the OAuth2 credentials: Microsoft IMAP and SMTP with OAuth2

  2. Enter the Username you would like to authenticate with.

  3. Click Authorize

  4. You will be redirected to the Microsoft login page, where you will be logged in automatically if you have SSO enabled. If the Username is not the same as the one you have an active session with, you will need to log in to Microsoft with the username before Authorizing - this way, you should be able to choose the correct account to complete the Authorization process with.

Microsoft IMAP with OAuth2 Host Settings

For IMAP connections, the hostname outlook.office365.com is used by default when connecting to the mail server. However, in certain scenarios, the use of a custom hostname might be required. In such cases, there is a possibility to override the default value. Enable the respective Override default host setting toggle and select the desired host from the Host dropdown appearing below.

Overriding hostname for an OAuth2-based Microsoft365 IMAP connection

The dropdown contains a pre-defined set of hostnames, which are globally available. If you have even more specific needs, please contact our support team.

Microsoft Graph with OAuth2

  1. Set up the OAuth2 credentials: Microsoft Graph API with OAuth2. You will be able to choose between application access or delegated access.

    1. Delegated access (OAuth2 credentials were created with Auth Code Grant type)

      1. Enter the Username you would like to authenticate with.

      2. Click Authorize

      3. You will be redirected to the Microsoft login page, where you will be logged in automatically if you have SSO enabled. If the Username is not the same as the one you have an active session with, you will need to log in to Microsoft with the username before Authorizing - this way, you should be able to choose the correct account to complete the Authorization process with.

    2. Application access (OAuth2 credentials were created with Client Credentials Grant type)

      1. Fill out the Username field, as it is a requirement for the connection health check.

      2. The Authorization will be checked automatically after you select the credentials; no login is necessary.

Shared mailbox settings

A shared mailbox is a mailbox that multiple users can use to read and send e-mail messages. You can read more about them here: https://docs.microsoft.com/en-us/exchange/collaboration/shared-mailboxes/shared-mailboxes

To use a shared mailbox, you just have to enter the username and password (or use OAuth) of the account you want to log in with, then enable the "Use a shared mailbox" option and enter the alias of the shared mailbox in the field that appears:

Shared mailbox settings for Incoming Mail Connection

Search

The mail connection list is searchable with the Search button on the top left part of the list. The filter search in the Name, Description, Host, and Username fields.

Decide what to do after Emails are downloaded

SINCE VERSION 8.1.1

By default (and up to version 8.1.1) Incoming Mail Connections mark downloaded emails as "seen" (i.e. "read") in the mailboxes. Since version 8.1.1, administrators may configure Incoming Mail Connections to remove messages from the mailboxes after they have been successfully downloaded.

Note: If you are using Microsoft Exchange, you can create a rule to directly copy each incoming mail into a separate folder (e.g., “Jira Archive”).

Instead of using the setting “Mark messages as seen”, set the After download function in the Incoming Mail Connection to the “Delete messages” option. This way, the inbox is kept clean and empty, but you still have a copy of all your emails.

Processing time in large mailboxes is reduced to seconds instead of minutes with this little workaround.

Test Connections

It is possible to test the connection before actually saving the connection itself; it is also highly recommended to do so in order to check if there are any errors in the configuration.

After pressing the test connection button, the following pop-up appears if the connection is successful:

How to use Incoming Mail Connections

These Incoming Mail Connections cannot be used with Jira's built-in Incoming Mail Handlers, only with our app's Next Generation Mail Handlers.

Email Security

If you would like to process encrypted emails with Email This Issue, a Certificate can be added to the Incoming Connection that will be used by the Mail Handler. One Connection can have multiple Certificates, and one Certificate can be added to multiple Connections. You can search for certificates by starting to type their name or alias into the select field search bar. They will appear with their name first and alias in parentheses.

Certificates after searching

Enabling Incoming Mail Connections

By default, all new Incoming Mail Connections are created as disabled. To enable a connection, select the "Enable" option from the connection's menu.

From the app's point of view, when initializing a new or re-activating (re-enabling) a previously used ("known") mailbox - provided that there is a matching enabled mail handler for the connection at hand - there is a good chance that a bunch of messages will be subsequently downloaded from the mailbox and processed by the app (by creating or updating issues).

Depending on the contents and the current state of the mailbox, such an action might entail some risks, though:

  • lots of emails might be processed inadvertently (which may take a while, while also changing messages' state on the mail server by marking them as SEEN or DELETED)

  • under certain circumstances (depending on the mail server's and the app's settings), duplicate issues might be created

To avoid the undesired download of a large number of emails upon enabling a connection, the estimated number of 'new' messages within the target mail folder is assessed and an informational dialog is popped up if an acknowledgement is required before acting.

Searching for new messages (in progress):

If there are any new messages to download, the following text is displayed: Clicking on the Enable button will change the connection's state and trigger other processes as indicated by the appearing flag:

Filtering the list

The Incoming Mail Connection list can be filtered by clicking on the Search button. After clicking, a free text field will be opened, in which the search term can be entered. The filter searches in the Name, Description, Host, and Username fields.

Last updated

Was this helpful?