Network Management

SMTP email test fails with Office 365

Unable to send test mail adding an SMTP server with Office 365

First published date

8/27/2021 8:38 PM

Last published date

5/9/2025 10:09 PM

Overview

In some Solarwinds customer environments we noticed alert actions fails to send email if their SMTP Server is smtp.office365.com due to one of the below error(s)

Error 1:

ERROR SolarWinds.Orion.Core.Actions.Impl.Email.EmailMethodInvoker - (null)  Test for SMTP server (smtp.office365.com:587, SSL disabled, Authentication enabled) failed
System.Net.Mail.SmtpException: Error in processing. The server response was: 5.7.3 STARTTLS is required to send mail [asdfalhfalj109.xyzserver.OUTLOOK.COM]

 

Error 2:

"Sending the email from noreply@solarwinds.com to xxxxxx@xxxxxx.com with subject Error on ADG4-SRV at Never using SMTP Server smtp.office365.com failed. Transaction failed. The server response was: 5.2.252 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message."

With TLS enabled 

2021-08-27 12_06_03-Window.png

Error 3:
 

ERROR SolarWinds.Orion.Core.Actions.Impl.Email.EmailMethodInvoker - (null)  Test for SMTP server (smtp.office365.com:587, SSL enabled, Authentication enabled) failed
System.Net.Mail.SmtpException: Transaction failed. The server response was: 5.2.252 SendAsDenied; jane.doe@abc.com not allowed to send as john.doe@abc.com STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message.

 

Product section

Orion Platform

Cause

Error 1: Port 587 (authentication) selected, but TLS is not selected

Error 2: This error means the user whose credentials you specified in the SMTP connection cannot submit messages on behalf of the user specified in the From and/or Sender MIME headers or the FROM SMTP command.
 

Error 3: This error means the user whose credentials you specified in the SMTP connection cannot submit messages on behalf of the user specified in the From and/or Sender MIME headers 

Resolution

Solution for Error 1:
- Ensure TLS box is checked, if you selected This SMTP Server requires authentication if the your SMTP server is smtp.office365.com

Solution for Error 2:
The user will need to specify the "Reply Address" using the same account / email address as what was used to authenticate in smtp.office365.com
2021-08-27 12_12_38-Window.png

Solution for Error 3:
Enter the username used while setting up the SMTP server and not a different one.

Once done, test again and it should work as expected.