--- title: "Adding an SMTP server using the CLI" slug: "adding-an-smtp-server-using-the-cli-1" tags: ["Product Usage", "FX 10.x", "AX 10.x", "NX 10.x", "Customer", "Network Security"] updated: 2026-09-07T21:29:17Z published: 2026-09-07T21:29:17Z canonical: "docs.trellix.com/adding-an-smtp-server-using-the-cli-1" --- > ## 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. # Adding an SMTP server using the CLI To configure an SMTP server for email notifications: **To add a SMTP server:** 1. Enable the CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Enable email notifications: ``` hostname (config) # fenotify email enable ``` 3. Set the mail relay address used to send the email notifications: ``` hostname (config) # fenotify email mailhub address ``` 4. Set the mail port used to send the email notifications (default port is 25). ``` hostname (config) # fenotify email mailhub port ``` 5. Set the domain from which emails appear to come: ``` hostname (config) # fenotify email domain ``` 6. Set the user name in the return address for email notifications (the default is `do-not-reply`): ``` hostname (config) # fenotify email return user-name ``` 7. (Optional) To include the hostname in the return address for email notifications: ``` hostname (config) # fenotify email return host-name ``` 8. Save the configuration: ``` hostname (config) # write memory ```