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

Commits on Dec 1, 2017

  1. sendmail: correct option to set envelope-sender

    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)
    stesachse committed Dec 1, 2017
    Configuration menu
    Copy the full SHA
    244fb3a View commit details
    Browse the repository at this point in the history