delete "Received" header in reply phase

This commit is contained in:
Son NK 2020-03-30 22:05:51 +02:00
parent 9500cc6cee
commit bb12b35d2c
1 changed files with 2 additions and 0 deletions

View File

@ -607,6 +607,8 @@ def handle_reply(envelope, smtp: SMTP, msg: Message, rcpt_to: str) -> (bool, str
delete_header(msg, "DKIM-Signature")
delete_header(msg, "Received")
# make the email comes from alias
add_or_replace_header(msg, "From", alias.email)