Project

General

Profile

Actions

Feature #43023

open

IMAP email retrieval via OAuth2

Added by Jan Catrysse about 1 month ago. Updated 2 days ago.

Status:
New
Priority:
Normal
Category:
Email receiving
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

This patch adds IMAP email retrieval via OAuth2.

Example - Office 365 email retrieval via OAuth2:
  1. Register an application in Azure and grant "IMAP.AccessAsUser.All" permission. Note the tenant ID, client ID and client secret.
  2. Initialize the OAuth token:
    rake redmine:email:o365_oauth2_init token_file=config/email_oauth2 client=YOUR_CLIENT_ID secret=YOUR_CLIENT_SECRET tenant=YOUR_TENANT_ID
  3. Fetch messages using the token:
    rake redmine:email:receive_imap_oauth2 token_file=config/email_oauth2 host=outlook.office365.com port=993 ssl=1 username=YOUR_ACCOUNT

Duplicate of: #40325, #37688, #37705, #37705


Files

Actions #1

Updated by Marius BĂLTEANU about 1 month ago

  • Assignee set to Marius BĂLTEANU
Actions #2

Updated by Marius BĂLTEANU about 1 month ago

  • Target version set to Candidate for next major release
Actions #3

Updated by Jan Catrysse about 1 month ago

I have completely refactored and reworked the code. It now includes support for Google, includes documentation, and has extra tests.
For me it all works for both o365 and Google, but please don't hesitate to do some extra testing for different use cases.

Actions #5

Updated by Omega Code 3 days ago

nice job with incoming mails support.
is there any working solution for outcoming emails? (replacing basic auth with ouauth)

Actions #6

Updated by Jan Catrysse 2 days ago

Thank you, it's not all my work. I will check for smtp, but give me some time.

Actions

Also available in: Atom PDF