Explorar el Código

Add Received line to comply with RFC 5321

Bernhard Froehlich hace 6 años
padre
commit
72fe85dea9
Se han modificado 1 ficheros con 2 adiciones y 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,