cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3564114 ] SMTP: Superfluous SIZE parameter in MAIL FROM

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 04 Sep 2012 10:43:22 -0700

Bugs item #3564114, was opened at 2012-09-02 02:06
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3564114&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: bad behaviour
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: František Kučera (xkucf03)
Assigned to: Daniel Stenberg (bagder)
Summary: SMTP: Superfluous SIZE parameter in MAIL FROM

Initial Comment:
Problem:

SMTP client should send SIZE parameter in MAIL FROM command

Version: latest git (ca84361e4b0d6b0f45a9a874d376cb598bc6803d)

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2012-09-04 10:43

Message:
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!

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2012-09-04 07:57

Message:
I just pushed a fix to ftpserver.pl that now makes test 1406 run fine even
with your patch applied!

----------------------------------------------------------------------

Comment By: František Kučera (xkucf03)
Date: 2012-09-03 16:11

Message:
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...

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2012-09-02 08:08

Message:
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?

----------------------------------------------------------------------

Comment By: František Kučera (xkucf03)
Date: 2012-09-02 02:16

Message:
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.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3564114&group_id=976
Received on 2012-09-04

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET