< Home

smtp authentication

Function

The smtp authentication command creates a user name and password for logging in to the SMTP server.

The undo smtp authentication command deletes the specified user name and password for logging in to the SMTP server.

Format

smtp authentication user-name password

undo smtp authentication

Parameters

Parameter Description Value
user-name Specifies the user name for authentication on the SMTP server. The value must be a registered user name on the SMTP server.

The value is a case-sensitive string. Its length ranges from 1 to 64.

NOTE:
Whether the user name needs to carry the domain name is determined by SMTP mail servers. The user names used to log in to some SMTP mail servers must carry domain names, whereas the user names used to log in to other SMTP mail servers do not need to carry domain names.
password Specifies the password for authentication on the SMTP server.

The value must be the same as the password of the user name registered on the SMTP server.

To enhance security, the password is recommended to meet the minimum strength requirement, that is, it needs to contain at least three types of the following characters: upper-case letters (A to Z), lower-case letters (a to z), digits (0 to 9), and special characters such as exclamation points (!), at signs (@), number signs (#), dollar signs ($), and percent (%).

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Before you create an SMTP server account, run the smtp server command to configure the SMTP server and ensure that the FW and SMTP server can communicate.

Example

# Create an account with user name mailuser and password Password@123 for logging in to the SMTP server.

<sysname> system-view
[sysname] smtp authentication mailuser Password@123
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >