<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Microsoft 365 &#8211; Nagios Library</title>
	<atom:link href="https://library.nagios.com/tag/microsoft-365/feed/" rel="self" type="application/rss+xml" />
	<link>https://library.nagios.com</link>
	<description>Complete Nagios monitoring resources and documentation</description>
	<lastBuildDate>Tue, 10 Feb 2026 18:52:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://library.nagios.com/wp-content/uploads/2024/11/Nagios-Blue-N.svg</url>
	<title>Microsoft 365 &#8211; Nagios Library</title>
	<link>https://library.nagios.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Nagios XI Email Notifications for Microsoft 365 Outlook</title>
		<link>https://library.nagios.com/tutorials/nagios-xi-email-notifications-via-outlook-microsoft-365-smtp/</link>
		
		<dc:creator><![CDATA[Ayub Huruse]]></dc:creator>
		<pubDate>Thu, 11 Sep 2025 13:45:00 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Microsoft 365]]></category>
		<category><![CDATA[Notifications]]></category>
		<guid isPermaLink="false">https://library.nagios.com/?p=63354</guid>

					<description><![CDATA[This step-by-step guide shows how to send Nagios XI notifications through Outlook using secure SMTP with TLS and a Microsoft 365 app password. You’ll set up MFA, generate an app password, configure SMTP in Nagios XI, verify with test messages, and troubleshoot common errors. Prerequisites Step 1: Enable MFA and Generate a Microsoft 365 App [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong>This step-by-step guide shows how to send Nagios XI notifications through Outlook using secure SMTP with TLS and a Microsoft 365 app password.</strong> You’ll set up MFA, generate an app password, configure SMTP in Nagios XI, verify with test messages, and troubleshoot common errors.</p>



<h2 class="wp-block-heading">Prerequisites</h2>



<ul class="wp-block-list">
<li><strong>Outlook mailbox</strong> that will appear in the From line (e.g., <code>alerts@your-domain.com</code>).</li>



<li><strong>MFA enabled</strong> on the sending account and tenant policy that <strong>allows app passwords</strong>.</li>



<li><strong>Nagios XI admin access</strong> and outbound network access from the XI server to <code>smtp.office365.com</code> on <strong>port 587</strong> (STARTTLS).</li>



<li><strong>Accurate time/NTP</strong> and up-to-date CA certificates on the XI host to avoid TLS/certificate issues.</li>
</ul>



<h2 class="wp-block-heading">Step 1: Enable MFA and Generate a Microsoft 365 App Password</h2>



<ol class="wp-block-list">
<li>Sign in to your <strong>Security info</strong> page for your work/school account and ensure <strong>two-step verification (MFA)</strong> is enabled.</li>



<li>In Security info, select Add method → App password, then choose Generate app password. Name it “Nagios XI” or another memorable name if you have multiple app passwords.</li>



<li>Copy the <strong>app password</strong> and store it securely for use in Nagios XI. Do not use your regular account password, and ensure no extra spaces are copied.</li>
</ol>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="1028" height="736" src="https://library.nagios.com/wp-content/uploads/2025/08/16-app-password-outlook.webp" alt="Screenshot of security info page" class="wp-image-63356" title="Nagios XI Email Notifications for Microsoft 365 Outlook 1" srcset="https://library.nagios.com/wp-content/uploads/2025/08/16-app-password-outlook.webp 1028w, https://library.nagios.com/wp-content/uploads/2025/08/16-app-password-outlook-300x215.webp 300w, https://library.nagios.com/wp-content/uploads/2025/08/16-app-password-outlook-1024x733.webp 1024w, https://library.nagios.com/wp-content/uploads/2025/08/16-app-password-outlook-768x550.webp 768w" sizes="(max-width: 1028px) 100vw, 1028px" /><figcaption class="wp-element-caption">Generating App Password.</figcaption></figure>



<p>If App password isn’t available, your tenant likely blocks app passwords (Security Defaults or conditional access policy). Use Microsoft with OAuth2 in XI or an SMTP relay instead.</p>



<h2 class="wp-block-heading">Step 2: Configure SMTP Settings in Nagios XI</h2>



<ol class="wp-block-list">
<li>In XI, go to <strong>Admin → System Config → Email Settings</strong>.</li>



<li>Set <strong>Send Mail From</strong> to a valid sender in your tenant, for example: <code>Nagios Alerts &lt;alerts@your-domain.com&gt;</code>.</li>



<li><strong>Mail Method:</strong> <code>SMTP</code>.</li>



<li>Configure <strong>SMTP Settings</strong>:
<ul class="wp-block-list">
<li><strong>Host:</strong> <code>smtp.office365.com</code></li>



<li><strong>Port:</strong> <code>587</code></li>



<li><strong>Security:</strong> <code>TLS</code></li>



<li><strong>Username:</strong> full mailbox UPN (e.g., <code>alerts@your-domain.com</code>)</li>



<li><strong>Password:</strong> the <strong>app password</strong> from Step 1</li>
</ul>
</li>



<li>Click <strong>Update Settings</strong>.</li>
</ol>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="641" src="https://library.nagios.com/wp-content/uploads/2025/08/Screenshot-2025-08-29-072003-1024x641.png" alt="Screenshot of outbound mail settings in Nagios XI" class="wp-image-63357" title="Nagios XI Email Notifications for Microsoft 365 Outlook 2" srcset="https://library.nagios.com/wp-content/uploads/2025/08/Screenshot-2025-08-29-072003-1024x641.png 1024w, https://library.nagios.com/wp-content/uploads/2025/08/Screenshot-2025-08-29-072003-300x188.png 300w, https://library.nagios.com/wp-content/uploads/2025/08/Screenshot-2025-08-29-072003-768x481.png 768w, https://library.nagios.com/wp-content/uploads/2025/08/Screenshot-2025-08-29-072003.png 1472w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">Configuring Email Settings.</figcaption></figure>



<p>If the test later fails with <strong>“client not authenticated”</strong> or <strong>5.7.139</strong>, confirm <strong>Authenticated SMTP</strong> is enabled for the mailbox/tenant and that you are using <strong>STARTTLS on 587</strong>.</p>



<h2 class="wp-block-heading">Step 3: Update User Email in Account Settings</h2>



<ol class="wp-block-list">
<li>In XI, click the <strong>user icon → Account Settings</strong>.</li>



<li>Update <strong>Email Address</strong> to the address that should <strong>receive notifications</strong> (e.g., <code>alerts@your-domain.com</code> or another inbox).</li>



<li>Enter your <strong>current XI password</strong> to confirm.</li>



<li>Click <strong>Update Settings</strong>.</li>
</ol>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="468" src="https://library.nagios.com/wp-content/uploads/2025/09/Screenshot-2025-09-04-082751-1024x468.png" alt="Screenshot of account information page in Nagios XI" class="wp-image-63855" title="Nagios XI Email Notifications for Microsoft 365 Outlook 3" srcset="https://library.nagios.com/wp-content/uploads/2025/09/Screenshot-2025-09-04-082751-1024x468.png 1024w, https://library.nagios.com/wp-content/uploads/2025/09/Screenshot-2025-09-04-082751-300x137.png 300w, https://library.nagios.com/wp-content/uploads/2025/09/Screenshot-2025-09-04-082751-768x351.png 768w, https://library.nagios.com/wp-content/uploads/2025/09/Screenshot-2025-09-04-082751-1536x703.png 1536w, https://library.nagios.com/wp-content/uploads/2025/09/Screenshot-2025-09-04-082751.png 1878w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">Account Settings.</figcaption></figure>



<h2 class="wp-block-heading">Step 4: Send a Test Email</h2>



<p>1. Return to <strong>Admin → System Config → Email Settings</strong>.</p>



<p>2. Click <strong>Send A Test Email</strong> to verify the SMTP configuration.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="468" src="https://library.nagios.com/wp-content/uploads/2025/09/Screenshot-2025-09-04-083445-1024x468.png" alt="Screenshot of test email settings screen in Nagios XI" class="wp-image-63854" title="Nagios XI Email Notifications for Microsoft 365 Outlook 4" srcset="https://library.nagios.com/wp-content/uploads/2025/09/Screenshot-2025-09-04-083445-1024x468.png 1024w, https://library.nagios.com/wp-content/uploads/2025/09/Screenshot-2025-09-04-083445-300x137.png 300w, https://library.nagios.com/wp-content/uploads/2025/09/Screenshot-2025-09-04-083445-768x351.png 768w, https://library.nagios.com/wp-content/uploads/2025/09/Screenshot-2025-09-04-083445.png 1531w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">Sending Test Email.</figcaption></figure>



<p>3. Check the destination inbox and <strong>Spam/Junk</strong> folder for the test message.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="340" src="https://library.nagios.com/wp-content/uploads/2025/08/Screenshot-2025-08-20-112650-2-1024x340.png" alt="Screenshot of Nagios XI test email" class="wp-image-63359" title="Nagios XI Email Notifications for Microsoft 365 Outlook 5" srcset="https://library.nagios.com/wp-content/uploads/2025/08/Screenshot-2025-08-20-112650-2-1024x340.png 1024w, https://library.nagios.com/wp-content/uploads/2025/08/Screenshot-2025-08-20-112650-2-300x100.png 300w, https://library.nagios.com/wp-content/uploads/2025/08/Screenshot-2025-08-20-112650-2-768x255.png 768w, https://library.nagios.com/wp-content/uploads/2025/08/Screenshot-2025-08-20-112650-2.png 1300w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">Nagios XI Test Email.</figcaption></figure>



<h2 class="wp-block-heading">Step 5: Test Notifications with a Real Alert</h2>



<ol class="wp-block-list">
<li>Assign the Microsoft 365–backed contact to a <strong>test host or service</strong> in XI.</li>



<li>Trigger an alert (e.g., force a soft problem state or use <strong>Send Custom Notification</strong>).</li>



<li><strong>Verify that the alert email arrives</strong> (check Spam/Junk inbox if needed).</li>
</ol>



<h2 class="wp-block-heading">Troubleshooting</h2>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th><strong>Symptom</strong></th><th><strong>Likely Cause</strong></th><th><strong>Solution</strong></th></tr></thead><tbody><tr><td><code>5.7.139 Authentication unsuccessful</code> or <code>5.7.57 Client not authenticated</code></td><td><strong>SMTP AUTH</strong> disabled for the mailbox/org, or wrong credentials/TLS mode.</td><td><strong>Enable Authenticated SMTP</strong> for the mailbox; confirm <strong>port 587 + STARTTLS</strong>; re-enter the <strong>app password</strong>.</td></tr><tr><td><strong>“App password” option missing</strong> in Security info</td><td>Tenant <strong>blocks app passwords</strong> (Security Defaults or policy).</td><td>Adjust policy (if allowed) or use <strong>Microsoft with OAuth2</strong> in XI, or send via an SMTP relay.</td></tr><tr><td><strong>Connection timeouts</strong></td><td>Firewall egress blocked.</td><td>Allow outbound TCP <strong>587</strong> to <code>smtp.office365.com</code>.</td></tr><tr><td><strong>TLS handshake/cert errors</strong></td><td>Out-of-date CA bundle or <strong>system time not synced</strong>.</td><td>Update CA certificates; verify <strong>NTP</strong>; retry with <strong>TLS on 587</strong>.</td></tr><tr><td><strong>Emails land in Spam</strong></td><td>From/Envelope-From misalignment, content issues.</td><td>Use a sender in your tenant; configure <strong>SPF</strong>, <strong>DKIM</strong>, <strong>DMARC</strong>; write meaningful subjects/bodies (avoid bare links).</td></tr><tr><td><strong>Works then stops</strong></td><td>Org deprecates Basic Auth/SMTP AUTH or tightens policy.</td><td>Migrate to <strong>OAuth2</strong> via <strong>Microsoft with OAuth2</strong> in XI.</td></tr></tbody></table></figure>



<h2 class="wp-block-heading">Conclusion</h2>



<p>Microsoft 365 App Password + SMTP AUTH can deliver Nagios XI notifications securely over TLS on port 587 with <code>smtp.office365.com</code>, but it depends on tenant policies that allow app passwords and Authenticated SMTP. Because Microsoft is phasing out Basic Authentication for SMTP client submission, treat app passwords as a short‑term solution and plan to migrate to OAuth2 in XI for long‑term reliability and security.</p>



<p>For further support, visit the <strong><a href="https://support.nagios.com/forum/" target="_blank" rel="noopener">Nagios Support Forum</a></strong> or the <strong><a href="https://library.nagios.com/docs" target="_blank" rel="noreferrer noopener">Nagios Knowledgebase</a></strong>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
