SP Set SMTP Server Subcommand

access: Administrators, Managers

Configures the Service Processor SMTP client with the remote SMTP server address information, including address and optional port number.

sp set smtp server [{-f | --from} FROM FIELD ] IP OR HOSTNAME OF SMTP SERVER

Argument Description
{-f | --from} Specifies the from field for the SMTP server.
IP OR HOSTNAME OF SMTP SERVER Specifies the IP address or the name of the host of the SMTP server.

The value you supply is prepended onto @hostname | ip_address. The default value is system.
For example, if you enter 'admin' for sp_22, e-mail messages sent will be from admin@sp_22.

If the hostname is not set, the IP will be used as follows: admin@10.10.30.55.

Return Codes

Following are the return values for this command:

Code Numeric Code Description
NWSE_Success 0 Command successfully completed.
NWSE_InvalidUsage 1 Invalid usage: bad parameter usage, conflicting options specified.
NWSE_RPCTimeout 2 Request was issued, but was not serviced by the server. RPC procedure timed out and the request may or may not have been serviced by the server.
NWSE_RPCNotConnected 3 Unable to connect to the RPC server.


Related Topics

System Management Commands

SP Command