SEND_MAIL does not send attachment when a LOGIN object without password is used
search cancel

SEND_MAIL does not send attachment when a LOGIN object without password is used

book

Article ID: 428845

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine Automic Automation Automic SaaS CA Automic One Automation

Issue/Introduction

Under standard configuration, it is possible to execute jobs without specifying a password in the LOGIN object when the Unix Agent is configured for anonymous execution. This setup typically includes:

  • Agent started as root, or ucxj??? binary owned by root with setUID enabled
  • ANONYMOUS_JOB=Y
  • login_check=no

Within this framework, most job executions—including the SEND_MAIL command—operate as expected without requiring explicit credentials.

However, a limitation is observed when attempting to include file attachments via SEND_MAIL. While the email itself is successfully delivered, the attachment is not included due to file access restrictions.

:set &hnd#=SEND-MAIL("<email>",,"<subject>","<message>","<attachment>","<AGENT>","<LOGIN>")

The below can be seen within the AWI:

U00050013 Error when reading attachment file '/home/<user>/attachment.txt' error code: 'canRead()==false', error description: Cannot read file'.

Environment

Release: v24.x

Component: Automation Engine

Sub-Component: Agent Unix

Cause

DE182438 and DE177161

Resolution

Solution:

Update to a fix version listed below or a newer version if available.


Fix version:

Component(s): Agent Unix

Automation.Engine 24.4.4 - Available

Additional Information

Desc: A problem has been fixed where the Login_Check setting was not considered in the Unix Agent for sending email attachments.