FAQ - Office365 Email Configuration
Section titled “FAQ - Office365 Email Configuration”Configure Nodinite email Alarm Plugins for Office365/Microsoft 365 SMTP delivery. This guide provides step-by-step configuration requirements and troubleshooting for common Office365 email issues. The Monitoring Service sends the emails; emails it cannot send wait in the Alarm Queue and are retried.

Animated walkthrough: the OAuth 2.0 settings for Microsoft 365, with sample values. The steps are under Step 5.
Understanding SMTP Authentication Methods
Section titled “ Understanding SMTP Authentication Methods”Microsoft Exchange Online supports two authentication methods for SMTP. Choosing the right one from the start avoids rework and ensures long-term supportability:
login.microsoftonline.com"] Entra -->|"access token, SMTP.SendAsApp"| MS MS -->|"STARTTLS on 587, AUTH with the token or the password"| EXO["fa:fa-envelope Exchange Online
smtp.office365.com"] EXO -->|"sent as the Sender address mailbox"| Rcpt["fa:fa-inbox Recipients"] EXO -->|"login or send rejected"| Queue["fa:fa-list Alarm Queue
Last Exception"] Queue -->|"retry"| MS style MS fill:#2678BD style Entra fill:#9E59BB,color:#fff style EXO fill:#3F827B,color:#fff style Queue fill:#c33d34
Blue: the Monitoring Service sends every alert. With OAuth 2.0 it first gets a token from Microsoft Entra ID (purple); with Basic Authentication it skips that step and sends the mailbox password. Both connect to Exchange Online (teal) on port 587 and send as the Sender address mailbox. Red: a rejected login or send leaves the alert in the Alarm Queue for the next retry.
| Method | How It Works | Typical Requirements | Status |
|---|---|---|---|
| Basic Authentication | Username and password sent with each SMTP request using the AUTH LOGIN command |
SMTP AUTH enabled per mailbox, MFA disabled, non-expiring password | ⚠️ Deprecated by Microsoft |
| OAuth 2.0 (OpenID Connect) | Short-lived bearer token obtained from Microsoft Entra; no password transmitted over SMTP | App registration in Microsoft Entra, SMTP.SendAsApp application permission, admin consent, SMTP AUTH still enabled on sending mailbox |
✅ Recommended for all new deployments |
The sections below cover both methods. If you are setting up Nodinite for the first time with Office365, go directly to Using OAuth 2.0 (OpenID Connect) with Office365.
Office365 SMTP Requirements
Section titled “Office365 SMTP Requirements”To send emails through Office365/Microsoft 365 SMTP servers, ensure the following requirements are met:
Account Requirements
Section titled “Account Requirements”- Email sending permissions - Account must have rights to send emails
- SMTP Authentication enabled - Account must have SMTP AUTH enabled in Office365 portal (see below)
- Multi-factor authentication disabled - MFA must be disabled for the SMTP service account
- Password expiration policy - Password should never expire, OR establish a routine to update it before expiration
Network Requirements
Section titled “Network Requirements”- Outbound TCP Port 587 - Must be allowed through firewalls
- DNS Port 53 (TCP and UDP) - Must be open for hostname resolution
- SSL/TLS encryption - Must be enabled in Nodinite Email Plugin configuration
All ports the Monitoring Service needs for Alarm Plugins are in its firewall settings.
Nodinite Configuration
Section titled “Nodinite Configuration”- SSL is required - Must be checked in the Email Alarm Plugin settings (on port 587 the connection is upgraded with STARTTLS)
- SMTP Server -
smtp.office365.com - Port -
587 - Username - Full email address (e.g.,
noreply@yourdomain.com) - Password - Account password
Enable SMTP Authentication in Office365
Section titled “Enable SMTP Authentication in Office365”SMTP Authentication must be enabled for the service account in the Office365 admin portal:
Step 1: Access Exchange Admin Center
Section titled “Step 1: Access Exchange Admin Center”- Sign in to Microsoft 365 Admin Center
- Navigate to Admin centers → Exchange
- Go to Recipients → Mailboxes
- Select the mailbox used for sending emails
Step 2: Enable SMTP AUTH
Section titled “Step 2: Enable SMTP AUTH”- Click on the mailbox to open details
- Select the Mail flow settings tab
- Under Email apps, click Manage email apps settings
- Check the box for Authenticated SMTP
- Click Save

Authenticated SMTP must be checked on the sending mailbox, for Basic and OAuth alike.
Configure Nodinite Email Alarm Plugin
Section titled “Configure Nodinite Email Alarm Plugin”Email with Options Configuration
Section titled “Email with Options Configuration”-
Navigate to Administration → Settings → Alarm Plugins
-
Select the default Email options entry, or click Add Alarm to create a new alarm entry (how)
-
Open Configuration > SMTP options. On an entry that isn't the default one, tick Override SMTP Settings options first; otherwise it uses the default entry's SMTP options.
-
Configure the following settings, with Authentication Type set to Basic Authentication:
Setting Value SMTP Server smtp.office365.comPort 587SSL is required ✅ Checked (required) Enable Authentication ✅ Checked Username Full email address (e.g., noreply@yourdomain.com)Password Account password -
Click Save
-
Click Execute Alarm test to verify email delivery
Using OAuth 2.0 (OpenID Connect) with Office365
Section titled “Using OAuth 2.0 (OpenID Connect) with Office365”Nodinite v7 supports OAuth 2.0 authentication for SMTP: set Authentication Type to OAuth 2.0 - Client Credentials on the SMTP options tab. This is the recommended approach for Office365/Microsoft 365 as Microsoft has deprecated Basic Authentication in Exchange Online.
Step 1: Register an Application in Microsoft Entra
Section titled “Step 1: Register an Application in Microsoft Entra”- Sign in to Microsoft Entra admin center
- Navigate to Identity → Applications → App registrations
- Click New registration
- Enter a name (e.g.,
Nodinite Email Notifications) - Select Accounts in this organizational directory only
- Click Register
- Note the Application (client) ID and Directory (tenant) ID — you will need these
Step 2: Add API Permissions
Section titled “Step 2: Add API Permissions”- In the registered app, go to API permissions → Add a permission
- Select APIs my organization uses and search for Office 365 Exchange Online
- Choose Application permissions
- Add the permission:
SMTP.SendAsApp - Click Add permissions
- Click Grant admin consent for your organization
Step 3: Create a Client Secret
Section titled “Step 3: Create a Client Secret”- Go to Certificates & secrets → New client secret
- Enter a description and set an expiry period
- Click Add
- Copy the Value immediately — it is only shown once
Step 4: Enable SMTP AUTH for the Sending Mailbox
Section titled “Step 4: Enable SMTP AUTH for the Sending Mailbox”Even when using OAuth, the sending mailbox must have Authenticated SMTP enabled in Exchange Online — follow Step 2: Enable SMTP AUTH above.
Step 5: Configure the Email with Options Plugin
Section titled “Step 5: Configure the Email with Options Plugin”The walkthrough at the top of this page shows these steps with sample values:
-
Navigate to Administration → Settings → Alarm Plugins, and open the Email options entry
-
Open the Configuration tab, then SMTP options
-
On an entry that isn't the default one, tick Override SMTP Settings options
-
Configure the following settings:
Setting Value SMTP Server smtp.office365.comPort 587SSL is required ✅ Checked (required; port 587 is upgraded with STARTTLS) Enable Authentication ✅ Checked Authentication Type OAuth 2.0 - Client Credentials Client ID Application (client) ID from Step 1 Client Secret Secret value from Step 3 OpenID Endpoint Configuration https://login.microsoftonline.com/{tenant-id}/v2.0/.well-known/openid-configuration(replace{tenant-id}with your Directory tenant ID)Scope https://outlook.office365.com/.default -
On the Recipients tab, set the Sender address to the sending mailbox. With OAuth, the plugin signs in to Exchange Online as the Sender address (XOAUTH2), so it must be the mailbox the app registration may send as.
-
Click Save
-
Click Execute Alarm test to verify email delivery
Troubleshooting Common Issues
Section titled “Troubleshooting Common Issues”Issue: "Authentication failed"
Section titled “Issue: "Authentication failed"”Exchange Online rejects the sign-in, typically with an answer such as 535 5.7.139 Authentication unsuccessful: SMTP Authentication is not enabled, or the credentials are wrong.
Solution
Section titled “Solution”- Verify SMTP AUTH is enabled in Office365 (see Enable SMTP Authentication above)
- Basic Authentication: confirm username is the full email address, that the password is correct, and that MFA is disabled for the account
- OAuth 2.0 - Client Credentials: confirm the Sender address is the mailbox the app registration may send as, and that admin consent for
SMTP.SendAsAppis granted
Issue: "Connection timeout"
Section titled “Issue: "Connection timeout"”Firewall blocking outbound TCP port 587.
Solution
Section titled “Solution”# Test connectivity to Office365 SMTPTest-NetConnection -ComputerName smtp.office365.com -Port 587If TcpTestSucceeded is False:
- Allow outbound TCP 587 in Windows Firewall
- Check corporate firewall rules
- Verify no proxy blocking SMTP traffic
Issue: "SSL/TLS handshake failed"
Section titled “Issue: "SSL/TLS handshake failed"”SSL is required not checked, or TLS 1.2 disabled on the server.
Solution
Section titled “Solution”- Ensure SSL is required is checked in the Email Alarm Plugin
- Verify that TLS 1.2 is enabled in Windows Server (SChannel); Office365 requires TLS 1.2 or later. The 7.12 Monitoring Service runs on .NET 10, which uses the operating system's TLS settings; TLS 1.2 and 1.3 are on by default on supported Windows Server versions, and the .NET Framework registry keys (
SchUseStrongCrypto) don't affect it.
Issue: "Mailbox not found"
Section titled “Issue: "Mailbox not found"”Email address does not exist or username incorrect.
Solution
Section titled “Solution”- Verify the email address exists in Office365
- Confirm username in Nodinite is the full email address
- Check for typos in email address
Issue: Password expired
Section titled “Issue: Password expired”Service account password has expired.
Solution
Section titled “Solution”-
Reset password in Office365 admin portal
-
Update password in Nodinite Email Alarm Plugin
-
Configure password to never expire:
- In the Office365 admin center, open Active users
- Select the service account
- Click Reset password
- Uncheck Require this user to change their password when they first sign in
- Check Password never expires
DNS Resolution Issues
Section titled “DNS Resolution Issues”If you encounter DNS resolution errors:
- Verify DNS servers - Ensure Nodinite server can resolve
smtp.office365.com - Test DNS resolution:
# Test DNS resolutionnslookup smtp.office365.com
# Test with specific DNS server (e.g., Google DNS)nslookup smtp.office365.com 8.8.8.8See FAQ - DNS Resolution Errors for detailed DNS troubleshooting.
Multi-Factor Authentication (MFA)
Section titled “Multi-Factor Authentication (MFA)”Office365 accounts with MFA enabled cannot use SMTP authentication directly. You have two options:
Option 1: Disable MFA (Recommended for Service Accounts)
Section titled “Option 1: Disable MFA (Recommended for Service Accounts)”- Create a dedicated service account for Nodinite email notifications
- Disable MFA for this account only
- Use conditional access policies to restrict access (e.g., allow only from Nodinite server IP)
- Set password to never expire
Option 2: Use App Password (Alternative)
Section titled “Option 2: Use App Password (Alternative)”If MFA must remain enabled:
- Generate an app password in Office365
- Use the app password instead of the account password in Nodinite
- Note: App passwords are deprecated in some Office365 plans
Option 3: Use OAuth 2.0 — Recommended for Nodinite v7+
Section titled “Option 3: Use OAuth 2.0 — Recommended for Nodinite v7+”Switch to OAuth 2.0 (OpenID Connect) authentication in the Nodinite Email with Options plugin. This works regardless of MFA settings and is the modern, Microsoft-recommended approach. See Using OAuth 2.0 (OpenID Connect) with Office365 above for full setup instructions.
Official Microsoft Documentation
Section titled “Official Microsoft Documentation”For additional configuration guidance, refer to Microsoft's official documentation:
How to set up a multifunction device or application to send email using Microsoft 365 or Office 365
Authenticate an IMAP, POP or SMTP connection using OAuth
Deprecation of Basic Authentication in Exchange Online
Configuration Checklist
Section titled “Configuration Checklist”Basic Authentication Checklist
Section titled “Basic Authentication Checklist”Before testing with Basic Authentication, verify:
- ✅ The sending account exists in Office365 with email sending permissions
- ✅ SMTP Authentication enabled in Office365 mailbox settings
- ✅ Multi-factor authentication disabled for service account
- ✅ Password never expires (or routine established for updates)
- ✅ Outbound TCP port 587 allowed in firewall
- ✅ DNS port 53 (UDP and TCP) open
- ✅ Nodinite Email Plugin SMTP options configured with
smtp.office365.com:587 - ✅ SSL is required checkbox checked
- ✅ Username is full email address
- ✅ Password is correct
OAuth 2.0 (OpenID Connect) Checklist
Section titled “OAuth 2.0 (OpenID Connect) Checklist”Before testing with OAuth 2.0, verify:
- ✅ App registration created in Microsoft Entra
- ✅
SMTP.SendAsAppapplication permission added and admin consent granted - ✅ Client secret created and stored securely (shown only once at creation)
- ✅ Calendar reminder set before client secret expiry date
- ✅ SMTP Authentication still enabled on the sending mailbox in Exchange Online
- ✅ Outbound TCP port 587 allowed in firewall
- ✅ DNS port 53 (UDP and TCP) open
- ✅ Nodinite Email Plugin Authentication Type set to OAuth 2.0 - Client Credentials
- ✅ Sender address is the sending mailbox the app registration may send as
- ✅ SSL is required checkbox checked
- ✅ Correct tenant ID used in OpenID Endpoint Configuration URL
- ✅ Scope set to
https://outlook.office365.com/.default