From 043febdbc9d4b55b4b9bbd846ef1d04c9d03f1a3 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Fri, 24 Jan 2020 20:45:53 -0500 Subject: [PATCH] Switch to use -f instead of -F for sendmail (#9961) (#9970) Fix #9385 Co-authored-by: zeripath --- services/mailer/mailer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/mailer/mailer.go b/services/mailer/mailer.go index 2e4aa8d71b1c..0eb4a38e5939 100644 --- a/services/mailer/mailer.go +++ b/services/mailer/mailer.go @@ -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)