From 9ae58b62fd55f0ae550cb33e465cf96bf9fc3e33 Mon Sep 17 00:00:00 2001 From: Livio Spring Date: Mon, 17 Oct 2022 17:05:03 +0200 Subject: [PATCH] fix(email): set sender address as return-path header (#4569) --- internal/notification/messages/email.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/notification/messages/email.go b/internal/notification/messages/email.go index 3c220e7c76..b0483dc568 100644 --- a/internal/notification/messages/email.go +++ b/internal/notification/messages/email.go @@ -32,6 +32,7 @@ func (msg *Email) GetContent() string { from = fmt.Sprintf("%s <%s>", msg.SenderName, msg.SenderEmail) } headers["From"] = from + headers["Return-Path"] = msg.SenderEmail headers["To"] = strings.Join(msg.Recipients, ", ") headers["Cc"] = strings.Join(msg.CC, ", ")