Email not working or sent after upgrade or fresh installation.
search cancel

Email not working or sent after upgrade or fresh installation.

book

Article ID: 330907

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Email notifications are not being received by the NCM users.

A common error in the Powerup.log under the $VOYENCE_HOME/ncmcore/logs directory 

2016-01-06 11:52:20,084 ERROR [com.powerup.configmgr.integration.transport.javamail.JavaMailTransportStrategy] (http-apr-8881-exec-9) Cannot send e-mail to recipient: <user>@<domain>.com
               Line 95879: javax.mail.MessagingException: Can't send command to SMTP host;
               Line 95882:         at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1420)


Environment

NCM - 10.1.x

Resolution

  • Login to the CLI of the Application server (AS) or Combination Server (CS) with 'root' access. 
  • source /etc/voyence.conf to set environmental variable.
  • Take backup of applicationContext.xml from path $VOYENCE_HOME/ncmcore/webapps/ncm-webapp/WEB-INF/classes/applicationContext.xml.
  • Edit $VOYENCE_HOME/ncmcore/webapps/ncm-webapp/WEB-INF/classes/applicationContext.xml and look for "mail.smtp.starttls.enable"
  • Change the value to "false".
  • Save and close the file.
  • Perform a vcmaster restart as service vcmaster restart for NCM 10.1.6 and below or systemctl restart vcmaster for NCM 10.1.8 and above

Perform a job with user emailID and make sure that email is received.