Skip to main content

Troubleshoot Missing Microsoft 365 Emails Using SMTP Relay

Question

When settings up verification emails via Microsoft 365 SMTP relay, emails still do not reach the users. How to troubleshoot the SMTP relay?

Answer

NOTE: Learn more about setting up a connector in Set Up Multifunction Device or Application to Send Emails Using Microsoft 365 or Office 365 − Configure Connector to Send Emails Using Microsoft 365 or Office 365 (SMTP Relay) · Microsoft 🡥.

Refer to the following steps to troubleshoot the setup:

  1. In your Netwrix Password Reset server, run the following line in elevated PowerShell to log in Microsoft 365:
$msolcred = get-credential

Enter the Microsoft 365 credentials to use them when troubleshooting the relay.

  1. Once you've logged in, use the following line in the same PowerShell window to send a test email from your server to the relay:
Send-MailMessageFrom %From_email% –To %To_email% –Subject “Test” –Body “TESTING RELAY” -SmtpServer %Relay_Servername% -Credential $msolcred -UseSsl -Port %port_used%

Refer to the following example of the line using the default Microsoft 365 SMTP server and port:

Send-MailMessageFrom testlab@testdom.com –To testlab@testdom.com –Subject “Test” –Body “TESTING RELAY” -SmtpServer smtp.office365.com -Credential $msolcred -UseSsl -Port 587
  1. Review the console output for possible errors.