Configuring the non-delivery report using the CLI

Prev Next

Use this command to customize the non-delivery report.

Prerequisites

To customize the non-delivery report:

  1. Go to CLI configuration mode.

    hostname > enable
    hostname # configure terminal
  2. View the current non-delivery report:

    hostname (config) # show email-analysis mta non-delivery-report

    In the following example, the non-delivery report is configured with default values:

    From : MAILER-DAEMON (Mail Delivery System)

    Subject: Undelivered Mail Returned to Sender

    This is the mail system at host $myhostname.

    I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.

    For further assistance, please send mail to postmaster.

    If you do so, please include this problem report. You can delete your own text from the attached returned message.

    The mail system

    By default, the from address is MAILER-DAEMON (Mail Delivery System), the subject line is Undelivered Mail Returned to Sender, and the message body contains the content shown above.

  3. (Optional). Modify the non-delivery report:

    To change the from address:

    hostname (config) # email-analysis mta non-delivery-report from <from_address>

    To change the subject line:

    hostname (config) # email-analysis mta non-delivery-report subject <subject_line>

    To change the message body:

    hostname (config) # email-analysis mta non-delivery-report template <this_is_an_ndr_message>

  4. Verify your changes:

    hostname (config) # show email-analysis mta non-delivery-report
  5. Save your changes.

    hostname (config) # write memory