[GH-ISSUE #1111] [Bug] Office365 STARTTLS 无法发送邮件 显示TLS失败 #749

Open
opened 2026-03-03 01:05:42 +03:00 by kerem · 4 comments
Owner

Originally created by @LeenHawk on GitHub (Dec 18, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/1111

Release Version / 软件版本

v0.4.9

Description / 缺陷描述

无法发送 测试发送的时候显示

failed to send mail: dial failed: tls: first record does not look like a TLS handshake

Steps to reproduce / 复现步骤

使用一个office365的邮箱链接就会显示,但是可以连接的

root@xxxx:~# telnet smtp.office365.com 587
Trying 2603:1046:c03:e::2...
Connected to smtp.office365.com.
Escape character is '^]'.
220 KL1PR0401CA0023.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 18 Dec 2025 14:47:50 +0000
Originally created by @LeenHawk on GitHub (Dec 18, 2025). Original GitHub issue: https://github.com/certimate-go/certimate/issues/1111 ### Release Version / 软件版本 v0.4.9 ### Description / 缺陷描述 无法发送 测试发送的时候显示 ```shell failed to send mail: dial failed: tls: first record does not look like a TLS handshake ``` ### Steps to reproduce / 复现步骤 使用一个office365的邮箱链接就会显示,但是可以连接的 ```shell root@xxxx:~# telnet smtp.office365.com 587 Trying 2603:1046:c03:e::2... Connected to smtp.office365.com. Escape character is '^]'. 220 KL1PR0401CA0023.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 18 Dec 2025 14:47:50 +0000 ```
Author
Owner

@LeenHawk commented on GitHub (Dec 18, 2025):

我在forgejo上是可以发送邮件的

<!-- gh-comment-id:3670686995 --> @LeenHawk commented on GitHub (Dec 18, 2025): 我在forgejo上是可以发送邮件的
Author
Owner

@fudiwei commented on GitHub (Dec 19, 2025):

授权凭据里选择的是 STARTTLS 吗?不是强制 TLS/SSL

<!-- gh-comment-id:3673628239 --> @fudiwei commented on GitHub (Dec 19, 2025): 授权凭据里选择的是 STARTTLS 吗?不是强制 TLS/SSL
Author
Owner

@LeenHawk commented on GitHub (Dec 19, 2025):

授权凭据里选择的是 STARTTLS 吗?不是强制 TLS/SSL

我都试过了,强制TLS会超时 office365不支持强制TLS

<!-- gh-comment-id:3673843362 --> @LeenHawk commented on GitHub (Dec 19, 2025): > 授权凭据里选择的是 STARTTLS 吗?不是强制 TLS/SSL 我都试过了,强制TLS会超时 office365不支持强制TLS
Author
Owner

@LeenHawk commented on GitHub (Dec 19, 2025):

vaultwarden和forgejo都可以

<!-- gh-comment-id:3673855887 --> @LeenHawk commented on GitHub (Dec 19, 2025): vaultwarden和forgejo都可以
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#749
No description provided.