--- title: "Editing impersonation detection rules using the CLI" slug: "editing-impersonation-detection-rules-using-the-cli" tags: ["Product Usage", "EX 11.x", "FX 11.x", "AX 11.x", "NX 11.x", "Network Security"] updated: 2026-08-24T19:53:10Z published: 2026-08-24T19:53:10Z canonical: "docs.trellix.com/editing-impersonation-detection-rules-using-the-cli" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Editing impersonation detection rules using the CLI Use the CLI commands in this topic to edit impersonation detection rules. ### Prerequisites - An established connection between the Email Security - Server appliance and the Internet. - You are logged in to the Web UI with Admin and Operator access. **To edit an impersonation rule:** 1. Go to CLI configuration mode. ``` hostname > enable hostname # configure terminal ``` 2. View the impersonation rule list to see the rule ID for the rule you want to edit. ``` hostname (config) # show email-analysis impersonation all ``` 3. Edit by specifying the impersonation rule ID followed by replacement names and email addresses. - To replace a rule with a single name and email address: ``` hostname (config) # email-analysis impersonation edit ``` - To replace a rule with multiple names and email addresses: ``` hostname (config) # email-analysis impersonation edit ``` 4. Verify the changes. ``` hostname (config) # show email-analysis impersonation ``` 5. Save the changes to the current active configuration. ``` hostname (config) # write memory ```