Explorar o código

Add Received line to comply with RFC 5321

Bernhard Froehlich %!s(int64=6) %!d(string=hai) anos
pai
achega
72fe85dea9
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      main.go

+ 2 - 0
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,