跳到主要内容

smtp 命令

使用此命令可显示和配置电子邮件警报的 SMTP 服务器设置。

语法:
smtp [-options]
表 1. smtp 选项
选项描述
-sSMTP 服务器 IP 地址或主机名有效的 IP 地址或主机名(限制为 63 个字符)
-pnSMTP 端口号有效端口号
-authSMTP 认证支持enabled, disabled
-authnSMTP 认证用户名字符串(限制为 256 个字符)
-authpwSMTP 认证密码字符串(限制为 256 个字符)
-authmd SMTP 认证方法CRAM-MD5, LOGIN
-rpath SMTP 反向路径电子邮件地址。有效的电子邮件地址
示例:
system> smtp -auth enabled
XCC will not be fully FIPS compliant if the function is enabled.
Invalid user name
system> smtp -auth enabled -authn usename -authpw 123456
XCC will not be fully FIPS compliant if the function is enabled.
ok
system> smtp
-s: 0.0.0.0
-pn: 25
-auth: enabled
-authn: usename
-authmd: CRAM-MD5
-rpath: