SMTP client should send SIZE parameter in MAIL FROM command
Version: latest git (ca84361e4b0d6b0f45a9a874d376cb598bc6803d)
Problem: SMTP client always sends SIZE (rfc1870) parameter in MAIL FROM command. If server does not support this param, it can say: "504 Command parameter not implemented" and reject the message (or send 555 – rfc1869).
Solution: So we should send SIZE param only if server advertises its support by "250-SIZE" in response to EHLO. This is done by attached patch.
Thanks for the report and the patch.
First, an EHLO gets a 230 by the ftpserver.pl test server, which seems like a flaw. It should be 250. Right?
Your patch makes test 1406 break since it assumes a SIZE but the test server doesn't signal support for it the way you've just added detection for. Can you check and see if you can make 1406 work, and possibly add a test that runs without SIZE?
Yes, the respons should be 250 as defined in RFC 5321 (and also common mail servers like Postfix and Sendmail send 250 code).
I will check the test tomorrow...
I just pushed a fix to ftpserver.pl that now makes test 1406 run fine even with your patch applied!
Ok, I also added a test 1411 that now verifies the action without advertised SIZE support in the server and it works fine. I've pushed your patch and my changes as well now. Case closed. Thanks again!
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.