From bfb1c27528367701acb1158f1fa4298e31b4bf92 Mon Sep 17 00:00:00 2001 From: Son NK Date: Sat, 9 Nov 2019 22:03:13 +0100 Subject: [PATCH] try fixing spam issue: use personal email in forward phase --- email_handler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/email_handler.py b/email_handler.py index 341ef626..31c0e6e8 100644 --- a/email_handler.py +++ b/email_handler.py @@ -116,6 +116,8 @@ class MailHandler: msg.add_header("X-SimpleLogin-Type", "Forward") msg.add_header("Reply-To", forward_email.reply_email) + msg.replace_header("To", f"{alias} <{gen_email.user.email}>") + LOG.d( "Send mail from %s to %s, mail_options %s, rcpt_options %s ", envelope.mail_from,