Autosys Job Notification emails are notbeing recieved:
search cancel

Autosys Job Notification emails are notbeing recieved:

book

Article ID: 268477

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

Hi Team,

We created a job in Non-Production New AWS server..
After the job got fails we didn't receive any email..
could you please help on this ..

Jil file :

insert_job: AUTOSYS_JOBFAILURE_30MINS_REPORT_CMD   job_type: CMD
command: $$JOBFAILREP/half.sh
machine: <MACHINE>
owner: autosys
permission:
date_conditions: 1
days_of_week: all
start_mins: 00,30
alarm_if_fail: 0
send_notification: F
notification_msg: "Autosys 30 Minutes Report Job Failed"
notification_emailaddress: <USER>@<DOMAIN>.com

 

We can see the following in the configuration file now:
############## User Comments - Start. Keyword: NotifySMTPHost  #################
#
#
############## User Comments - End. Keyword: NotifySMTPHost  #################
#NotifySMTPFromAddress=
UseSMTPAuthentication=0
NotifySMTPHost=smtp.company.com:25
NotifySMTPFromAddress=autosys@<DOMAIN>.com
#NotifySMTPUser=

 

In the event demon logs we see the following:
Line 26343: [06/21/2023 17:30:01]      CAUAJM_I_40245 EVENT: CHANGE_STATUS    STATUS: RUNNING         JOB: AUTOSYS_JOBFAILURE_30MINS_REPORT_CMD MACHINE:
[06/21/2023 17:30:01]      CAUAJM_I_40245 EVENT: CHANGE_STATUS    STATUS: FAILURE         JOB: AUTOSYS_JOBFAILURE_30MINS_REPORT_CMD MACHINE:  EXITCODE:  127
[06/21/2023 17:30:01]      CAUAJM_I_20216 Email notification pending for job <AUTOSYS_JOBFAILURE_30MINS_REPORT_CMD>.
[06/21/2023 17:30:01]      CAUAJM_E_20214 Email notification failed for job <AUTOSYS_JOBFAILURE_30MINS_REPORT_CMD>. Detail information <Failed sending data to the peer>.

 

Environment

Autosys R12.x

Resolution

Your SMTP server is rejecting the connection.
You will need to engage your SMTP admin to understand why.
Possible reasons:

  1. the SMTP server requires authentication (currently, you are not using any)
  2. your SMTP server has a white list that the Autosys server is not on
  3. Your SMTP server requires SSL which is not supported by Autosys at this time.
  4. The NotifySMTPFromAddress parameter in your config.$AUTOSERV must be a valid email address with valid domain (Ex: [email protected])

You might want to try testing outside of Autosys with the below article.
This should be done from the Autosys server where you have configured email notifications to be sent.
https://www.mailenable.com/kb/content/article.asp?ID=ME020207

 

Additional Information

Other possible articles on testing SMTP from a command line outside of autosys.
https://mailtrap.io/blog/how-to-test-smtp-server/