Problem with email notifications

Hello,

I have a problem with email notifications in ignition.

I have email settings -> SMTP Profile created and its work fine. I can send a test email.


I created also alarm notification profiles:

Unfortunately, this configuration does not want to save I also performed a restart of the gateway without success. Internally it tries to connect after the lower defined mailbox outside SMTP profiles? What went wrong?

Below logs when sending email shows undefined SMTP profile:


Best Regards,
Michał Góralczyk

Can you set that EmailNotificationProfile logger to TRACE and try your test again?

Set to TRACE:

Click the "+" icon on those errors to get the complete message.

com.sun.mail.smtp.SMTPSendFailedException: 554 5.2.252 SendAsDenied; alarms@nomadelectric365.onmicrosoft.com not allowed to send as default@example.com; STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message [BeginDiagnosticData]Cannot submit message. 0.35250:96320000, 1.36674:01000000, 1.61250:00000000, 1.45378:02000000, 1.44866:00000000, 1.36674:7A000000, 1.61250:00000000, 1.45378:05000000, 1.44866:00140000, 1.36674:0A000000, 1.61250:00000000, 1.45378:16000000, 1.44866:A01B0000, 1.36674:0E000000, 1.61250:00000000, 1.45378:B91B0000, 1.44866:36020000, 16.55847:D70E0000, 17.43559:0000000030020000000000000000000000000000, 20.52176:140F38970D00101019000000, 20.50032:140F38977D17000090330000, 0.53414:32000000, 0.35180:03000136, 255.23226:95330000, 255.27962:7A000000, 255.27962:0A000000, 255.27962:0E000000, 255.31418:4A000000, 0.35250:4800D13D, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:52000000, 1.36674:32000000, 1.61250:00000000, 1.45378:57000000, 1.44866:01000000, 16.55847:CD000000, 17.43559:00000000D0030000000000000000000000000000, 20.52176:140F38970D0010106F000000, 20.50032:140F38977D170000B8330000, 0.53414:74000000, 0.35180:0A004366, 255.23226:BD330000, 255.27962:0A000000, 255.27962:32000000, 255.17082:DC040000, 0.27745:7E000000, 4.21921:DC040000, 255.27962:FA000000, 255.1494:81000000, 0.38698:46000000, 1.41134:46000000, 0.37692:86000000, 0.37948:86000000, 5.33852:00000000534D545000000000, 7.36354:010000000000010986000000, 4.56248:DC040000, 7.40748:010000000000010B5A000100, 7.57132:00000000000000005A000100, 4.39640:DC040000, 1.63016:32000000, 8.45434:801084DC5D77764E9966D22C1E38B3B75A000100, 1.46798:04000000, 5.10786:0000000031352E32302E353934342E3031333A444237505230374D42363130383A35303630366537362D663734362D346135662D393333662D3238393835396231336563393A3131343239363A2E4E4554204672616D65776F726B20342E382E393033322E30001000000000, 7.51330:4416CC1AEBE4DA0800000000, 0.39570:07000000, 1.55954:0A000000, 0.49266:02000000, 1.33010:0A000000, 2.54258:00000000, 0.40002:7A000000, 1.56562:00000000, 1.33010:0A000000, 2.54258:00000000, 0.40002:7A000000, 1.56562:00000000, 1.64146:32000000, 1.33010:32000000, 2.54258:DC040000, 1.33010:32000000, 2.54258:DC040000, 255.1750:0B00F410, 255.31418:07360000, 0.22753:DC000000, 255.21817:DC040000, 0.64418:0C360000, 4.39842:DC040000, 0.41586:02019866, 4.60547:DC040000, 0.21966:E3000000, 4.30158:DC040000[EndDiagnosticData] [Hostname=DB7PR07MB6108.eurprd07.prod.outlook.com]
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2202)
at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1980)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1197)
at javax.mail.Transport.send0(Transport.java:254)
at javax.mail.Transport.send(Transport.java:124)
at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.sendMessage(EmailNotificationProfile.java:749)
at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.buildAndMaybeSendMessage(EmailNotificationProfile.java:737)

at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.run(EmailNotificationProfile.java:651)

at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile.lambda$sendNotification$0(EmailNotificationProfile.java:465)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

Somewhere you are missing your from address. It needs to be a valid "from" address for that email account.

3 Likes

Somehow it cleared up when changing the mailbox domain, thank you!