Sfoglia il codice sorgente

Add Received line to comply with RFC 5321

Bernhard Froehlich 6 anni fa
parent
commit
72fe85dea9
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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,