Enhancing NinjaOne Ticketing with Microsoft 365 SMTP Integration

This comprehensive guide provides a step-by-step walkthrough on how to configure Simple Mail Transfer Protocol (SMTP) within NinjaOne’s Ticketing system for seamless Microsoft 365 integration. By enabling this integration, NinjaOne can efficiently send critical alerts, timely notifications, and important email correspondence directly through your organization’s Microsoft 365 email system.

Simplifying your ticketing process, enhancing communication, and optimizing overall IT operations, the integration of NinjaOne with Microsoft 365 offers a streamlined and effective solution for your organization.

How to Configure SMTP Email Sending Through Microsoft 365 for NinjaOne Ticketing

When configuring NinjaOne Ticketing, check the items below to prevent common configuration errors:

  • The account from which you send emails must be licensed with at least an Exchange Online Plan 1 License.
  • The mailbox must have “Authenticated SMTP” as an allowed email application.
  • You must have an administrator account with permission to give consent to the NinjaOne–SMTP Microsoft 365 Application.
  • You must ensure you do not have any conditional access policies which would block NinjaOne from logging into the account.

Configuration

If you have not yet enabled NinjaOne Ticketing, please see NinjaOne Ticketing: Setup and Configuration.

We recommend using an incognito / private window to perform this configuration.

1. In the NinjaOne console, click Administration in the left navigation pane and select Apps>Installed, and then click Ticketing.

click Administration in the left navigation pane and select Apps>Installed, and then click Ticketing. 

2. Click Edit to the right of “SMTP Email Sending”.

SMTP Email Sending

3. Select “Microsoft 365” from the Authentication Type drop-list.

Authentication Type 

4. Activate the Enabled toggle switch to turn on the outgoing mail server.

5. Use the table below to enter the configuration details:

Field Data
Server smtp.office365.com (you must use this for your server address)
Port 587
Email Address Enter the email address that will be responsible for sending NinjaOne Ticketing messages. This must match the account you use to login to Microsoft when configuring the next steps.

Enabled Microsoft 365 OAuth

6. Click Go to Microsoft. Microsoftonline.com displays on the same tab.

7. Click the first hyperlink option to sign in with the email you used in Step 5.

Authentication Type 

Important Note: If you do not have administrator privileges, you may need to request access and then approve the application with an administrator account. Then, return to the NinjaOne console and repeat the steps above after approval is granted. 

8. Click Accept.

Accept permission requested

You should be redirected back to the NinjaOne console. If the Status does not reflect “Healthy” please refer to our Troubleshooting tips below.

SMTP Email Sending

To ensure correct setup, we recommend creating a public comment on a ticket assigned to a test address. For more information about ticket comments, see Ninja Ticketing: Ticket Handling

Troubleshooting

Please contact [email protected] for assistance if you have any issues not resolved through our troubleshooting tips.

General Rejection Issues

A common reason for rejection is an undelivered email—check the mailbox you configured to ensure this is not the case or perform a mail trace to determine whether the email was received, rejected, deferred, or delivered. Microsoft provides instructions here for both classic and modern Exchange admin center.

You should see the results of any emails which have been attempted to be sent. Click on an email to view more details on why it failed:

General Rejection Issues

Disabled Authenticated SMTP

If the “Authenticated SMTP” has not been enabled for the account you are using to send emails, you can correct this through the Microsoft 365 admin center.

1. Select the user and open the Mail tab.

2. Under Email apps click Manage email apps.

Open the Mail tab

3. Activate the checkbox for “Authenticated SMTP”.

Authenticated SMTP

Conditional Access and Security Issues

If your access is blocked, this may be caused by Microsoft 365 built-in security features. To correct this issue:

1. Open the Azure Active Directory (from the Microsoft Entra admin center) and click Users in the left navigation pane.

Azure Active Directory

2. Select the user and click Sign-in logs in their profile.

Sign-in logs

3. Review the data to see if there is anything blocking the connection from NinjaOne. The Status column will display “Success”, “Interrupted” or “Failure”.

  • For failures, click the log entry and check all tabs to see if the reason for failure is listed.
  • Try creating an exclusion for the user in conditional access policies or adjust other settings to allow the connection.

Strategies, Best Practices and Benefits for Microsoft 365 SMTP Integration with NinjaOne

Efficiency: Create a service account with limited permissions for email sending. Keep an eye on your email open and bounce rates and watch out for spam complaints. If you see any problems with email delivery, investigate and fix them.

Establish Configuration: Ensure your Microsoft 365 login details are correct, and your domain settings are set up properly for email. Then, send a test email to confirm everything is working.

FAQ

Microsoft 365 is a subscription-based cloud productivity platform offered by Microsoft. It includes a suite of productivity applications, collaboration tools, and cloud storage services. Microsoft 365 is designed to empower individuals and businesses to achieve more with innovative apps, intelligent cloud services, and world-class security.

smtp.office365.com (you must use this for your server address)

However, for some specific scenarios or regions, you might need to use a different server address. It’s always recommended to check Microsoft’s official documentation for the most accurate and up-to-date information.

To enable SMTP in Microsoft 365, you’ll need to configure your domain settings and user permissions. Here’s a general outline of the steps involved:

1. Verify Domain Ownership:

Ensure you have control over your domain’s DNS settings.

2. Add Your Domain to Microsoft 365:

Log in to your Microsoft 365 admin center.

Go to Domains > Add a domain.

Follow the on-screen instructions to verify your domain ownership.

3. Set up SPF and DKIM:

Sender Policy Framework (SPF): Create an SPF record in your domain’s DNS settings to authorize your Microsoft 365 servers to send emails on your behalf.

DomainKeys Identified Mail (DKIM): Generate DKIM keys and add them to your domain’s DNS settings.

4. Configure Email Flow Rules:

Create email flow rules to filter and route emails as needed.

Set up rules to block spam, quarantine suspicious emails, or redirect email to specific recipients.

5. Grant User Permissions:

Ensure users have the necessary permissions to send emails from your Microsoft 365 account.

×

See NinjaOne in action!

By submitting this form, I accept NinjaOne's privacy policy.