Setting up email servers by using the CLI

You can set up email server objects by using the command-line interface (CLI).

You can specify a server object that describes a remote Simple Mail Transfer Protocol (SMTP) email server to receive event notifications from the clustered system. You can specify up to six servers to receive notifications. To configure and work with email servers, use the following commands:

  1. Use the mkemailserver CLI command to create an email server object that describes a remote Simple Mail Transfer Protocol (SMTP) email server.
    For example, enter the following CLI command to set up an email server:
    mkemailserver -ip ip_address

    where ip_address is the IP address of a remote email server. This address must be a valid IPv4 or IPv6 address.

  2. To change the parameters of an existing email server object, use the chemailserver command.
    For example, to change the parameters of an email server, enter the following command:
    chemailserver -ip ip_addressemail_server_name_or_id

    where ip_address is the IP address of the email server object and email_server_name_or_id is the name or ID of the server object to be changed.

  3. To delete a specified email server object, use the rmemailserver command.
    For example, to delete an email server, enter the following command:
    rmemailserver email_server_name_or_id
  4. To display either a concise list or a detailed view of email servers that are configured on the system, use the lsemailserver command.
    For example, to display a concise view, enter the following command:
    lsemailserver -delim :
    To display a detailed view of an email server, enter the following command:
    lsemailserver email_server_name_or_id