Skip to content
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

sendmail: correct option to set envelope-sender #3044

Merged

Conversation

stesachse
Copy link

mailer doesn't set the correct options while calling sendmail. if
mailer.FROM is set to "Gitea Webservice" <user@example.com>
sendmail is called like this

Sending with: sendmail [-F user@example.com -i alice@example.com]

and doesn't set the envelope-sender. the option -F string set the
sender full name and is used only with messages that has no From
message header.

set the envelope sender address with -f sender (lowercase f)
works for me (fedora 27, x86_64, postfix-3.2.4, go1.9.1, gitea-1.3.0)

mailer doesn't set the correct options while calling sendmail. if
``mailer.FROM`` is set to ``"Gitea Webservice" <user@example.com>``
sendmail is called like this

```
Sending with: sendmail [-F user@example.com -i alice@example.com]
```

and doesn't set the envelope-sender. the option ``-F string`` set the
sender full name and is used only with messages that has no ``From``
message header.

set the envelope sender address with ``-f sender`` (lowercase ``f``)
works for me (fedora 27, x86_64, postfix-3.2.4, go1.9.1, gitea-1.3.0)
@lafriks lafriks added this to the 1.4.0 milestone Dec 1, 2017
@ethantkoenig
Copy link
Member

LGTM

Reference: https://linux.die.net/man/8/sendmail.sendmail

@tboerger tboerger added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Dec 2, 2017
@appleboy
Copy link
Member

appleboy commented Dec 2, 2017

LGTM

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Dec 2, 2017
@lunny lunny merged commit ce4a52c into go-gitea:release/v1.3 Dec 2, 2017
@stesachse stesachse deleted the fix-sendmail-envelope-sender branch March 30, 2018 03:39
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants