6 Replies Latest reply on Mar 28, 2014 8:59 AM by Swati Srivastava

    Unable to send email notification via bladelogic


      Hi,

       

      I have set the SMTP server in bladelogic as :

       

      set email smtpserver mail-relay.txu.com

       

      But when I executed the job by explicitly specifying the email address there was no email notification.

       

      I have checked the mail server connectivity by pinging the server. I am getting the reply.

       

      Please help.

       

      Thanks,

      Swati

        • 1. Re: Unable to send email notification via bladelogic
          Bill Robinson

          Did you restart the appserver(s) after setting the email setting?

           

          What is in the appserver log when the job tries to send the email?

           

          What is in the mail server log when the job tries to send the email ?

          1 of 1 people found this helpful
          • 2. Re: Unable to send email notification via bladelogic

            Hi,

             

            I have restarted the App server.

            few lines of appserver log :

             

            nitor] Total JVM (B): 413597696,Free JVM (B): 182265624,Used JVM (B): 231332072,VSize (B): 645480448,RSS (B): 634290176,Used File Descriptors: 1866

            [28 Mar 2014 08:24:00,565] [Scheduled-System-Tasks-Thread-4] [INFO] [System:System:] [Memory Monitor] Total JVM (B): 413597696,Free JVM (B): 178624920,Used JVM (B): 234972776,VSize (B): 645545984,RSS (B): 634335232,Used File Descriptors: 1873

            [28 Mar 2014 08:25:00,563] [Scheduled-System-Tasks-Thread-5] [INFO] [System:System:] [Memory Monitor] Total JVM (B): 413597696,Free JVM (B): 175172248,Used JVM (B): 238425448,VSize (B): 645611520,RSS (B): 634380288,Used File Descriptors: 1874

            [28 Mar 2014 08:26:00,561] [Scheduled-System-Tasks-Thread-3] [INFO] [System:System:] [Memory Monitor] Total JVM (B): 413597696,Free JVM (B): 171981560,Used JVM (B): 241616136,VSize (B): 645480448,RSS (B): 634290176,Used File Descriptors: 1866

            [28 Mar 2014 08:27:00,559] [Scheduled-System-Tasks-Thread-2] [INFO] [System:System:] [Memory Monitor] Total JVM (B): 413597696,Free JVM (B): 168891712,Used JVM (B): 244705984,VSize (B): 645480448,RSS (B): 634290176,Used File Descriptors: 1866

            [28 Mar 2014 08:28:00,572] [Scheduled-System-Tasks-Thread-2] [INFO] [System:System:] [Memory Monitor] Total JVM (B): 413597696,Free JVM (B): 165429800,Used JVM (B): 248167896,VSize (B): 645480448,RSS (B): 634290176,Used File Descriptors: 1866

            [28 Mar 2014 08:29:00,570] [Scheduled-System-Tasks-Thread-4] [INFO] [System:System:] [Memory Monitor] Total JVM (B): 413597696,Free JVM (B): 162403680,Used JVM (B): 251194016,VSize (B): 645480448,RSS (B): 634290176,Used File Descriptors: 1866

            [28 Mar 2014 08:30:00,568] [Scheduled-System-Tasks-Thread-2] [INFO] [System:System:] [Memory Monitor] Total JVM (B): 413597696,Free JVM (B): 159447512,Used JVM (B): 254150184,VSize (B): 645545984,RSS (B): 634335232,Used File Descriptors: 1870

            [28 Mar 2014 08:31:00,566] [Scheduled-System-Tasks-Thread-4] [INFO] [System:System:] [Memory Monitor] Total JVM (B): 413597696,Free JVM (B): 156447200,Used JVM (B): 257150496,VSize (B): 645480448,RSS (B): 634290176,Used File Descriptors: 1866

            [28 Mar 2014 08:32:00,564] [Scheduled-System-Tasks-Thread-4] [INFO] [System:System:] [Memory Monitor] Total JVM (B): 413597696,Free JVM (B): 153431088,Used JVM (B): 260166608,VSize (B): 645480448,RSS (B): 634290176,Used File Descriptors: 1866

            [28 Mar 2014 08:33:00,562] [Scheduled-System-Tasks-Thread-6] [INFO] [System:System:] [Memory Monitor] Total JVM (B): 413597696,Free JVM (B): 150227048,Used JVM (B): 263370648,VSize (B): 645480448,RSS (B): 634290176,Used File Descriptors: 1866

            [28 Mar 2014 08:34:00,576] [Scheduled-System-Tasks-Thread-4] [INFO] [System:System:] [Memory Monitor] Total JVM (B): 413597696,Free JVM (B): 146489736,Used JVM (B): 267107960,VSize (B): 645545984,RSS (B): 634335232,Used File Descriptors: 1873

            [28 Mar 2014 08:35:00,558] [Scheduled-System-Tasks-Thread-4] [INFO] [System:System:] [Memory Monitor] Total JVM (B): 413597696,Free JVM (B): 142984712,Used JVM (B): 270612984,VSize (B): 645611520,RSS (B): 634380288,Used File Descriptors: 1874

            [28 Mar 2014 08:36:00,572] [Scheduled-System-Tasks-Thread-5] [INFO] [System:System:] [Memory Monitor] Total JVM (B): 413597696,Free JVM (B): 139831296,Used JVM (B): 273766400,VSize (B): 645480448,RSS (B): 634290176,Used File Descriptors: 1866

            [28 Mar 2014 08:37:00,570] [Scheduled-System-Tasks-Thread-5] [INFO] [System:System:] [Memory Monitor] Total JVM (B): 413597696,Free JVM (B): 137004392,Used JVM (B): 276593304,VSize (B): 645480448,RSS (B): 634290176,Used File Descriptors: 1866

            [28 Mar 2014 08:38:00,568] [Scheduled-System-Tasks-Thread-4] [INFO] [System:System:] [Memory Monitor] Total JVM (B): 413597696,Free JVM (B): 134002768,Used JVM (B): 279594928,VSize (B): 645480448,RSS (B): 634290176,Used File Descriptors: 1866

            [28 Mar 2014 08:39:00,566] [Scheduled-System-Tasks-Thread-2] [INFO] [System:System:] [Memory Monitor] Total JVM (B): 413597696,Free JVM (B): 130951080,Used JVM (B): 282646616,VSize (B): 645480448,RSS (B): 634290176,Used File Descriptors: 1866

            [28 Mar 2014 08:40:00,564] [Scheduled-System-Tasks-Thread-1] [INFO] [System:System:] [Memory Monitor] Total JVM (B): 413597696,Free JVM (B): 127694600,Used JVM (B): 285903096,VSize (B): 645545984,RSS (B): 634335232,Used File Descriptors: 1870

             

             

            I cant find the mail logs...where are they located?

            • 3. Re: Unable to send email notification via bladelogic

              here are the mail lines :

               

              [BLAdmin:BLAdmins:] [NSHScript] Process finished: 10348
              [28 Mar 2014 07:50:10,725] [Job-Execution-2] [INFO] [BLAdmin:BLAdmins:] [NSHScript] The job 'Patrol Script job' has failed
              [28 Mar 2014 07:50:10,772] [Job-Execution-2] [WARN] [BLAdmin:BLAdmins:] [NSHScript] Failed to send notifications.
              com.bladelogic.mfw.util.BlException: Unable to send email. Please check your mail configuration.
              at com.bladelogic.app.util.EmailUtil.sendEmail(EmailUtil.java:259)
              at com.bladelogic.app.util.EmailUtil.sendJobRunStatusNotify(EmailUtil.java:68)
              at com.bladelogic.app.util.NotificationUtil.sendJobRunStatusNotify(NotificationUtil.java:186)
              at com.bladelogic.app.util.NotificationUtil.sendNotifications(NotificationUtil.java:123)
              at com.bladelogic.app.service.job.JobExecutor.sendNotifications(JobExecutor.java:666)
              at com.bladelogic.app.service.job.JobExecutor.endJobExecution(JobExecutor.java:816)
              at com.bladelogic.model.job.script.NSHScriptJobExecutor.endJobExecution(NSHScriptJobExecutor.java:387)
              at com.bladelogic.app.service.job.JobExecutor.checkForJobExecutionEnd(JobExecutor.java:250)
              at com.bladelogic.app.service.job.JobExecutor.processResults(JobExecutor.java:241)
              at com.bladelogic.app.service.job.execution.JobExecutionThread.execute(JobExecutionThread.java:136)
              at com.bladelogic.app.service.job.execution.JobExecutionThread.execute(JobExecutionThread.java:24)
              at com.bladelogic.app.service.thread.BlBlockingThread.run(BlBlockingThread.java:92)
              Caused by: javax.mail.SendFailedException: Invalid Addresses;
                nested exception is:
              com.sun.mail.smtp.SMTPAddressFailedException: 554 <sdut@txu.com>: Relay access denied

              at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196)
              at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
              at com.bladelogic.app.util.EmailUtil.sendEmail(EmailUtil.java:255)
              ... 11 more
              Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 554 <sdut@txu.com>: Relay access denied

              at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1094)

              • 4. Re: Unable to send email notification via bladelogic
                Bill Robinson

                ok - no where in that log do I see a job running or trying to send email.  did you run a job that this appserver picked up between 08:24 and 08:40 ?

                 

                the mail server logs would be on your email server.  talk to your mail admin.

                 

                you need to check the full path here:

                -> run a job w/ mail notification

                in the job run log note the time the job ran and what appserver(s) picked up the job (noted in the log)

                -> go look in the appserver log(s) for that time and you should see some message related to smtp

                -> goto your mail admin and look at the mail server logs at the same time to see if the appserver connected and what happened.

                1 of 1 people found this helpful
                • 5. Re: Unable to send email notification via bladelogic
                  Bill Robinson

                  Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 554 <sdut@txu.com>: Relay access denied at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1094)

                   

                  you need to talk to your mail admin.  your mail server is not letting the appserver send emails to the txu.com domain.

                  • 6. Re: Unable to send email notification via bladelogic

                    Thanks for your help.

                     

                    Will consult the mail admin and revert back here.