Browse Source

Switch to use -f instead of -F for sendmail (#9961) (#9970)

Fix #9385

Co-authored-by: zeripath <[email protected]>
tags/v1.11.0
techknowlogick 8 months ago
committed by GitHub
parent
commit
043febdbc9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      services/mailer/mailer.go

+ 1
- 1
services/mailer/mailer.go View File

@@ -213,7 +213,7 @@ func (s *sendmailSender) Send(from string, to []string, msg io.WriterTo) error {
var closeError error
var waitError error

args := []string{"-F", from, "-i"}
args := []string{"-f", from, "-i"}
args = append(args, setting.MailService.SendmailArgs...)
args = append(args, to...)
log.Trace("Sending with: %s %v", setting.MailService.SendmailPath, args)


Loading…
Cancel
Save