fix: support SMTP STARTTLS mode and NTLM auth (#5426)

* fix: support SMTP STARTTLS mode and NTLM auth

Add explicit SMTP STARTTLS configuration for 587-style connections and keep SSL/TLS as the implicit TLS mode.

Prefer PLAIN when advertised, keep LOGIN compatibility, and add NTLM as a fallback for Exchange SMTP servers that require it after STARTTLS.

* fix: respect explicit SMTP encryption mode

* fix: preserve SMTP TLS compatibility
This commit is contained in:
Benson Yan
2026-06-24 12:45:39 +08:00
committed by GitHub
parent 9fc9c8f1e3
commit 2f23a66733
27 changed files with 959 additions and 52 deletions
+5
View File
@@ -226,6 +226,9 @@
"SMTP 端口": "SMTP ポート",
"SMTP 访问凭证": "SMTP 認証情報",
"SMTP 账户": "SMTP アカウント",
"SMTP 加密方式": "SMTP 暗号化方式",
"SSL/TLS": "SSL/TLS",
"STARTTLS": "STARTTLS",
"Sonnet 模型": "Sonnetモデル",
"speed 字段用于控制 Claude 推理速度模式。默认关闭以避免意外切换到 fast 模式": "speed フィールドは Claude の推論速度モードを制御します。意図せず fast モードへ切り替わるのを避けるため、デフォルトで無効です",
"SSE 事件": "SSEイベント",
@@ -1772,6 +1775,7 @@
"新获取的模型": "新たに取得したモデル",
"新额度:": "新しい残高:",
"无": "なし",
"无加密": "暗号化なし",
"无GPU": "No GPU",
"无冲突项": "競合項目なし",
"无效的部署信息": "Invalid deployment information",
@@ -3185,6 +3189,7 @@
"请选择该渠道所支持的模型,留空则不更改": "このチャネルに対応しているモデルを選択してください。空欄の場合は変更されません",
"请选择过期时间": "有効期限を選択してください",
"请选择通知方式": "通知方法を選択してください",
"请选择一种 SMTP 传输加密方式": "SMTP の転送暗号化方式を 1 つ選択してください",
"调整额度": "残高調整",
"调整额度成功": "残高の調整に成功しました",
"调用次数": "呼び出し回数",