ERROR: "error writing message: File too large" with XCOM for LInux
search cancel

ERROR: "error writing message: File too large" with XCOM for LInux

book

Article ID: 138974

calendar_today

Updated On:

Products

XCOM Data Transport XCOM Data Transport - Linux PC

Issue/Introduction

On Linux server XCOM is sending mail to localhost user root on successful file transfer and it is filling up the mailbox e.g.

/var/mail/root

From [email protected]  Thu May 23 02:15:21 2019
Return-Path: <[email protected]>
X-Original-To: root
Delivered-To: [email protected]
Received: by server1.localdomain (Postfix, from userid 0)
        id 7836F1E09AC; Thu, 23 May 2019 02:15:21 +0800 (MYT)
Date: Thu, 23 May 2019 02:15:21 +0800
To: [email protected]
Subject: xfer 222771
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <[email protected]>
From: [email protected] (root)

         ===== CA XCOM Data Transport transfer record =====
  Transfer ID..................: 222771
  Remote TID...................: 083246
  Remote group.................:
  Start time...................: Thu May 23 02:15:20 2019
  Transfer type................: Receive file
  Local file...................: /data/xcomftp/data/in/DAILY/filename.txt
  Temporary local file.........: /data/xcomftp/data/in/DAILY/******
  Remote file..................: XXXXXX/YYYYYYYYYY(YYYYYYYYYY)
  Initiated by.................: REMOTE site
  Remote System................: xxx.xxx.xxx.xxx
  End time.....................: Thu May 23 02:15:21 2019
  Owned by user................: xcomftp from group xcomftp
  Current Condition............: DONE
  Current Status...............: SUCCESSFUL
  Current TP state.............: XCOMU0127I TP_DONE
  Message......................: XCOMU0011I Transfer ended; 0 blocks (0 bytes) transmitted in 1 seconds (0 bytes/second)

/var/log/maillog
Oct 18 10:30:16 localhost postfix/local[16875]: 6D44B1E066C: to=<[email protected]>, relay=local, delay=0.03, delays=0.01/0/0/0.02, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/root for user root. error writing message: File too large)

Environment

XCOM™ Data Transport® for Linux PC

Cause

It was confirmed that the root user is only receiving mail notifications for a "Receive file" transfer which means the parameters controlling the mail notification are set on the source server and would be "NOTIFY_NAME=root" and "NOTIFYR=MAIL". 

The parameters would be set in either file xcom.cnf or in a filename.cnf  being used for the transfer or directly on the (xcomtcp) command line. More details here:

CA XCOM DATA TRANSPORT FOR UNIX/LINUX 11.6.1 > NOTIFY_NAME

CA XCOM DATA TRANSPORT FOR UNIX/LINUX 11.6.1 > NOTIFYR

CA XCOM DATA TRANSPORT FOR UNIX/LINUX 11.6.1 > Creating and Using Configuration Files

CA XCOM DATA TRANSPORT FOR UNIX/LINUX 11.6.1 > Using Parameters

NOTE: Corresponding updates in the 12.0 documentation. 

Resolution

EITHER:

On the  source server disable the remote user notification by setting "NOTIFYR=NONE" in the xcom.cnf or other filename.cnf or on the xcomtcp command line

OR: 

On the local server where root receives the emails disable the notify script. 

Backup file xcom.glb file and edit it as follows:

  1. Copy the line "XNOTIFYCMD=$XCOM_HOME/cmd/xcomntfy" to duplicate it and then comment it out.
  2. On the copied line change it to be "XNOTIFYCMD="
  3. The 2 lines should then look like:
    #XNOTIFYCMD=$XCOM_HOME/cmd/xcomntfy
    XNOTIFYCMD=
  4. Restart XCOM for the change to take effect.