addemailserver

Use the addemailserver command to add or change the SMTP server configuration used to send e-mail alerts.

Syntax

Read syntax diagramSkip visual syntax diagram addemailserver -help-h-? -serverserver -portport -replytoemail_address-quiet

Parameters

-help | -h | -?
Lists help for the command. If you specify additional parameters and arguments, those parameters and arguments are ignored.
-server server
Specifies the SMTP server ip address or hostname. This will be the SMTP server used to send e-mail alerts to.
-port port
Specifies a port number to use for the SMTP server. If not specified, the default port is 25. Valid ports are from 1 to 65535.
-replyto email_address
Specifies the e-mail addresses to be be used as the reply-to e-mail address on e-mail alerts sent. If not specified then no reply-to e-mail address will be used.
-quiet
Suppresses the confirmation prompt for this command. This flag answers yes to all confirmation prompts.

Example: Adding an SMTP server for e-mail alerts

csmcli> addemailserver -server na.relay.ibm.com -port 25

The following output is returned:

IWNR1728I [Apr 14, 2016 4:17:34 PM] The SMTP server configuration has been updated.
IWNR1710I [Apr 14, 2016 4:17:34 PM] Configured SMTP server na.relay.ibm.com:25.

Example: Adding an SMTP server for e-mail alerts with a reply-to e-mail address

csmcli> addemailserver -server na.relay.ibm.com -replyto user@us.ibm.com

The following output is returned:

IWNR1728I [Apr 14, 2016 4:20:16 PM] The SMTP server configuration has been updated.
IWNR1710I [Apr 14, 2016 4:20:16 PM] Configured SMTP server na.relay.ibm.com:25.
IWNR1714I [Apr 14, 2016 4:20:16 PM] The reply-to e-mail address was set to user@us.ibm.com.