You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在WSO2 Identity Server 5.11.0中配置Aruba邮箱作为output_adapter.email?

配置Aruba邮箱SMTP发送失败排查及解决建议

我此前已成功配置Gmail和Outlook邮箱用于密码找回等邮件发送场景,现在需要配置Aruba主机邮箱,但遇到连接失败问题。

当前配置(deployment.toml)

[output_adapter.email]
from_address= "****@aruba.it"
username= "*****@****.it"
password= "******"
hostname= "smtps.aruba.it"
port= 465
enable_start_tls= true
enable_authentication= true
signature = "****"

[output_adapter.email.custom_properties]
"mail.smtp.ssl.protocols"="TLSv1.2"
"mail.transport.protocol"="smtps"

错误日志

ERROR {org.wso2.carbon.event.output.adapter.email.EmailEventAdapter} - Event dropped at Output Adapter 'EmailPublisher' for tenant id '-1234', Error in message format, Could not connect to SMTP host: smtps.aruba.it, port: 465, response: -1 javax.mail.MessagingException: Could not connect to SMTP host: smtps.aruba.it, port: 465, response: -1

排查及解决建议

  • 修正协议配置冲突:端口465是SMTPS(SSL直连)端口,而enable_start_tls=true是用于普通SMTP端口(如587)升级加密连接的配置,两者冲突。建议将enable_start_tls改为false,保持mail.transport.protocol="smtps"。
  • 核对Aruba官方SMTP参数:Aruba的SMTP服务正确主机应为smtp.aruba.it(而非smtps.aruba.it);端口465对应SMTPS,端口587对应STARTTLS;用户名需使用完整邮箱地址,若开启两步验证需使用应用专用密码。
  • 测试网络连通性:确认服务器能访问Aruba的SMTP端口,可通过以下命令测试:
    telnet smtp.aruba.it 465
    # 或用openssl测试SSL连接
    openssl s_client -connect smtp.aruba.it:465
    
  • 调整SSL协议范围:Aruba可能支持TLSv1.3,尝试将mail.smtp.ssl.protocols改为TLSv1.2,TLSv1.3,或直接移除该配置让系统自动协商。

内容的提问来源于stack exchange,提问作者Rocco Manna

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.03 18:46:00