Is there a way to see what domain of MTA sent out a MAILER-DAEMON message stored in the delivery queue?
search cancel

Is there a way to see what domain of MTA sent out a MAILER-DAEMON message stored in the delivery queue?

book

Article ID: 381443

calendar_today

Updated On:

Products

Messaging Gateway

Issue/Introduction

Sometime messages from "MAILER-DAEMON" get stuck in the delivery queue due to a delivery problem, such as no REST response, Failed to connect, etc. I need to find where the message returns from. Is there a way to check what domain of the MTA returns it?

Resolution

  1. Log into CLI using admin account.
  2. Run the following command to find the queue ID of the message.
          mta-control delivery query-queue

    e.g. output of the command
    ...
    50/00-25817-AFD2B276 2024-11-06 08:51:06 (UTC) 2653 MAILER-DAEMON
    50/00-25817-AFD2B276 Queue: delivery
    50/00-25817-AFD2B276 Error: 421 4.4.0 [internal] Failed to connect: no mail servers for this domain could be reached at this time
    50/00-25817-AFD2B276 Next Attempt: 2024-11-07 00:36:18
    50/00-25817-AFD2B276 Retries: 7
    50/00-25817-AFD2B276 [email protected] 
    ...

  3. Run the following command to display/export the message.
          mta-control delivery export-msg-by-id 50/00-25817-AFD2B276

    If we need to export it to the FTP site, specify the FTP site as per below.
          mta-control delivery export-msg-by-id 50/00-25817-AFD2B276 "ftp://<user>@<ftp_server>/smg/"

Additional Information