Setting Up Google App

Go to https://console.cloud.google.com/apis/credentials

If you don't have one, create a new project

../img/oauth-1.png

Go to Library and enable GMAIL API

../img/oauth-2.png
../img/oauth-3.png
../img/oauth-4.png

If you don't have it, configure the consent screen

../img/oauth-5.png
../img/oauth-6.png
../img/oauth-7.png

Click Add or Remove Scopes and search gmail.send

../img/oauth-8.png
../img/oauth-9.png

Click on + CREATE CREDENTIALS and select OAuth client ID

../img/oauth-10.png

Select "Web Application" as the type.

On Authorized redirect URIs add your xBit installation host + /about.php
(e.g., http://yourdomain.xbit/about.php)

Copy the Client ID and Secret

../img/oauth-11.jpg

Configuring in xBit

  1. Go to Admin > About/Settings
  2. Go to the E-Mail tab
  3. Select Enable SMTP and type GMAIL
  4. Complete ClientId and Secret

../img/oauth-12.png

  1. Click Submit SMTP Settings
  2. Authorize Gmail

Setting up Azure/Office365 App

  1. Go to https://portal.azure.com/
  2. Select Microsoft Entra ID

Manage Microsoft Entra ID

  1. Click Add and select App Registration

Microsoft Entra ID Overview

  1. Complete the name, select
    Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)
    and on Redirect URI select Web and add your xBit installation host + /about.php

(e.g., http://yourdomain.xbit/about.php)

../img/oauth-15.png

  1. Copy the Client ID and Tenant ID

../img/oauth-16.jpg

  1. Go to API Permissions and click Add a permission
  2. Select Microsoft Graph and Delegated permissions

../img/oauth-17.png

  1. From OpenID select "email" and "offline_access"

../img/oauth-18.png

  1. From SMTP select "SMTP.Send"

../img/oauth-19.png

  1. Click Add permissions
    It should save and show the following:

../img/oauth-20.png

  1. Go to Certificates and secrets and click on New Client Secret
  2. Set name and expiration date
  3. Save and copy the content of the Value column

../img/oauth-21.jpg


Configuring in xBit

  1. Go to Admin > About/Settings
  2. Go to the E-Mail tab
  3. Select Enable SMTP and type Office 365
  4. Complete ClientId, Secret, and TenantId

../img/oauth-22.png

  1. Click Submit SMTP Settings

../img/oauth-23.jpg

  1. Authorize Office 365