--- title: "Configuring the mail server for scheduled reports using the CLI" slug: "configuring-the-mail-server-for-scheduled-reports-using-the-cli-1" tags: ["File Protect (FX)", "Product Usage"] updated: 2026-10-02T14:10:24Z published: 2026-10-02T14:10:24Z canonical: "docs.trellix.com/configuring-the-mail-server-for-scheduled-reports-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. # Configuring the mail server for scheduled reports using the CLI Use the CLI commands in this topic to configure the mail server that sends scheduled reports. See System mail server settings for a description of each parameter. ### Important If you use the CLI to configure the mail server, the changes will not appear on the **Email Settings** page in the Web UI. ### Note See [Adding and removing scheduled report recipients](/network-and-platform/docs/configuring-the-mail-server-for-scheduled-reports-using-the-cli-4) for information about configuring the report recipients using the CLI. To configure the mail server for scheduled reports: 1. Go to CLI configuration mode: ```plaintext hostname > enable hostname # configure terminal ``` 2. Specify the hostname or IP address of the mail server: ```plaintext hostname (config) report email smtp server { | } ``` 3. Specify the SMTP port used by the mail server to send reports: ```plaintext hostname (config) # report email smtp port ``` 4. Specify the domain name from which emails will appear to come: ```plaintext hostname (config) # report email smtp domain ``` 5. Specify the fully qualified return address from which emails are sent: ```plaintext hostname (config) # report email smtp return-addr ``` 6. Verify your changes: ```plaintext hostname (config) # show report email ``` 7. Save the configuration: ```plaintext hostname (config) # write memory ``` ### Note To remove a configuration or restore the default setting, append` no `to the command. For example, to restore the default return address, use the` no report email return-addr `command, and to remove the configured domain name, use `the no report email smtp domain `command. ### Examples In this example, the email server is configured to send scheduled reports. ```plaintext hostname (config) # report email server 10.4.0.0 hostname (config) # report email smtp domain mailer.acme.com hostname (config) # report email smtp return-addr reports@acme.com hostname (config) # show report email Report email configurations:        SMTP server: 10.4.0.0          SMTP server port: 25        SMTP Domain: mailer.acme.com        SMTP Return addr: reports@acme.com        ... ``` In this example, all configuration settings are restored to their default values. ```plaintext hostname (config) # show report email Report email configurations:        SMTP server: 10.4.0.0        SMTP server port: 26        SMTP Domain: acme.com        SMTP Return addr: admin@acme.com        ... hostname (config) # no email report smtp server hostname (config) # no email report smtp port hostname (config) # no email report smtp domain hostname (config) # no email report smtp return-addr hostname (config) # show report email Report email configurations:        SMTP server:        SMTP server port: 25        SMTP Domain:        SMTP Return addr: do-not-reply        ... ``` :