PI Nexus+ / Administration Guide
Notifications
This chapter sets up email: the mail connection (SMTP or Microsoft Graph), which emails PI Nexus+ sends, and who receives them. Email types, defaults and delivery timings are in the Notifications Reference.
Overview
This chapter sets up email: the mail connection (SMTP or Microsoft Graph), which emails PI Nexus+ sends, and who receives them. Email types, defaults and delivery timings are in the Notifications Reference.
An email reaches a recipient only when three things are true: delivery is enabled, its rule is switched on under Delivery Rules, and the recipient has its email type ticked.
Connect to the mail server
You need a sender address and one of two ways to send: an SMTP relay that accepts mail from the web server and the scanner server, or Microsoft Graph (Microsoft 365 only).

- Open Admin > Notifications, tab Connection.
- Choose the Transport: SMTP, or Microsoft Graph (HTTPS, Microsoft 365) (see Microsoft 365 with Microsoft Graph).
- Enter From Address and optionally From Name. For SMTP, also enter SMTP Host, Port and Security (Use SSL/TLS), and choose the Authentication the server expects (table below).
- Enter your own address under Test recipient, choose Save & send test and check that the email arrives. A failed test shows the server's reply with a hint on how to fix it.
- Choose Enable delivery, then Save.
Use SSL/TLS off never uses TLS, even if the server offers it. On uses TLS from the start on port 465 and STARTTLS on every other port.
| Method | Use it for | Fields |
|---|---|---|
| None | An internal relay, or a Microsoft 365 connector, that accepts mail from these servers without a sign-in | None |
| User name and password | Servers that accept a user and password, for example with an app password | Username, Password; leave Password blank to keep the saved one |
| OAuth 2.0 | Microsoft 365 (Exchange Online) over SMTP | Mailbox, Tenant ID, Application (client) ID, Credential (Client secret or Certificate), Microsoft cloud, HTTPS proxy |
Installations upgraded from an earlier version keep their settings: with a Username they use User name and password, without one None.
The SMTP password and the OAuth client secret are stored protected. On a split installation, install the shared secret certificate on both servers first (see Protect the client secret with a certificate in OpenID Connect); until then both stay unprotected so that the scanner service can still send email, and Admin > Support > Readiness shows Mail secrets as a Warning. Once the certificate is installed and PI Nexus+ restarted, both are protected with it automatically, including values saved earlier while the installation was a single server.
Pause delivery stops all emails without losing the settings.
Microsoft 365 with OAuth 2.0
Exchange Online disables user name and password (basic authentication) for SMTP by default at the end of December 2026; sends then fail with 5.7.30 or 5.7.139. With OAuth 2.0, PI Nexus+ signs in as an application registered in Microsoft Entra ID. Until you switch, a Microsoft 365 administrator can re-enable basic authentication for the tenant while Microsoft still allows it.
You need a Microsoft 365 administrator, a sender mailbox (a shared mailbox works), and outbound HTTPS (443) to login.microsoftonline.com and SMTP (587) to smtp.office365.com from the web server and the scanner server.

- In the Microsoft Entra admin center, open App registrations > New registration and register
PI Nexus+ Mailfor this organization only. Note the Application (client) ID and Directory (tenant) ID. - Under Certificates & secrets, create a client secret and copy its Value (not the Secret ID), or upload the public key of a certificate. Renew the secret before it expires.
- Under API permissions, choose Add a permission > APIs my organization uses > Office 365 Exchange Online > Application permissions > SMTP.SendAsApp, then Grant admin consent.
- Allow the application to use the sender mailbox in Exchange Online PowerShell (below). Take the object ID from Enterprise applications, not from App registrations.
- On the Connection tab, enter
smtp.office365.com, port587, tick Use SSL/TLS, choose OAuth 2.0 (Microsoft 365) and enter Mailbox (the sender; empty means the From Address), Tenant ID, Application (client) ID and the secret or the certificate thumbprint. - Send the test email.
Connect-ExchangeOnline
New-ServicePrincipal -AppId <Application (client) ID> -ObjectId <Enterprise application object ID> -DisplayName "PI Nexus+ Mail"
Add-MailboxPermission -Identity pinexus@contoso.com -User <Enterprise application object ID> -AccessRights FullAccess
Set-CASMailbox -Identity pinexus@contoso.com -SmtpClientAuthenticationDisabled $false
Set-CASMailbox is needed because SMTP AUTH is off for the tenant by default; to allow it for every mailbox, run Set-TransportConfig -SmtpClientAuthenticationDisabled $false instead. A new FullAccess permission can take up to an hour to apply.
Certificate instead of a secret. Import the certificate with its private key into Local Computer > Personal on the web server and on the scanner server, and grant the service account that runs PINexusAppPool and the PI Nexus+ Scanner service read access to the private key (certificate manager, All Tasks > Manage Private Keys). Both send email: the web server for the test email, the scanner for everything else. Choose Certificate and enter its thumbprint.
Microsoft cloud selects the endpoints for Global, US Government (GCC High), US Government (DoD) or China (21Vianet). HTTPS proxy is used only for the token request; leave it empty to use the proxy of the service account.
Microsoft 365 with Microsoft Graph
Choose Transport Microsoft Graph (HTTPS, Microsoft 365) when SMTP is blocked, or when you do not want SMTP AUTH enabled. PI Nexus+ then sends through the Microsoft Graph API over HTTPS only, with the same app registration fields; SMTP Host, Port, Security and Authentication are not used. Large attachments are uploaded in parts; the Exchange Online message size limit (35 MB by default) still applies.
You need outbound HTTPS (443) to login.microsoftonline.com and graph.microsoft.com from both servers, directly or through HTTPS proxy, and steps 1 and 2 of Microsoft 365 with OAuth 2.0 (the certificate rules are the same).

- Allow the application to send as the sender mailbox. Recommended: in Exchange Online PowerShell, assign the role
Application Mail.Sendlimited to that mailbox (below). The alternative, the Microsoft Graph application permission Mail.Send with admin consent, lets the application send as every mailbox of the tenant, so a leaked secret could send mail as anyone. - On the Connection tab, choose the Graph transport and enter From Address, Mailbox (empty means the From Address), Tenant ID, Application (client) ID and the secret or thumbprint.
- Send the test email.
Connect-ExchangeOnline
New-ServicePrincipal -AppId <Application (client) ID> -ObjectId <Enterprise application object ID> -DisplayName "PI Nexus+ Mail"
New-ManagementScope -Name "PI Nexus+ senders" -RecipientRestrictionFilter "PrimarySmtpAddress -eq 'pinexus@contoso.com'"
New-ManagementRoleAssignment -App <Enterprise application object ID> -Role "Application Mail.Send" -CustomResourceScope "PI Nexus+ senders"
Graph needs neither SMTP.SendAsApp, FullAccess nor SMTP AUTH. If New-ManagementScope is refused, run Enable-OrganizationCustomization once and retry after it has completed. Do not also grant Mail.Send in Entra ID, because it applies to all mailboxes whatever the scope. Failures and their fixes are listed under Mail server errors in the Reference.
Choose which emails are sent

- Under Manual scan completion, tick the outcomes that send an email: Succeeded, Failed (also used for completed with errors), Canceled, Skipped.
- Under Operational health, tick Enable, then choose New issues, Severity escalations and Recoveries after an alert.
- Choose the Minimum severity: Warnings and errors or Errors only.
- Tick Automatic monitoring failures to be told when automatic scan work fails. It works on its own, without Enable and regardless of the minimum severity.
- Switch on the other groups you use: Auto Tune, Analysis recalculation (New recalculation suggestions), PI Interface runtime, PI Adapter runtime, Host monitoring and Access. For host emails, see Host Monitoring; for access emails, see Access Map.
- Under Manual scan attachments, optionally attach an Issues CSV or Changes CSV to manual scan emails, with the Issue severities and Max CSV size (MB).
- Choose Save.
Health issue emails start quietly: the first completed scan after switching them on sets a baseline, so only later changes are mailed. Automatic scans never send a completion email; failed automatic work is reported by Automatic monitoring failures once its retries are used up.
Add recipients

- On the Recipients tab, choose Add recipient.
- Enter the Email Address and optionally a Display Name.
- Under Sites (shown once two or more sites exist), choose All sites or Selected sites and tick the sites.
- Under Emails, tick the email types this recipient should receive. All are ticked except Host monitoring escalations, which makes the recipient an escalation recipient, and Access issues, which names who holds broad rights.
- Choose Add recipient.
Prefer team mailboxes to personal addresses.
Emails per site
With sites, every email is split by site. A recipient with Selected sites receives only the items of its sites, and nothing when no item concerns them. Items whose site is unknown, and all Auto Tune emails, go to All sites recipients only. Recipients never see the addresses of recipients with another scope.
When you delete a site, it is removed from recipients. A recipient whose only site was deleted is disabled; to enable it again, edit it and choose All sites or Selected sites first.
Delivery problems
If the mail server is unreachable or answers with a temporary error, PI Nexus+ keeps retrying for up to 24 hours. Failed deliveries are reported under Admin > Support > Readiness. Confirmation delays and repeat rules for runtime alerts are in Delivery and retries in the Reference.
Reference: Notifications Reference
