IDEAL ADMINISTRATION
Version 27.1

FAQ

How to perform Real-Time Audit of Active Directory Domains?

How to send alert emails through Microsoft 365 without an SMTP password?

Our alerts are sent through the Microsoft 365 SMTP server (smtp.office365.com) with an account and its password. Microsoft is turning off SMTP password authentication in Exchange Online.

How can we keep receiving the emails from IDEAL Administration?

Since version 27.5, IDEAL Administration sends its emails directly through Microsoft 365, with the Microsoft Graph API, instead of the SMTP server. It signs in with an app registered in Entra ID (formerly Azure AD): no user password, no SMTP authentication, and nothing to change when Microsoft turns off SMTP password authentication. This mode is used for all IDEAL Administration emails: real-time audit alerts, share permission alerts and report, and the test email.

1. Register the app in Entra ID

With an administrator account of your Microsoft 365 tenant, in the Microsoft Entra admin center (entra.microsoft.com):

  1. Applications > App registrations > New registration: a name (for example IDEAL Administration - alerts), Accounts in this organizational directory only, no redirect URI, then Register.
  2. Overview page: note the Application (client) ID and the Directory (tenant) ID.
  3. API permissions > Add a permission > Microsoft Graph > Application permissions: check Mail.Send, then Add permissions. Then click Grant admin consent: the Status column must show Granted. You can remove the User.Read permission added by default, it is not used.
  4. Certificates & secrets > Client secrets > New client secret: a description and an expiry period. Copy the secret Value right away (not its Secret ID): it is not shown again. Also note its expiry date.

2. Restrict sending to a single mailbox (recommended)

The Mail.Send application permission allows sending as any mailbox of the tenant. To restrict it to the alert mailbox, in Exchange Online PowerShell (ExchangeOnlineManagement module, Connect-ExchangeOnline):

New-ApplicationAccessPolicy -AppId <Application ID> -PolicyScopeGroupId alerts@yourdomain.com -AccessRight RestrictAccess -Description "IDEAL Administration: alert sending"

Check with Test-ApplicationAccessPolicy -Identity alerts@yourdomain.com -AppId <Application ID>: the result must be Granted, and Denied for another mailbox. The policy can take up to an hour to apply. To allow several mailboxes, give a mail-enabled security group instead of an address.

Microsoft is gradually replacing these policies with RBAC for Applications in Exchange Online; they are still supported.

3. Configure IDEAL Administration

Menu Options > General, Email tab:

  • Send via: choose Microsoft 365 (Graph);
  • Tenant ID: the Directory (tenant) ID, or your yourdomain.onmicrosoft.com domain;
  • Application ID: the Application (client) ID;
  • Client secret: the secret value;
  • Sender: the address of the sending mailbox (a shared mailbox, which needs no license, is fine); Display name is optional;
  • Recipients: the addresses that receive the alerts, separated by ";".

Click Send a test email, then confirm. The SMTP server settings are kept: you can switch back at any time with Send via: SMTP server.

The computer must reach login.microsoftonline.com and graph.microsoft.com over HTTPS (port 443). IDEAL Administration goes through the proxy set in the ? > Proxy configuration menu. The IACtrl monitoring service uses that proxy when it is turned off or entered manually (without the proxy user name), otherwise it uses the Windows proxy.

Alerts sent by the monitoring service

The share permission alerts and report are sent by the IACtrl service, even when IDEAL Administration is closed. The client secret is passed to it in a protected way (LSA secret of the computer) when you confirm the Email tab, if email alerts are enabled in the monitoring configuration. If you enable them later, confirm the monitoring configuration.

If an error occurs

MessageCause and solution
Microsoft 365 cannot be reached no Internet access, proxy or firewall: check HTTPS access to the two addresses above and the proxy settings
Microsoft 365 sign-in rejected AADSTS90002: unknown tenant ID; AADSTS700016: application ID not found in this tenant; AADSTS7000215: wrong secret (you may have copied the Secret ID instead of its value); AADSTS7000222: expired secret, create a new one
Microsoft 365 rejected the message ErrorAccessDenied: Mail.Send permission missing, of type Delegated instead of Application, without admin consent, or mailbox not allowed by the access policy; ErrorInvalidUser or MailboxNotEnabledForRESTAPI: the sender has no Exchange Online mailbox

Keep an eye on the secret expiry date: a few days before it, create a new secret in Entra ID, paste its value in the Email tab, send a test email, then delete the old secret.

Last modification: 12/01/2026

Want to check for yourself? Try IDEAL ADMINISTRATION free for 30 days.

DOWNLOAD FREE 30-DAY TRIAL

No commitment • No agent to deploy • Support included • Ready to use in 5 minutes