Setting up email servers using the CLI

You can set up email server objects 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. Issue the mkemailserver CLI command to create an email server object that describes a remote Simple Mail Transfer Protocol (SMTP) email server.
    For example, issue 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 must be a valid IPv4 or IPv6 address.

  2. To change the parameters of an existing email server object, issue the chemailserver command.
    For example:
    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, issue the rmemailserver command.
    For example:
    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, issue 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