Configure Email (Administrator role)

Configure Email (Administrator role)

As an Administrator, you can manage AGILITY's email configuration for sending notifications and communications to members of your organization. Proper configuration ensures that system emails are delivered reliably and securely.

This page explains how to:

Accessing the Email Configuration Page

  1. In the navigation menu, go to Settings and select Applications.

    image-20250826-183236.png
  2. The Applications page will open, displaying all available applications, including the Email Configuration.

    image-20260618-142533.png
  3. Locate the desired application and click the Edit button inside the card.

    image-20260618-142649.png
  4. The Email Configuration page will open, allowing you to view and manage the email settings.

    image-20260618-143318.png

Email Provider Options

AGILITY supports two email providers, SMTP and Microsoft Graph.

image-20260618-143835.png

 

Select the option that best matches your organization's email infrastructure:

  • SMTP — Use an SMTP relay or mail server provided by your organization.

  • Microsoft Graph — Recommended for Microsoft 365 / Exchange Online environments, especially when SMTP basic authentication is disabled or when your organization uses an approved Microsoft Graph-enabled service account.

Microsoft Graph is selected by default when opening the Email Configuration page. If your organization uses an SMTP server, select SMTP before entering the configuration details.

 

Available Email Configuration Fields

Common Fields

The following fields are available for both SMTP and Microsoft Graph configurations. These settings define the sender information that AGILITY uses when sending emails and must be configured regardless of the selected email provider.

  • Enabled — Set to True to enable AGILITY email notifications.

  • Mail Provider — Select smtp or ms_graph.

  • Front End URL — The AGILITY front-end URL used for links inside email notifications and reports.

  • Send to Recipients — When enabled, the email is sent directly to recipients. When disabled, recipients can be placed in BCC for safer testing.

SMTP-Specific Fields

The following fields are required only when SMTP is selected as the email provider. These settings are used to connect AGILITY to your organization's SMTP server and authenticate outgoing email communications.

image-20260618-113028.png

The following fields are required to authenticate and connect to SMTP:

  • MAIL From — Email address AGILITY sends from, for example, no-reply@b-yond.com.

  • SMTP Server — The SMTP server or relay hostname.

  • SMTP Port — The SMTP port.

  • Username — The email user name, when credentials are required.

  • Password — Password for SMTP authentication, when credentials are required.

  • Start TLS — Set to True to enable Start Transport Layer Security (TLS).

  • Validate Certs — Set to True to verify the mail server certificate.

  • Use Credentials — Set to True when the SMTP server requires login credentials.

Microsoft Graph-Specific Fields

Use Microsoft Graph when your organization provides a Microsoft 365 service account or a Microsoft Entra ID application with Graph mail permissions. This allows AGILITY to send emails through an approved corporate mailbox, eliminating the need to configure a separate SMTP relay.

image-20260618-112829.png

The following fields are required to authenticate and connect to Microsoft Graph:

  • Mail Provider — Set to ms_graph.

  • MS Graph Tenant ID — Microsoft Entra ID tenant ID.

  • MS Graph Client ID — Application/client ID from the Entra ID app registration.

  • MS Graph Client Secret — Client secret for the app registration. Store and rotate it per your security policy.

  • MS Graph Sender — Mailbox AGILITY sends from, for example, agility-notifications@example.com.

  • MS Graph Timeout — HTTP timeout for Microsoft token and sending requests.

  • MS Graph Login Base URL — Token endpoint base URL. Default https://login.microsoftonline.com unless your tenant uses a sovereign cloud.

  • MS Graph Base URL — Graph API base URL. Default https://graph.microsoft.com unless your tenant uses a sovereign cloud.

Microsoft Graph Prerequisites

  • The following needs to be allowed:

    • Port: 587

    • SMTP Server URL: smtp.office365.com

  • An Entra ID app registration exists for AGILITY or for the approved customer service account.

  • The app has the Microsoft Graph application permission Mail.Send.

  • Admin consent has been granted for the app permission.

  • The configured sender mailbox exists and is licensed, or is a valid shared mailbox.

  • If required by customer policy, configure an Exchange application access policy so the app can only send as the approved mailbox.

Create a Microsoft Entra App

Follow the steps below to create the Microsoft Entra App with the appropriate permissions and settings:

  1. Go to Azure Portal.

  2. Go to your Microsoft Entra ID and search for App Registration, then click New Registration.

image-20260618-145202.png
  1. Give the application a name, and make sure the Supported account types is set to Single tenant only. Click on Register.

image-20260618-145440.png
  1. Once the app is created, make sure to save the Client ID and the Tenant ID, as they are needed for the SMTP

image-20260618-145600.png
  1. Click on Certificates & secrets, then click on New client secret.

image-20260618-145725.png
  1. Give the secret a name and an expiration time (Recommended is 24 months). Click add.

image-20260618-145901.png
  1. Once created, you should be able to create the secret value and secret ID and save them in your vault.

image-20260618-150022.png

Note that the Secret value will show up only once only on its creation and you won’t be able to retrieve it afterwards.

  1. Now go to API permissions and click on Add a permission.

image-20260618-150141.png
  1. Select Microsoft Graph → Application Permissions → and tick the box for Mail.Send.

image-20260618-150234.png
  1. This step is not mandatory, but it is preferred.

Click Grant admin consent for YOUR_TENANT, then click on Yes.

image-20260618-150521.png

You should now see the consent granted properly:

image-20260618-150707.png

To restrict the application to send as a specific user:

  1. In Exchange Online PowerShell, create a mail-enabled security group containing just the user(s) you want the app to send as:

New-DistributionGroup -Name "AppMailSendScope" -PrimarySmtpAddress AppMailSendScope@yourdomain.com -Type Security Add-DistributionGroupMember -Identity "AppMailSendScope" -Member targetuser@yourdomain.com
  1. Create the policy, pointing it at your app's Application (client) ID:

New-ApplicationAccessPolicy -AppId <your-app-client-id> -PolicyScopeGroupId AppMailSendScope@yourdomain.com -AccessRight RestrictAccess -Description "Restrict app to specific mailbox"
  1. Verify it's working:

Test-ApplicationAccessPolicy -AppId <your-app-client-id> -Identity targetuser@yourdomain.com

Verification

After saving, use the email configuration verify action in the Settings UI. For Microsoft Graph, verification should acquire a token and send a test email.

MS Graph — respects HTTP_PROXY, HTTPS_PROXY, NO_PROXY at the application level (httpx with trust_env=True).