Parcourir la source

Add Received line to comply with RFC 5321

Bernhard Froehlich il y a 6 ans
Parent
commit
72fe85dea9
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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,