Skip to content

POST Validate SMTP endpoint.

Endpoint

POST/web/v1/system/notifications/email/validate/smtp WEB

Authentication

  • Chain: WEB
  • JWT Token: true
  • API Key: false
  • Permissions: ["platform:notification:write"]

Rate Limit

Standard rate limit applies.

Headers

Frontend Headers

HeaderRequiredDescription
X-LOCALEYes用户的 locale
Accept-LanguageNo语言偏好

Cloudflare Headers

HeaderRequiredDescription
CF-Connecting-IPYesClient IP from Cloudflare
CF-IPCountryYesClient country code
CF-RayYesCloudflare Ray ID
CF-VisitorYesVisitor scheme
CF-WorkerNoCloudflare Worker indicator
CF-TCP-PortNoClient TCP port
CF-Edge-Keep-AliveNoEdge keep-alive status
CF-Cache-StatusNoCache status
CDN-LoopNoCDN loop detection
X-Real-IPYesReal client IP

Nginx Headers

HeaderRequiredDescription
X-PORTAL-ACCESS-CODEYesPortal access code
X-Real-IPYes客户端真实 IP
X-Forwarded-ForYes代理链
X-Forwarded-ProtoYes协议

Request Parameters

Body (JSON)

FieldTypeRequiredDescription
configEmailChannelConfigYes邮件渠道配置
config.smtpHostStringYesSMTP 服务器主机名
config.smtpPortIntegerYesSMTP 服务器端口 (1-65535)
config.senderEmailStringYes发件人邮箱地址
config.senderNameStringYes发件人显示名称
config.usernameStringYesSMTP 认证用户名
config.passwordStringYesSMTP 认证密码
config.useSslBooleanNo是否使用 SSL 加密 (默认 true)
config.useStartTlsBooleanNo是否使用 STARTTLS (默认 false)
config.connectionTimeoutIntegerNo连接超时时间(毫秒, 默认 10000)
config.readTimeoutIntegerNo读取超时时间(毫秒, 默认 30000)

Response

200 OK

FieldTypeDescription
data.validboolean配置是否有效
data.resultsMap<ProtocolType, ProtocolValidationResult>各协议的验证结果映射

Phase 3 Simulation

SlaunchX Internal Documentation