[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Out of order responce from Smail3 when PIPELINING
> I am getting sessions of the kind as below. Order of responces from the
> remote seems inadequate. Can someone confirm that this is a bug in Smail?
Nope, it works exactly as specified.
(I have narrowed the transcripts somewhat)
> # (Connecting to `mail.glasnet.ru' [188.8.131.52] ...
> r 220-mail.glas.apc.org Smail-184.108.40.206 (#11 DST-Aug-25) ...
> r 220 ESMTP supported
> w EHLO deimos.sovam.com
> r 250-mail.glas.apc.org Hello deimos.sovam.com ...
> r 250-EXPN
> r 250-SIZE 3145728
> r 250-8BITMIME
> r 250-PIPELINING
> r 250 HELP
> w MAIL From:<firstname.lastname@example.org> BODY=8BITMIME SIZE=3200904
> w RCPT To:<email@example.com>
> w DATA
In PIPELINING the preceeding 3 lines are buffered (in stdio!)
before they are flushed into the SMTP socket.
The flush-point is here at sending DATA command.
A long latency connection will thus get MAIL/RCPT+/DATA
commands sent, and replies to them received in overlapping
fashion. It will start to study the incoming responses now.
> r 552 message too large
("MAIL FROM:<..> .. SIZE=3.2 MB")
In fact the smtp-ta should not send this message there at all,
as it can do the comparison too from the EHLO response.
A minor (?) omission to fix regarding SIZE processing.
> r 501 RCPT TO must be preceded by MAIL FROM command.
It was sent in pipeline, and because MAIL FROM reply was
processed delayed, so was this one.
> r 503 Need MAIL FROM command first.
> w RSET
/Matti Aarnio <firstname.lastname@example.org>