From Claws Mail FAQ
Revision as of 19:24, 22 July 2021 by Claws (talk | contribs)
Jump to navigationJump to search

Setting up OAuth 2.0 for Gmail

Follow the instructions here: https://support.google.com/googleapi/answer/6158849

When setting up the project use these settings:

 Project name: Anything of your choice
 Project status: In production
 User type: External

OAuth consent screen settings:

 App name: Anything of your choice
 User support email: Your own email
 Developer email: Your own email
 App domain entries: Leave blank

Scopes settings:

 Under restricted scopes select: Gmail API, https://mail.google.com/, Read, compose, send and permanently delete all your email from Gmail

Getting the ClientID

 APIs and Services on the left menu, then Credentials entry
 Copy the ClientID to the custom entry box on Claws Mail Oauth2 account preferences screen.
 Select "Edit Oauth Credentials" (pencil icon), then copy the Client Secret to the entry in Claws Mail Oauth2 account preferences screen.

Microsoft - for Outlook or Exchange

Sign in to microsoft account

Go to Azure Active Directory > App registrations

Direct link: https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps

Choose "New Registration"

 Display name: Anything you choose
 Application (client) ID - will be auto generated
 Object ID - will be auto generated
 Directory (tenant) ID - will be auto generated
 Supported account types - set to "All Microsoft account users"

Once app is registered you can configure it:

Branding tab - any entries you like

Authentication tab -

 Redirect URI: https://login.microsoftonline.com/common/oauth2/nativeclient
 Supported account types: "Accounts in any organizational directory (Any
 Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)"

Certificates & secrets tab - No entries needed

Token configuration - No entries needed

API permissions tab - Add these:

Microsoft Graph:

 - IMAP.AccessAsUser.All
 - Mail.ReadWrite
 - Mail.Send
 - offline_access
 - POP.AccessAsUser.All
 - SMTP.Send

Expose an API tab - No entries needed

Owners tab - No entries needed

Manifest tab - Leave at defaults

Quickstart tab - Leave alone

Integration assistant - Leave alone

Once configured the ClientID (also called Application ID) can be copied over to Claws Mail custom ClientID box. No Client Secret is needed - leave that entry blank in Claws Mail's custom Client Secret box.