smtp command

This command configures and displays the management-module SMTP settings.

Table 1. smtp command
Function What it does Command Valid targets
Display SMTP server host name or IP address Displays the SMTP server host name or IP address. smtp
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Server host name or IP address - set Checks syntax and sets the server host name or IP address. smtp -s hostname/ip_address

where hostname/ip_address is the host name or IP address of the server.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

SMTP e-mail server domain name - set Checks syntax and sets the SMTP e-mail server domain name. smtp -d domainname

where domainname is a valid domain name that meets the following criteria:

  • Alphanumeric string up to 63 characters in length.
  • Can contain dots (.), dashes (-), or underscores (_).
  • Must contain at least one dot.
  • No consecutive dots are allowed.
  • Quotes are not required.
  • Value can be cleared by setting it to an empty, double-quote limited string ("").
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Example:

To set the SMTP server host name to us.ibm.com, while management module 1 is set as the persistent command environment, at the system:mm[1]> prompt, type
                  smtp -s us.ibm.com
               
To display the SMTP configuration, while management module 1 is set as the persistent command environment, at the system:mm[1]> prompt, type
                  smtp
               

The following example shows the information that is returned from these two commands:

               system:mm[1]> smtp -s us.ibm.com
OK
system:mm[1]> smtp
-s us.ibm.com
system:mm[1]>