please help! SMTP server does not support AUTH #12161

Closed
opened 2025-11-02 10:00:42 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @JohyC on GitHub (Dec 7, 2023).

Description

setting Mailer SMTP use outlook.com like this.
image

But i got this error!

gomail: could not send email 1: SMTP server does not support AUTH, but credentials provided

Gitea Version

1.21.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

image
image

Database

PostgreSQL

Originally created by @JohyC on GitHub (Dec 7, 2023). ### Description setting Mailer SMTP use outlook.com like this. ![image](https://github.com/go-gitea/gitea/assets/38210128/570ea847-f485-4422-bd71-98c017d8dcd6) But i got this error! `gomail: could not send email 1: SMTP server does not support AUTH, but credentials provided` ### Gitea Version 1.21.0 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? ![image](https://github.com/go-gitea/gitea/assets/38210128/2f9690e5-4eb5-4561-85a1-3a0ae3ca006d) ![image](https://github.com/go-gitea/gitea/assets/38210128/a6281e04-a327-45f7-8786-7b6dfce2c3f6) ### Database PostgreSQL
GiteaMirror added the type/question label 2025-11-02 10:00:42 -06:00
Author
Owner

@lng2020 commented on GitHub (Dec 7, 2023):

Are u using the right port? I think 465 is for smtps and 587 for smtp+starttls

@lng2020 commented on GitHub (Dec 7, 2023): Are u using the right port? I think `465` is for `smtps` and `587` for `smtp+starttls`
Author
Owner

@JohyC commented on GitHub (Dec 14, 2023):

Are u using the right port? I think 465is for smtps and 587 for smtp+starttls

There are no issues with the domain name and port protocols of SMTP; according to Microsoft文档设置

The problem is that the Outlook organization email is enabled by default, using the SMTP Auth protocol. Resulting in persistent error message 'could not send email 1: SMTP server does not support AUTO, but credentials provided'`

It seems that my personal email is also enabled by default with SMTP AUTO No place to set up...
image

@JohyC commented on GitHub (Dec 14, 2023): > Are u using the right port? I think `465`is for `smtps` and `587` for `smtp+starttls` There are no issues with the domain name and port protocols of SMTP; according to [Microsoft文档设置](https://support.microsoft.com/zh-cn/office/outlook-com-%E7%9A%84-pop-imap-%E5%92%8C-smtp-%E8%AE%BE%E7%BD%AE-d088b986-291d-42b8-9564-9c414e2aa040) The problem is that the Outlook organization email is enabled by default, using the SMTP Auth protocol. Resulting in persistent error message 'could not send email 1: SMTP server does not support AUTO, but credentials provided'` It seems that my personal email is also enabled by default with SMTP AUTO No place to set up... ![image](https://github.com/go-gitea/gitea/assets/38210128/99e9e81d-c45a-436e-bd36-3b506146bea2)
Author
Owner

@tritea commented on GitHub (Dec 19, 2023):

I have the same problem

@tritea commented on GitHub (Dec 19, 2023): I have the same problem
Author
Owner

@Jiewyjson commented on GitHub (Feb 9, 2024):

I have the same problem
can you solve the problem now?

@Jiewyjson commented on GitHub (Feb 9, 2024): > I have the same problem can you solve the problem now?
Author
Owner

@ZairaFrine commented on GitHub (Feb 13, 2024):

I used this config:
imagen_2024-02-12_182940700

also, notice that the password should have that kind of quotation character: password at the start and end of the password, if it does include spechial chars....
hope i could help

@ZairaFrine commented on GitHub (Feb 13, 2024): I used this config: ![imagen_2024-02-12_182940700](https://github.com/go-gitea/gitea/assets/51337330/fa52f87b-a36e-44a7-956e-5f8880ee399a) also, notice that the password should have that kind of quotation character: `password` at the start and end of the password, if it does include spechial chars.... hope i could help
Author
Owner

@denyskon commented on GitHub (Jun 8, 2025):

Closing as workaround found

@denyskon commented on GitHub (Jun 8, 2025): Closing as workaround found
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12161