跳至主要内容

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: