Default config AND documentation for mail is wrong, resulting in Auth 535 incorrect authentication data
LordPraslea opened this issue · 0 comments
LordPraslea commented
Gogs version
0.13.0
Git version
- Server: 2.34.1
- Client: 2.34.1
Operating system
Linux
Database
SQLITE3
Describe the bug
After a fresh configuration/install of gogs the default settings in app.ini are set for mailer like following
[mailer]
ENABLED = true
HOST = smtp.server:587
FROM = "Gogs" <someuser@myemail.com>
USER = someuser@myemail.com
PASSWD = somepassword
This means that email seems "disabled" in admin config. The settings should have been put like:
[**email**]
ENABLED = true
HOST = smtp.server:587
FROM = "Gogs" <someuser@myemail.com>
USER = someuser@myemail.com
**PASSWORD** = somepassword
Following the hints from https://github.com/gogs/gogs/blob/main/conf/app.ini -> then gave authentication errors untill i figured out that PASSWD was wrong thanks to another bug which gave some extra hints to this issue #6542 (comment)
Is there something wrong with the .ini generator?
To reproduce
install & configure
Expected behavior
Correct setting of [email] to work out of the box.
Otherwise thanks for the great work.
Additional context
No response
Code of Conduct
- I agree to follow this project's Code of Conduct