mirror of
https://github.com/decke/smtprelay.git
synced 2025-12-26 09:02:29 -07:00
Add Received line to comply with RFC 5321
This commit is contained in:
2
main.go
2
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user