Not able to send/receive notification via External Email source SCOM 2019

Tony Strother 171 Reputation points
2020-08-20T21:07:30.833+00:00

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

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,413 questions
0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Leon Laude 85,651 Reputation points
    2020-08-21T08:24:03.53+00:00

    Hi @Tony Strother ,

    Did you come by the following blog post?
    http://blog.tyang.org/2015/09/26/using-exchange-online-office-365-for-opsmgr-email-notification

    ----------

    (If the reply was helpful please don't forget to upvote or accept as answer, thank you)

    Best regards,
    Leon

    0 comments No comments

  2. SChalakov 10,261 Reputation points MVP
    2020-08-21T09:02:24.42+00:00

    HI @Tony Strother ,
    I have already seen this particular error and my case the issue was with permissions. The SCOM Server had to be added as an allowed sendet for this to work. I am not aware of the exact config on the SMTP Server side, but this I was told by the Messaging scpecialist after we got it working.
    Is the user you are using ($msolcred) the same you use in the notification configuration?
    Do you execute the PowerShell code (testing the notification) also from the SCOM Management Server?

    Thanks and Regards,
    Stoyan

    0 comments No comments

  3. Tony Strother 171 Reputation points
    2020-08-24T14:17:11.337+00:00

    Morning and thank you for the assistance. I did try: http://blog.tyang.org/2015/09/26/using-exchange-online-office-365-for-opsmgr-email-notification
    among others with no success.
    Question: What should be selected on the Access Tab\Authentication? Currently set to Anonymous.
    I have set, under the General Tab\Advanced-
    All unassigned Port 25
    IPAddress of the Primary SCOM Mgmt Server Port 25

    I am running the PowerShell script from the Primary Mgmt server.
    The one error I did get but not now is:
    Failed to send notification using device/server 'mgmtservername' over 'Smtp' protocol to 'myaddress@Piepel .xxx'. Exception 'Microsoft.EnterpriseManagement.HealthService.Modules.Notification.SmtpNotificationException': The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.3 Client was not authenticated. Smtp status code 'MustIssueStartTlsFirst'

    Thanks again!
    TS


  4. Tony Strother 171 Reputation points
    2020-08-24T15:22:11.157+00:00

    Meant to add that I am not seeing any errors that I can find.

    Thank you,
    TS

    0 comments No comments

  5. Tony Strother 171 Reputation points
    2020-08-24T20:59:35.427+00:00

    Evening,

    Continuing to work on this.

    Thanks for your time and assistance.

    TS