Emails are not being triggered upon Job Completion
search cancel

Emails are not being triggered upon Job Completion

book

Article ID: 387848

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

NCM has a functionality to trigger emails upon job completion.
However, there are times when these emails are not being triggered and this article explains a possible cause of this issue to look for. 

Environment

NCM 10.1.X

Cause

This issue could be because of the result-set size received upon the completion of the job. 

Look for messages in the following log on the Application Server:

Log Name: $VOYENCE_HOME/ncmcore/logs/powerup*.log

Log Sample:
2025-01-31 11:42:04,123 ERROR [com.powerup.configmgr.integration.transport.javamail.JavaMailTransportStrategy] (Thread-31) Cannot send e-mail to recipient: <email recipient address here>
com.sun.mail.smtp.SMTPSendFailedException: 552 5.3.4 Error: message file too big
        at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2358) ~[javax.mail-1.6.2.jar:1.6.2]
        at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:2110) ~[javax.mail-1.6.2.jar:1.6.2]
        at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1316) ~[javax.mail-1.6.2.jar:1.6.2]
        at javax.mail.Transport.send0(Transport.java:255) ~[javax.mail-1.6.2.jar:1.6.2]
        at javax.mail.Transport.send(Transport.java:124) ~[javax.mail-1.6.2.jar:1.6.2]
        at com.powerup.configmgr.integration.transport.javamail.JavaMailTransportStrategy.transportData(JavaMailTransportStrategy.java:141) [services-10.1.13.0.jar:?]
        at com.powerup.configmgr.integration.IntegrationModule.handleEvent(IntegrationModule.java:632) [services-10.1.13.0.jar:?]
        at com.powerup.configmgr.eventframework.VoyenceEventDispatcher.dispatchEvents(VoyenceEventDispatcher.java:511) [services-10.1.13.0.jar:?]
        at com.powerup.configmgr.eventframework.VoyenceEventDispatcher.access$100(VoyenceEventDispatcher.java:62) [services-10.1.13.0.jar:?]
        at com.powerup.configmgr.eventframework.VoyenceEventDispatcher$ProcessingThread.run(VoyenceEventDispatcher.java:121) [services-10.1.13.0.jar:?]
        at java.lang.Thread.run(Thread.java:829) [?:?]
Log Name: /var/log/maillog

Log Sample:
Jan 31 11:42:03 <hostname> postfix/cleanup[14101]: C5046180407D: message-id=<1555052483.3.1738323723747@<hostname>>
Jan 31 11:42:04 <hostname> postfix/cleanup[14101]: warning: C5046180407D: queue file size limit exceeded
Jan 31 11:42:04 <hostname> postfix/smtpd[14092]: warning: C5046180407D: queue file size limit exceeded

Resolution

Please engage with your Network Team to check the permissible limits on the SMTP server and if these could be configured to allow larger result sets.

Alternatively, evaluate if you could reduce the result set size by running the jobs/tasks individually (instead of comprising of multiple devices into one job) to ensure that the email size drops down to the permissible limits.