MaxMessageSize is only taken into account for MAIL FROM. However, it is not taken into account in the rest of the process. This means that larger mails are also accepted if they do not pass any information in the MAIL FROM. We should add this to the documentation or add a check after the DATA command. Otherwise the setting is misleading.
It would also be good to document in which value specification the value is defined. In this case as bytes.
Specifies the maximum size of a message in bytes.
|
/// Gets the maximum size of a message. |
MaxMessageSize is only taken into account for
MAIL FROM. However, it is not taken into account in the rest of the process. This means that larger mails are also accepted if they do not pass any information in theMAIL FROM. We should add this to the documentation or add a check after theDATAcommand. Otherwise the setting is misleading.It would also be good to document in which value specification the value is defined. In this case as bytes.
SmtpServer/Src/SmtpServer/ISmtpServerOptions.cs
Line 9 in 9d253c4