Adding an SMTP server using the CLI

Prev Next

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 <ip address>
  4. Set the mail port used to send the email notifications (default port is 25).

    hostname (config) # fenotify email mailhub port <port number>
  5. Set the domain from which emails appear to come:

    hostname (config) # fenotify email domain <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 <user name>
  7. (Optional) To include the hostname in the return address for email notifications:

    hostname (config) # fenotify email return host-name <host name>
  8. Save the configuration:

    hostname (config) # write memory