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,