Customizing riskware X-header match text using the CLI

Prev Next

Use the CLI commands in this procedure to enable or disable a match 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> match
  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 match header.

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

    hostname (config) # write memory
  8. Verify the status of a custom policy rule to match riskware.

    hostname (config) # show email-analysis policy xheader
To disable the match 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> match
  3. Disable the riskware match X-header.

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

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

    hostname (config) # show email-analysis policy xheader