--- title: "Setting up the SMTP recipients using the CLI" slug: "setting-up-the-smtp-recipients-using-the-cli" tags: ["Endpoint Security (HX)", "Product Usage"] updated: 2026-09-23T17:24:36Z published: 2026-09-23T17:24:36Z canonical: "docs.trellix.com/setting-up-the-smtp-recipients-using-the-cli" --- > ## 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. # Setting up the SMTP recipients using the CLI To set up the SMTP recipients, perform the following subtasks: - Add the SMTP recipients. - Configure the SMTP recipient listing for email notifications, To add an SMTP recipient: 1. Go to CLI configuration mode: `hostname > enable` `hostname # configure terminal` 2. Enable email notifications: `hostname (config) # fenotify email enable` 3. Add a recipient for email notifications: `hostname (config) # fenotify email recipient <rname>` 4. Select a recipient to receive email notifications (one recipient per command): `hostname (config) # fenotify email recipient <rname> enable` 5. Specify the email address for a recipient who will receive email notifications: `hostname (config) # fenotify email recipient <rname> email-address <email_address>` 6. Save the configuration: `hostname (config) # write memory` To configure the SMTP recipient listing for email notifications: 1. Go to CLI configuration mode: `hostname > enable` `hostname # configure terminal` 2. Enable email notifications: `hostname (config) # fenotify email enable` 3. To send notifications in JSON Normal format containing detailed information and abstracts such as alert type, ID, source IP, malware name, hostname, and alert URL without any redundant information, enter: `hostname (config) # fenotify email recipient <rname> prefer message format json-normal` 4. Specify how email notifications are delivered to the specified recipient: - To deliver the notification as an email attachment, enter: `hostname (config) # fenotify email recipient rname prefer message send-as attachment` - To deliver the notification in the email body (the default), enter: `hostname (config) # fenotify email recipient rname prefer message send-as in-line` 5. Select the event type: `hostname (config) # fenotify email alert indicator-presence enable` `hostname (config) # fenotify email alert indicator-executed enable` `hostname (config) # fenotify email alert exploit-detected enable` `hostname (config) # fenotify email alert exploit-blocked enable` `hostname (config) # fenotify email alert malware-object enable` 6. Save the configuration: `hostname (config) # write memory` :