Customizing riskware X-header block text using the CLI

Prev Next

Use the CLI commands in this procedure to enable or disable a block riskware policy rule and the custom text for the X-header.

To customize the X-header text:
  1. Go to CLI configuration mode.

    hostname > enable
    hostname # configure terminal
  2. Locate the policy rule ID you want to enable.

    hostname (config) # show analysis riskware policy rules
  3. Enable the particular policy rule ID.

    hostname (config) # analysis riskware policy rule <rule_ID> block
  4. Disable and re-enable the X-header feature for the custom X-header policy to take effect.

    hostname (config) # no email-analysis policy xheader enable
    hostname (config) # email-analysis policy xheader enable
  5. Enable the advanced X-header feature to insert the X-header line in a copy of the email message to the recipient.

    hostname (config) # email-analysis policy xheader advanced-xheader enable
  6. Enter custom text for the riskware block header.

    hostname (config) # email-analysis policy xheader riskware-block <riskware_block_header_text>
  7. Save your changes.

    hostname (config) # write memory
  8. Verify your customized X-header setting.

    hostname (config) # show email-analysis policy xheader
To disable the block X-header customization:
  1. Go to CLI configuration mode.

    hostname > enable
    hostname # configure terminal
  2. Disable the particular policy rule ID.

    hostname (config) # no analysis riskware policy rule <rule_ID> block
  3. Disable the riskware block X-header.

    hostname (config) # no email-analysis policy xheader riskware-block
  4. Save your changes.

    hostname (config) # write memory
  5. Verify the status of the X-header.

    hostname (config) # show email-analysis policy xheader