Gitea does not send any emails #13469

Closed
opened 2025-11-02 10:43:18 -06:00 by GiteaMirror · 12 comments
Owner

Originally created by @kolaente on GitHub (Sep 7, 2024).

Description

Since I think 1.22.0, Gitea does not send any emails. No issue/pr/other notifications, not even password reset mails. However, the test mail I can dispatch from the admin interface arrives in my inbox without issues.
I did not find anything relevant in the logs.

Gitea Version

1.23.0+dev-467-ga5818470fe

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?

Official docker image.

Database

MySQL/MariaDB

Originally created by @kolaente on GitHub (Sep 7, 2024). ### Description Since I think 1.22.0, Gitea does not send any emails. No issue/pr/other notifications, not even password reset mails. However, the test mail I can dispatch from the admin interface arrives in my inbox without issues. I did not find anything relevant in the logs. ### Gitea Version 1.23.0+dev-467-ga5818470fe ### 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? Official docker image. ### Database MySQL/MariaDB
GiteaMirror added the type/bug label 2025-11-02 10:43:18 -06:00
Author
Owner

@kolaente commented on GitHub (Sep 7, 2024):

Maybe related to https://github.com/go-gitea/gitea/issues/19686, but then the test mail would not arrive

@kolaente commented on GitHub (Sep 7, 2024): Maybe related to https://github.com/go-gitea/gitea/issues/19686, but then the test mail would not arrive
Author
Owner

@lunny commented on GitHub (Sep 7, 2024):

Can you paste your email configurations without credential content.

@lunny commented on GitHub (Sep 7, 2024): Can you paste your email configurations without credential content.
Author
Owner

@kolaente commented on GitHub (Sep 7, 2024):

[mailer]
ENABLED = true
SMTP_PORT = 587
SMTP_ADDR = mail.kolaente.de
FROM = "Gitea" <git@kolaente.de>
USER = git@kolaente.de
PASSWD = REDACTED

@kolaente commented on GitHub (Sep 7, 2024): ``` [mailer] ENABLED = true SMTP_PORT = 587 SMTP_ADDR = mail.kolaente.de FROM = "Gitea" <git@kolaente.de> USER = git@kolaente.de PASSWD = REDACTED
Author
Owner

@lunny commented on GitHub (Sep 7, 2024):

PROTOCOL=smtp+starttls Maybe you can try to add this item.

@lunny commented on GitHub (Sep 7, 2024): `PROTOCOL=smtp+starttls` Maybe you can try to add this item.
Author
Owner

@kolaente commented on GitHub (Sep 8, 2024):

Looks like that did not fix it. The test mail from the admin interface works, but for example a password reset does not.

@kolaente commented on GitHub (Sep 8, 2024): Looks like that did not fix it. The test mail from the admin interface works, but for example a password reset does not.
Author
Owner

@techknowlogick commented on GitHub (Sep 8, 2024):

Could you check your admin interface to see how many workers the mail queue has? As the test might bypass the queue

@techknowlogick commented on GitHub (Sep 8, 2024): Could you check your admin interface to see how many workers the mail queue has? As the test might bypass the queue
Author
Owner

@kolaente commented on GitHub (Sep 8, 2024):

The mail queue has 0 workers. Shouldn't they grow based on demand?

@kolaente commented on GitHub (Sep 8, 2024): The mail queue has 0 workers. Shouldn't they grow based on demand?
Author
Owner

@TitaniumHocker commented on GitHub (Sep 10, 2024):

Has the same issue, but test email also fails with error: Failed to send a testing email to "*******": gomail: could not send email 1: failed to issue MAIL command: 502 5.3.3 Command not implemented.

Here is my config:

[mailer]
ENABLED = true
FROM = ***
PROTOCOL = smtp+starttls
SMTP_ADDR = ***
SMTP_PORT = 587
USER = ***
PASSWD = ***
@TitaniumHocker commented on GitHub (Sep 10, 2024): Has the same issue, but test email also fails with error: `Failed to send a testing email to "*******": gomail: could not send email 1: failed to issue MAIL command: 502 5.3.3 Command not implemented`. Here is my config: ```ini [mailer] ENABLED = true FROM = *** PROTOCOL = smtp+starttls SMTP_ADDR = *** SMTP_PORT = 587 USER = *** PASSWD = *** ```
Author
Owner

@kolaente commented on GitHub (Sep 20, 2024):

I've tried increasing the worker limit, but still no workers are created. Meanwhile there are 2k tasks in the queue.

How can I fix this?

@kolaente commented on GitHub (Sep 20, 2024): I've tried increasing the worker limit, but still no workers are created. Meanwhile there are 2k tasks in the queue. How can I fix this?
Author
Owner

@wxiaoguang commented on GitHub (Sep 20, 2024):

-> Help to recover from corrupted levelqueue #24912

Remove items (clear the queue) on the admin panel web UI

@wxiaoguang commented on GitHub (Sep 20, 2024): -> Help to recover from corrupted levelqueue #24912 Remove items (clear the queue) on the admin panel web UI
Author
Owner

@kolaente commented on GitHub (Sep 20, 2024):

Updated to latest nightly and cleared the queue, that seems to have fixed it. Thanks!

@kolaente commented on GitHub (Sep 20, 2024): Updated to latest nightly and cleared the queue, that seems to have fixed it. Thanks!
Author
Owner

@wxiaoguang commented on GitHub (Sep 20, 2024):

Well, I used to be a "queue expert" 🤣

@wxiaoguang commented on GitHub (Sep 20, 2024): Well, I used to be a "queue expert" 🤣
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13469