Configure Email Alerts

You can configure email alerts to use regular or secure Simple Mail Transfer Protocol (SMTP) processing, depending on which mode is appropriate for your environment.

You might choose to use regular SMTP for email alerts if you have an SMTP server installed on your network that accepts email messages from external parties. You might choose to use secure SMTP if you have an SMTP server installed on your network, but prefer to disallow anonymous relays, or if you do not have an internal email server because you implemented cloud-based email, such as Office 365.

You can configure email alerts differently for each group of arrays. You must have at least Power User permission to configure SMTP-based email alerts.

Using the following command options you can modify group settings, change the hostname or IP address of the SMTP server or its port number, allow use of SMTP authentication and encryption (with options to change the authentication password and enable the level of encryption, when enabled), change the email address for sending and user receiving email alerts, enable email to be sent to support, and set the minimum event data alert level at which alerts are sent.

For a full list of all group --edit options, refer to the Command Reference.

Configure email alerts.
group--edit [--smtp_server smtp server] [--smtp_port smtp port] [--smtp_auth {yes | no}] [--smtp_username username] [--smtp_encrypt_type {none | starttls | ssl}] [--smtp_from_addr email addr] [--smtp_to_addr email addr] [--send_event_data {yes | no}] [--alert_level {info | warning | critical}]
NOTE: When you edit SMTP, you must always include the --smtp_username, --smtp_encrypt_type, and password to prevent the operation from failing. If you are using authorization, you must also include --smtp_auth yes. You do not enter the password on the command line. After you run the command, you will be asked to enter the password. Providing the password this way avoids having to display it in plain text.
NOTE: The syntax for configuring SMTP email to send alert messages for critical alerts to multiple email addresses is, for example:
--smtp_to_addr Fred@here.com --smtp_to_addr George@here.com
Configuring SMTP email to send alert messages for critical alerts from user Joe Black to support.
$ group --edit --smtp_auth yes --smtp_username JoeBlack@mycompany.com --smtp_encrypt_type ssl --smtp_from_addr Joe.Black@customer.com --smtp_to_addr support@nimblestorage.com --alert_level critical