Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If client supplies message size with no max size configured it is rejected. #77

Open
laeubi opened this issue Apr 14, 2015 · 0 comments

Comments

@laeubi
Copy link

laeubi commented Apr 14, 2015

With no message size set (default = 0) every message is rejected if message size is passed.

in MailCommand:
// Reject the message if the size supplied by the client
// is larger than what we advertised in EHLO answer.
if (size > sess.getServer().getMaxMessageSize())
{
sess.sendResponse("552 5.3.4 Message size exceeds fixed limit");
return;
}

there should be a check (like on the EhloCommand) that the MaxMessageSize is larger than 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant