lsemailserver

Use the lsemailserver command to display a concise list or a detailed view of email servers that are configured on the system.

Syntax

lsemailserver [ -nohdr ] [ -delimdelimiter ] [ { email_server_name | email_server_id } ]

Parameters

-nohdr
(Optional) By default, headings are displayed for each column of data in a concise style view, and for each item of data in a detailed style view. The -nohdr parameter suppresses the display of these headings.
Note: If there is no data to be displayed, headings are not displayed.
-delimdelimiter
(Optional) By default in a concise view, all columns of data are space-separated. The width of each column is set to the maximum width of each item of data. In a detailed view, each item of data has its own row, and if the headers are displayed, the data is separated from the header by a space. The -delim parameter overrides this behavior. Valid input for the -delim parameter is a 1-byte character. If you enter -delim : on the command line, the colon character (:) separates all items of data in a concise view; for example, the spacing of columns does not occur. In a detailed view, the data is separated from its header by the specified delimiter.
email_server_name | email_server_id
(Optional) Specifies the name or ID of an existing email server that must be listed.

Description

Use this command to display a concise list or a detailed view of email servers that are configured on the system.

This table provides the attribute values that can be displayed as output view data.
Table 1. lsemailserver output
Attribute Description
id Indicates the ID of the email server.
name Indicates the name of the email server.
IP_address Indicates the IP address of the email server.
port Indicates the port of the email server.
status Indicates the state of the email server as reported by the last periodic health check or email send attempt. The possible values are:
  • untried (default)
  • failed
  • failed_temporary
  • active

A concise invocation example

lsemailserver -delim :

The concise resulting output:

id:name:IP_address:port:status
0:emailserver0:192.135.60.3:25:active
1:emailserver1:192.135.60.4:25:active
2:emailserver2:192.135.60.5:25:active

A detailed invocation example

lsemailserver email0

The detailed resulting output:

id 0
name emailserver0
IP_address 192.135.60.3
port 25
status active

A concise invocation example

lsemailserver

The concise resulting output:

id name   IP_address    port status
0  mail00 9.174.157.177 25   untried
1  mail02 9.174.157.9   25   failed_temporary
2  mail04               25   active