cosullivan / SmtpServer

A SMTP Server component written in C#
MIT License
675 stars 159 forks source link

Add Resilience Features #213

Open boba2fett opened 6 months ago

boba2fett commented 6 months ago

Adds option to enforce the message size limit in all commands. Adds option to set a timeout for all client responses.

Mainly, the DATA command should not read infinitely from the client.

The changes for MaxMessageSize should be backwards compatible. The changes for ResponseWaitTimeout could be considered breaking changes, but I don't think someone would like to wait more than 5 minutes for a client to send something.