ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Email notifications are not being sent out and files are growing in %NX_ROOT%\site\mail_queue folder as a result.

book

Article ID: 53382

calendar_today

Updated On:

Products

CA IT Asset Manager CA Software Asset Manager (CA SAM) ASSET PORTFOLIO MGMT- SERVER SUPPORT AUTOMATION- SERVER CA Service Desk Manager - Unified Self Service KNOWLEDGE TOOLS CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager

Issue/Introduction

Description

If the mail server is down or Service Desk is unable to connect to the email server to process email notifications, unsent emails are stored in %NX_ROOT%\site\mail_queue folder. These emails may not be processed once email server is up and running.

Solution

To resolve the issue, perform the following steps:

  1. Switch to the folder $NX_ROOT/site/mail_queue.
  2. Run the below command:
  3. pdm_mail -c PROCESS_QUEUE
  4. Run the command multiple times until all the email files are sent out. If the service desk is unable to contact mail server, you may see below error in the stdlog file:

    pdm_mail_nxd     2784 ERROR  hunny_mail_intf 1549 ThrdLogger Sess:6:1:0 Unable to connect to mail servers (mailhost mail localhost). Last message: Can't connect to server at localhost Error (6) Connection refused.
  5. If the above command does not process the emails, you need to kill the pdm_mail_nxd process, so that the Service Desk daemon manager will restart it. This will now process the files in the mail_queue folder when it restarts. If the daemon manager doesn't restart the process (it will only restart it 10 times), execute the command
    "pdm_d_refresh" 
    to reset the restart counter back to 0.

Environment

Release:
Component: ARGIS