Afternoon,
This is very frustrating, cannot seem to understand what is happening here. I had been using a normal smtp channel that uses anonymous/no pwd. However, this is dropping numerous notifications, so I need to switch. The one I am trying to switch to has to use SSL/TLS.
I setup the required elements via this URL: https://learn.microsoft.com/en-us/archive/blogs/direnconen/sending-notifications-with-external-email-authentication
and this one: https://learn.microsoft.com/en-us/system-center/scom/manage-notifications-create-configure?view=sc-om-2019
did not get any errors along the way. I can use this PS script to check that the account I am using can send emails.
$msolcred = get-credential
Send-MailMessage –From address@mydomain –To address@mydomain –Subject “Test Email Last” –Body “Test Text Last” -SmtpServer xx-xxx.mail.protection.outlook.com -Credential $msolcred -UseSsl -Port 25
When the credentials box pops up I enter the email account to be used and the pwd for it. The email gets sent fairly quickly to my email account.
Error in SCOM:
Notification subsystem failed to send notification using device/server 'servername. xxx.xxx.xxx' over 'Smtp' protocol to 'myemailaddress@Piepel .xxx'. Microsoft.EnterpriseManagement.HealthService.Modules.Notification.SmtpNotificationException: Failure sending mail. --> Unable to connect to the remote server --> No connection could be made because the target machine actively refused it xx.xxx.xx.xxx:25. Smtp status code 'GeneralFailure'. Rule id: Subscription9e1271fb_1975_4d79_90e8_57731954a8ae
The "remote Server the error is referring to is my primary mgmt server.
Any and all assistance is greatly appreciated.
TS