-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
sendmail does not work / doesn't use FROM parameter #9385
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
Comments
Looking at the code it certainly appears to set it. gitea/modules/setting/mailer.go Line 74 in 590d56d
gitea/modules/setting/mailer.go Lines 88 to 97 in 590d56d
And use it: gitea/services/mailer/mailer.go Line 67 in 590d56d
Line 246 in 08ae6bb
Used here: gitea/services/mailer/mailer.go Line 39 in 590d56d
Leading to: gitea/services/mailer/mailer.go Line 216 in 590d56d
Try setting the MAILER_TYPE=dummy just to ensure that the from address is being parsed correctly. If that is correct then we need to think a bit more about where it could be going wrong. |
@zeripath using "dummy" as MAILER_TYPE results in the expected result:
I have narrowed the error down to the parameter -F. |
Fix #9385 Co-authored-by: zeripath <[email protected]>
[x]
):Description
I tried to setup email notifications with postfix sendmail using the following config:
[mydomain] is replaced with a valid domain.
But when I send a test mail postfix logs this:
and I don't receive an email. I can see that my configured
FROM = My Gitea <noreply@gitea.[mydomain].io>
is not beeing used and therefore the email gets rejected by gmail.The sendmail works fine for my nextcloud setup
The text was updated successfully, but these errors were encountered: