After creating a job in the Non-Production New AWS server..
After the job failed, no email was received.
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>.
Autosys R12.x
Your SMTP server is rejecting the connection.
You will need to engage your SMTP admin to understand why.
Possible reasons:
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
Other possible articles on testing SMTP from a command line outside of autosys.
https://mailtrap.io/blog/how-to-test-smtp-server/