-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notifications emails are not sent due to invalid From #3615
Comments
I guess the |
Ok I changed analisys, now I think the problem is with
The |
Confirmed, setting a |
It is the FROM field in mailer configuration that needs be used, not the USER field, which is for authentication. Closes gogs#3615
From my point of view, the SmtpWriter, need to have also the Username instead of using the field Username as UserEmail. After adding this information, the from String needs to be changed according to the new field in the structure. That way, according to the source, it will be |
You meant Anyway, this ticket was for issue notifications, which are fixed by PR #3616, if you can see a bug due to |
According to the comments, |
It is the FROM field in mailer configuration that needs be used, not the USER field, which is for authentication. Closes gogs#3615
It is the FROM field in mailer configuration that needs be used, not the USER field, which is for authentication. Closes gogs#3615
It is the FROM field in mailer configuration that needs be used, not the USER field, which is for authentication. Closes gogs#3615
Merge this thread to #3856. |
Include both a log entry and the blocked mime type in the gitea log when an attachment upload is blocked. Chosen log level is info; this may need to be dialed down to trace.
Noticing I was not receiving email notifications I checked the logs and found:
As the user
bjornharrtell
has a valid email registered (checked via web UI and on the database), I went looking at code and found this in modules/log/smtp.go:Note how
s.Username
is used for theFrom
field both in the mail header and in thesmtp.SendMail
3rd parameter.I suspect
smtp.SendMail
just refuses suchFrom
address (lacking an@
character) and fails to send anything.I believe things did work as of 0.9.68, while are failing as of 0.9.99
The text was updated successfully, but these errors were encountered: