Setting up the SMTP recipients using the CLI

Prev Next

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. Select one of the XML, JavaScript Object Notation (JSON), or Text options for the format of the notifications received by a specified recipient:

    Note

    The json_legacy-concise, json_legacy-extended, and json_legacy-normal formats are deprecated.

    • To send notifications in XML Concise format containing basic information such as alert type, ID, source IP, malware name, hostname, and alert URL, enter:

      hostname (config) # fenotify email recipient <rname> prefer message format xml-concise

    • To send notifications in XML Extended format containing detailed information and abstracts including data-theft information (if any) and static-analysis details (XML Extended provides all details about files and objects modified during analysis.), enter:

      hostname (config) # fenotify email recipient <rname> prefer message format xml-extended

    • To send notifications in XML 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 xml-normal

    • To send notifications in JSON Concise format containing basic information such as alert type, ID, source IP, malware name, hostname, and alert URL, enter:

      hostname (config) # fenotify email recipient <rname> prefer message format json-concise

    • To send notifications in JSON Extended format containing detailed information and abstracts including data-theft information (if any) and static-analysis details (JSON Extended provides all details about files and objects modified during analysis.), enter:

      hostname (config) # fenotify email recipient <rname> prefer message format json-extended

    • 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

    • To send notifications in Text Concise format containing basic information such as alert type, ID, source IP, malware name, hostname, and alert URL, enter:

      hostname (config) # fenotify email recipient rname prefer message format text-concise

    • To send notifications in Text Extended format containing detailed information and abstracts including data-theft information (if any) and static-analysis details (Text Extended provides all details about files and objects modified during analysis.), enter:

      hostname (config) # fenotify email recipient rname prefer message format text-extended

    • To send notifications in Text 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 text-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. Enable email notifications for specified recipients when ATI alert updates are detected:

    hostname (config) # fenotify email recipient <rname> alerts-update enable

  6. Specify the delivery frequency for email notifications:

    Note

    Trellix recommends using per-event notifications.

    • To receive information about all events detected in the past 24 hours, enter:

      hostname (config) # fenotify email delivery daily-digest

    • To receive a daily notification for each entity that was the source of the event, enter:

      hostname (config) # fenotify email delivery daily-per-source

    • To receive an hourly notification for each entity that was the source of the event, enter:

      hostname (config) # fenotify email delivery hourly-per-source

    • To receive a notification every minute for each entity that was the source of the event, enter:

      hostname (config) # fenotify email delivery per-1min-per-source

    • To receive a notification every 5 minutes for each entity that was the source of the event, enter:

      hostname (config) # fenotify email delivery per-5min-per-source

    • To receive information about each event, sent when the event is triggered, enter:

      hostname (config) # fenotify email delivery per-event

  7. Save the configuration:

    hostname (config) # write memory