Control-M/Server is not sending emails via Java and U_CTMMAIL logs in the proclog directory show errors like the following:  CM_IPC_ce_command: CM_IPC_ce_command: CE request ..... failed. rc = 30

Version 5
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    Control-M/Server for UNIX and Microsoft Windows


    Control-M/Server for UNIX and Microsoft Windows


    Control-M/Server 9.0.00 and above


    Control-M/Server is not sending emails via Java and U_CTMMAIL logs in the proclog directory show errors like the following: 

    0911 06:13:50.074 U_CTMMAIL64619334: CM_IPC_ce_command: CM_IPC_ce_command: CE request [send "<CTM HOME>/ctm_server/tmp/50S7ma.50S7ma.64619334" "<CTM HOME>/ctm_server/ 
    tmp/50S7mb.50S7mb.64619334" "<CTM HOME>/ctm_server/tmp/NS_5701645697037898118.txt"] failed. rc = 30

    When enabling debug in java for email, the p_ctmce*.out log file will show java errors like below: 

    [Fatal Error] :1:2053: An invalid XML character (Unicode: 0x16) was found in the element content of the document. 
    com.sun.mail.smtp.SMTPSendFailedException: [EOF] 
    at com.sun.mail.smtp.SMTPTransport.issueSendCommand( 

    javax.mail.MessagingException: Can't send command to SMTP host; 
    nested exception is: Invalid argument 
    at com.sun.mail.smtp.SMTPTransport.sendCommand( 
    at com.sun.mail.smtp.SMTPTransport.sendCommand( 

    To enable debug in java for email to gather more details, do the following:

    1. On Control-M/Server, edit the file <CTM HOME>/ctm_server/data/ by removing the comment symbol in line:
    2. Rename file to
    3. Then run command "dbglvl CE 4 0"
    4 Run command :  "dbglvl TR 4 0"
    5. Duplicate the email failure and in the ctm_server/proclog directory look for a file p_ctmce*.out , TRxxx files and search for the above errors
    6. Disable debug by reverting the changes in step 1 and 2, and run the command dbglvl ALL 0 0 


    Java mail is not properly handling the email request


    Revert back to the older method for Control-M/Server to send email.

    1. Define the environment variable CTMS_USE_OLD_EMAIL and set to a value of Y

    Add the following line to $HOME/.cshrc of the Control-M/Server Unix user account.

    In Windows, please open the System Properties, define a new System Variable

    Consult your Unix or Windows System Administrator for further assistance as needed.

    2. Stop and restart Control-M/Server for the change to take effect.
    Consult your Control-M/Server System Administrator for further assistance.

    NOTE: By having Control-M/Server use the previous email option,  this will disable new mail capabilities (e.g. authentication) which were introduced in Control-M Server 9.0.00 Fix Pack 3

    Article Number:


    Article Type:

    Solutions to a Product Problem

      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles