/tool/e-mail

e-mail

路由器通过其发送电子邮件的 SMTP 服务器设置:服务器和端口、TLS 模式、证书验证、发件人和登录信息。除非命令覆盖这些设置,否则 /tool/e-mail/send 会为每条消息使用它们。请参阅 电子邮件。


tool/e-mail

Type: Settings Directory

路由器通过其发送电子邮件的 SMTP 服务器设置:服务器和端口、TLS 模式、证书验证、发件人和登录信息。除非命令覆盖这些设置,否则 /tool/e-mail/send 会为每条消息使用它们。请参阅 电子邮件。

参数类型描述
serveralt { ipv6: ip6Addr , ip: ipAddr , fqdn: string }SMTP 服务器的 IP 地址、IPv6 地址或 FQDN。使用名称时,last-address 显示路由器连接到的地址。默认值:0.0.0.0。
portnumSMTP 服务器端口。默认值:25。
tlsenum (no | yes | starttls)TLS 加密模式: - no(默认)- 不使用 TLS。即使服务器提供 STARTTLS,路由器也不会发送 STARTTLS。 - yes - 从连接开始就使用 TLS(隐式 TLS,通常为端口 465)。 - starttls - 使用 STARTTLS 升级连接(通常为端口 587)。当服务器不提供 STARTTLS 时,发送会失败并显示 TLS not supported by server;不会回退到未加密连接。
vrfenum服务创建出站连接所在的 VRF。默认值:main。
fromstringName or email address that will be shown as the sender. When it is empty, the router sends the message with an empty sender (<>), which many servers refuse. Default: <>.
userstring用于向 SMTP 服务器认证的用户名。路由器使用 AUTH PLAIN 登录;在没有 TLS 的情况下,用户名和密码会以未加密方式通过网络传输。默认值:""。
passwordstring用于向 SMTP 服务器认证的密码。默认值:""。
certificate-verificationenum (no | yes | yes-without-crl)TLS 证书验证: - no(默认)- 路由器加密连接但不检查服务器证书。 - yes - 根据本地证书存储验证证书链,包括服务器名称。内置信任存储默认涵盖电子邮件。 - yes-without-crl - 验证证书但不执行 CRL 检查。
只读参数类型描述
last-statusenum (none | resolving-dns | in-progress | failed | succeeded)上次电子邮件发送尝试的状态:结束时为 succeeded 或 failed。
last-addressalt { ip: ipAddr , ipv6: ip6Addr }上次使用的 SMTP 服务器的 IP 地址。