浏览代码

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)
 		auth = smtp.PlainAuth("", *remoteUser, *remotePass, host)
 	}
 	}
 
 
+	env.AddReceivedLine(peer)
+
 	return smtp.SendMail(
 	return smtp.SendMail(
 		*remoteHost,
 		*remoteHost,
 		auth,
 		auth,