Customer is running NetOps 21.2.9 (DX Performance Management). I have enabled the Customer Authentication for SMTP running on port 25 with User and Password.
The smtp certificate, intermediate and root have been stored in the cacerts keystore.
While debugging, this is what I see in the logs:
ERROR | EmailJobTaskThreadPool-Thread-20 | 2022-04-22 08:46:44,165 | com.ca.im.portal.dm.scheduling.email.EmailJobTask
| Error sending e-mail: Authentication failed; nested exception is javax.mail.AuthenticationFailedException
org.springframework.mail.MailAuthenticationException: Authentication failed; nested exception is javax.mail.AuthenticationFailedException
at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:440) ~[spring-context-support-5.3.9.jar:5.3.9]
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:361) ~[spring-context-support-5.3.9.jar:5.3.9]
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:356) ~[spring-context-support-5.3.9.jar:5.3.9]
at com.ca.im.portal.dm.scheduling.email.EmailJobTask.emailReport(EmailJobTask.java:412) ~[classes/:?]
at com.ca.im.portal.dm.scheduling.email.EmailJobTask.run(EmailJobTask.java:215) [classes/:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
at java.lang.Thread.run(Unknown Source) [?:?]
Caused by: javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:319) ~[mail-1.4.1.jar:1.4.1]
at org.springframework.mail.javamail.JavaMailSenderImpl.connectTransport(JavaMailSenderImpl.java:518) ~[spring-context-support-5.3.9.jar:5.3.9]
at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:437) ~[spring-context-support-5.3.9.jar:5.3.9]
... 7 more
So it looks I am getting an authentication error.
From the SMTP server itself I can send an email directly w/o issues.
Release : 21.2
Component : NetOps 21.2.9 (DX Performance Management)
There were defects identified in version 21.2.9 and older preventing successful configuration:
DE534207, DE534560
Due to the defects:
Defect DE534207, DE534560 are currently under investigation by Engineering and there is no target release/release date that can be provided at this time.
This article will be updated as this investigation progresses.
update netqosportal.performance_center_properties set propvalue='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*',updatedon=UNIX_TIMESTAMP() where propname='NpcSmtpPassword' and priority=0;
delete from netqosportal.performance_center_properties where propname LIKE 'NpcSmtp%' and priority > 0;