2
0
forked from drew/smtprelay

Add Received line to comply with RFC 5321

This commit is contained in:
Bernhard Froehlich
2018-12-14 11:26:48 +00:00
parent b55f5569b9
commit 72fe85dea9

View File

@@ -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,