SMTP Error : could not initiate SMTP session: remote error: tls: handshake failure #13542

Closed
opened 2025-11-02 10:45:34 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @trtuaazz on GitHub (Sep 29, 2024).

Description

I try use Gitea's mailer, but has a error
Settings is:

[mailer]
ENABLED = true
PROTOCOL = smtps
SMTP_ADDR = gz-smtp.qcloudmail.com
SMTP_PORT = 465
USER = ***
PASSWD = ***
FROM = ***

But report this: gomail: could not send email 1: could not initiate SMTP session: remote error: tls: handshake failure

Gitea Version

1.22.1

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Ubuntu Systemd

Database

MySQL/MariaDB

Originally created by @trtuaazz on GitHub (Sep 29, 2024). ### Description I try use Gitea's mailer, but has a error Settings is: ``` [mailer] ENABLED = true PROTOCOL = smtps SMTP_ADDR = gz-smtp.qcloudmail.com SMTP_PORT = 465 USER = *** PASSWD = *** FROM = *** ``` But report this: ```gomail: could not send email 1: could not initiate SMTP session: remote error: tls: handshake failure``` ### Gitea Version 1.22.1 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Ubuntu Systemd ### Database MySQL/MariaDB
GiteaMirror added the issue/needs-feedback label 2025-11-02 10:45:34 -06:00
Author
Owner

@sillyguodong commented on GitHub (Oct 1, 2024):

I found a post on the forum with a similar issue to yours. tomekk provided a possible solution that you can try. I hope it helps you!

@sillyguodong commented on GitHub (Oct 1, 2024): I found a [post](https://forum.gitea.com/t/email-could-not-initiate-smtp-session-error/8164/11) on the forum with a similar issue to yours. tomekk provided a possible solution that you can try. I hope it helps you!
Author
Owner

@trtuaazz commented on GitHub (Oct 11, 2024):

I found a post on the forum with a similar issue to yours. tomekk provided a possible solution that you can try. I hope it helps you!我在论坛上发现一个与您类似问题的帖子。tomekk 提供了一个您可以尝试的可能解决方案。希望对您有所帮助!

No, he still doesn't work, still prompting 'tls: handshake failure'

@trtuaazz commented on GitHub (Oct 11, 2024): > I found a [post](https://forum.gitea.com/t/email-could-not-initiate-smtp-session-error/8164/11) on the forum with a similar issue to yours. tomekk provided a possible solution that you can try. I hope it helps you!我在论坛上发现一个与您类似问题的[帖子](https://forum.gitea.com/t/email-could-not-initiate-smtp-session-error/8164/11)。tomekk 提供了一个您可以尝试的可能解决方案。希望对您有所帮助! No, he still doesn't work, still prompting 'tls: handshake failure'
Author
Owner

@GiteaBot commented on GitHub (Nov 10, 2024):

We close issues that need feedback from the author if there were no new comments for a month. 🍵

@GiteaBot commented on GitHub (Nov 10, 2024): We close issues that need feedback from the author if there were no new comments for a month. :tea:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13542