< Home

smtp server

Function

The smtp server command configures an SMTP server for sending outgoing report emails.

The undo smtp server command cancels the SMTP server setting.

Format

smtp server host [ port ]

undo smtp server

Parameters

Parameter Description Value
host Specifies the domain name or IP address of the SMTP server.
  • IP address: such as 10.10.1.1
  • Domain name: The value is a string of 1 to 64 characters, such as smtp.example.com.
port Specifies the port of the SMTP server. The value is an integer ranging from 1 to 65535. The default value is 25.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

If the SMTP server needs to authenticate users, run the smtp authentication command to create a user name and password for the authentication.

Example

# Set the IP address of the SMTP server to 10.10.0.1 and port to 25.

<sysname> system-view
[sysname] smtp server 10.10.0.1 25

# Set the domain name of the SMTP server to smtp.example.com.

<sysname> system-view
[sysname] smtp server smtp.example.com
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic