cosullivan / SmtpServer

A SMTP Server component written in C#
MIT License
676 stars 160 forks source link

[Feature Request] Add Received Header? #136

Closed shieldsjared closed 4 years ago

shieldsjared commented 4 years ago

Any chance the received header can be generated and applied? Looking through the code now to see if I can figure out where best to do this (I realize I could do this on my end, but seems like something that perhaps should be added to the server itself? Thoughts? Thanks for your work!

shieldsjared commented 4 years ago

So I'm working on just adding this myself, during SaveAsync; however, I don't seem to have an easy way to get ahold of the domainOrAddress provided during HELO to include in the Received header value. Looks like the spec says that it should match whatever the client identified itself as... Thoughts?

If you agree, perhaps we can adjust the HeloCommand to add the value into the session's properties?

shieldsjared commented 4 years ago

Yeah, i just needed to spend more time looking at the code. Going to just use a OnCommandExecuting, duh! Thanks again for the amazing library!

shieldsjared commented 4 years ago

Related to #132