ERROR: Authentication failed / Emails not received from NetOps Portal
search cancel

ERROR: Authentication failed / Emails not received from NetOps Portal


Article ID: 240926


Updated On:


CA Performance Management - Usage and Administration DX NetOps


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 |
      | 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( ~[spring-context-support-5.3.9.jar:5.3.9]
        at org.springframework.mail.javamail.JavaMailSenderImpl.send( ~[spring-context-support-5.3.9.jar:5.3.9]
        at org.springframework.mail.javamail.JavaMailSenderImpl.send( ~[spring-context-support-5.3.9.jar:5.3.9]
        at ~[classes/:?]
        at [classes/:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$ Source) [?:?]
        at Source) [?:?]
Caused by: javax.mail.AuthenticationFailedException
        at javax.mail.Service.connect( ~[mail-1.4.1.jar:1.4.1]
        at org.springframework.mail.javamail.JavaMailSenderImpl.connectTransport( ~[spring-context-support-5.3.9.jar:5.3.9]
        at org.springframework.mail.javamail.JavaMailSenderImpl.doSend( ~[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:

  • 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


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;