question

TonyStrother-2074 avatar image
0 Votes"
TonyStrother-2074 asked subhasroy-0191 answered

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

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://docs.microsoft.com/en-us/archive/blogs/direnconen/sending-notifications-with-external-email-authentication

and this one: https://docs.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@xxxxx.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

msc-operations-manager
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LeonLaude avatar image
0 Votes"
LeonLaude answered

Hi @TonyStrother-2074,

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

StoyanChalakov avatar image
0 Votes"
StoyanChalakov answered

HI @TonyStrother-2074,
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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TonyStrother-2074 avatar image
0 Votes"
TonyStrother-2074 answered LeonLaude commented

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@xxxxx.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

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Port 25 is not a secure port (SSL/TLS), port 587 is.
As far as I know SCOM has no option to send email notification through TLS authentication.

0 Votes 0 ·
TonyStrother-2074 avatar image
0 Votes"
TonyStrother-2074 answered

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

Thank you,
TS

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TonyStrother-2074 avatar image
0 Votes"
TonyStrother-2074 answered

Evening,

Continuing to work on this.

Thanks for your time and assistance.

TS

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

subhasroy-0191 avatar image
0 Votes"
subhasroy-0191 answered

HI,
I am facing the same issue and spent a huge time on troubleshooting this issue but still no luck.
My scenario is- SCOM (2019) manager is on A.com but I am using an SMTP address from B.Com. Required Firewall ports are open to send email from MyScom.A.com to SMTP.B.com. If I test smtp server using command prompt from myScom.A.com, it looks working fine as I am getting the test email. But myScom server is failing to send the alert notification to the subscriber.
It looks like Subscription configuration is also ok.
I am getting the below error

Notification subsystem failed to send notification using device/server 'SMTP.B.com' over 'Smtp' protocol to 'xxx@B.com'. Microsoft.EnterpriseManagement.HealthService.Modules.Notification.SmtpNotificationException: Server does not support secure connections.. Smtp status code 'GeneralFailure'. Rule id: Subscription65dcee97_fd83_4338_adb4_797c6a294034


Any other help would be highly appreciated.
Thank you in advance

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.