From 72fe85dea93c3aedabeef79ba16c4556e24a15d9 Mon Sep 17 00:00:00 2001 From: Bernhard Froehlich Date: Fri, 14 Dec 2018 11:26:48 +0000 Subject: [PATCH] Add Received line to comply with RFC 5321 --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index e96eaef..b81b10c 100644 --- a/main.go +++ b/main.go @@ -34,6 +34,8 @@ func handler(peer smtpd.Peer, env smtpd.Envelope) error { auth = smtp.PlainAuth("", *remoteUser, *remotePass, host) } + env.AddReceivedLine(peer) + return smtp.SendMail( *remoteHost, auth,