Mailer not working #9789

Closed
opened 2025-11-02 08:49:41 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @mootfrost on GitHub (Nov 6, 2022).

Description

I have created my own mail on my domain and I want to set up a mailer in getea. My configuration:

[mailer]
ENABLED        = true
SMTP_ADDR      = smtp.yandex.ru
SMTP_PORT      = 465
FROM           = xxx@xxx.ru
USER           = xxx@xxx.ru
PASSWD         = xxx
PROTOCOL       = smtps
HELO_HOSTNAME  = xxx.ru

When trying to send a test email, error 504. I also tried an example from the documentation for gmail, it doesn’t work. What am I doing wrong?

Gitea Version

1.18.0+rc0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

2022/11/06 10:57:57 [63676807] router: slow POST /admin/config/test_mail for 79.139.191.112:0, elapsed 3082.2ms @ admin/config.go:31(admin.SendTestMail)

Screenshots

No response

Git Version

No response

Operating System

Ubuntu 20.04

How are you running Gitea?

Docker compose gitea/gitea:latest

Database

SQLite

Originally created by @mootfrost on GitHub (Nov 6, 2022). ### Description I have created my own mail on my domain and I want to set up a mailer in getea. My configuration: ``` [mailer] ENABLED = true SMTP_ADDR = smtp.yandex.ru SMTP_PORT = 465 FROM = xxx@xxx.ru USER = xxx@xxx.ru PASSWD = xxx PROTOCOL = smtps HELO_HOSTNAME = xxx.ru ``` When trying to send a test email, error 504. I also tried an example from the documentation for gmail, it doesn’t work. What am I doing wrong? ### Gitea Version 1.18.0+rc0 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist 2022/11/06 10:57:57 [63676807] router: slow POST /admin/config/test_mail for 79.139.191.112:0, elapsed 3082.2ms @ admin/config.go:31(admin.SendTestMail) ### Screenshots _No response_ ### Git Version _No response_ ### Operating System Ubuntu 20.04 ### How are you running Gitea? Docker compose gitea/gitea:latest ### Database SQLite
GiteaMirror added the issue/needs-feedback label 2025-11-02 08:49:41 -06:00
Author
Owner

@ghost commented on GitHub (Nov 6, 2022):

check your email app password, it should not be account main password

@ghost commented on GitHub (Nov 6, 2022): check your email [app password](https://yandex.com/support/mail/mail-clients/mozilla-thunderbird.html#app-pass), it should not be account main password
Author
Owner

@mootfrost commented on GitHub (Nov 6, 2022):

@xin-u, I made a password for the app, but still nothing happens:(

@mootfrost commented on GitHub (Nov 6, 2022): @xin-u, I made a password for the app, but still nothing happens:(
Author
Owner

@ghost commented on GitHub (Nov 6, 2022):

I sent a test email with my own smtp server, and it work fine. but yandex, I got error: 550 5.7.1 Policy rejection on the target address, I have no idea about it.

@ghost commented on GitHub (Nov 6, 2022): I sent a test email with my own smtp server, and it work fine. but yandex, I got error: ` 550 5.7.1 Policy rejection on the target address `, I have no idea about it.
Author
Owner

@mootfrost commented on GitHub (Nov 6, 2022):

Both Yandex and Google mail doesn't work, I'm beginning to suspect that I'm doing something wrong, but I don't know what

@mootfrost commented on GitHub (Nov 6, 2022): Both Yandex and Google mail doesn't work, I'm beginning to suspect that I'm doing something wrong, but I don't know what
Author
Owner

@ghost commented on GitHub (Nov 6, 2022):

some related #21488

maybe your configuaration is fine, but their policy block some usage. try another smtp server

@ghost commented on GitHub (Nov 6, 2022): some related #21488 maybe your configuaration is fine, but their policy block some usage. try another smtp server
Author
Owner

@mootfrost commented on GitHub (Dec 4, 2022):

@xin-u. LMFAO, there was a port simply blocked by host provider

@mootfrost commented on GitHub (Dec 4, 2022): @xin-u. LMFAO, there was a port simply blocked by host provider
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9789