소스 검색

Add Received line to comply with RFC 5321

Bernhard Froehlich 6 년 전
부모
커밋
72fe85dea9
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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,