ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

ERROR: Authentication failed / Emails not received from NetOps Portal

book

Article ID: 240926

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration

Issue/Introduction

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.

Cause

There were defects identified in version 21.2.9  and older preventing successful configuration:

DE534207, DE534560

Due to the defects:

  • password other than one set using UI is used for authentication.
  • password set using UI is incorrectly encrypted
  • values set as 'deleted' are still used

Environment

Release : 21.2

Component : NetOps 21.2.9 (DX Performance Management)

Resolution

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.

Additional Information

  • Do not use SsoConfig for SMTP configuration 
  • If needed modify the SsoConfig default (prio 0) NpcSmtpPassword value using SQL :
update netqosportal.performance_center_properties set propvalue='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*',updatedon=UNIX_TIMESTAMP() where propname='NpcSmtpPassword' and priority=0;
  • If needed delete the non-default password NpcSmtpPassword values using SQL:
delete from netqosportal.performance_center_properties where propname LIKE 'NpcSmtp%' and priority > 0;