The bill that arrived before the answer
Picture a mail relay in the early 1990s, grinding through a fat multimedia message one octet at a time, only to hear the far end say: too big, didn't keep it. The bytes had already crossed the wire. The disk had filled and emptied. And nobody had asked the obvious question first.
That small, unglamorous problem is what the SMTP SIZE extension solved — and it solved it with unusual restraint. RFC 1870, finalized in 1995, did not promise delivery. It did something narrower and far more useful: it let two relays compare a declared load against local capacity before paying the full cost of the transfer.
The short version
- Original SMTP could reveal a size or storage failure only after the sender had transmitted the entire DATA object — and the receiver had thrown it away.
- RFC 1870 let a server advertise a fixed maximum at EHLO and a client declare an estimated octet count on MAIL FROM. A permanent policy wall returned 552; temporary scarcity returned 452.
- The number was deliberately weak evidence: it did not end DATA, reserve every later byte, authenticate anything, or turn a friendly 250 into a delivery guarantee.
SMTP saved the bad news for last
RFC 821 made mail transfer a fixed sequence. The sender opened with MAIL, named one or more recipients with RCPT, then asked for DATA. After a 354 reply it transmitted the message and its terminating line. Only then did the receiver issue the decisive verdict on the completed object.
That order kept the transaction clean, but it parked some of the most useful knowledge at the very end of the queue. A server might know it never accepted objects beyond a fixed size. It might simply run short of space while buffering one particular message. Under plain SMTP, the client learned either fact only after shipping every octet — and then watched the server discard the object. A relay, or a user, had paid for a transfer with no possible happy ending.
As multimedia mail grew, that waste stopped being an edge case. The question was never how to hand a remote sender the keys to a server's disk. It was how to disclose just enough local evidence for both sides to skip obviously futile work.
Two numbers, two owners
The extension appeared first in RFC 1427 in 1993, was revised by RFC 1653, and reached its 1995 Standards Track form in RFC 1870. Its economy lies in using two different declarations, each owned by a different party.
A receiver that supports the extension lists SIZE in its EHLO response. It may append a decimal number describing the largest message it is ever willing to accept — a fixed ceiling chosen by implementation or administration. A zero parameter means no fixed maximum is in force. A bare SIZE with no number reveals support but says nothing about a fixed maximum. Silence about a limit is uncertainty, not infinity.
The sender may then add a SIZE parameter to MAIL FROM. That second number is not the server's rule; it is the client's estimate of the particular message it intends to transmit. Ideally the estimate equals reality. When exact calculation is impractical, RFC 1870 permits a heuristic and recommends biasing it high. The shared value works precisely because each side keeps ownership of a different fact.
What, exactly, were we counting?
Interoperation demanded agreement on what the estimate measured. RFC 1870 defines message size as the octets sent after the 354 reply: header, body, and the CR-LF pairs between lines. It excludes the period-only DATA terminator and the extra periods inserted solely for SMTP dot transparency.
That boundary matters historically. The neighbouring SMTP framing problem asks where the content ends. SIZE does not answer it. The receiver must never use the declared number to terminate DATA. A mistaken estimate can affect acceptance, but it cannot shove the parser into treating content as commands. The old DATA terminator keeps authority over framing.
The design made a claim measurable without making it structural. Operators could compare declared and observed size. Implementations could tolerate an underestimate or refuse it. Neither side had to pretend an estimate was an exact, byte-counted transport envelope.
552 is a wall. 452 is a puddle.
Once a server sees the extended MAIL command, it can decide early. If the declaration exceeds its fixed maximum, it returns 552: retrying the same message later against the same policy will not help. If the server currently lacks resources but might accept the message later, it returns 452: the client should reset or quit and requeue the attempt.
The distinction encodes more than error vocabulary — it allocates future work. A permanent refusal should travel back toward the sender instead of burning repeated relay attempts. A temporary refusal leaves time as a legitimate recovery path. Confuse the two and you either create useless retries or destroy a delivery that might have succeeded.
Size can also be recipient-specific. A server may accept the transaction for one RCPT and return 452 or 552 for another based on the declared message size. One transmitted object can therefore meet different local mailbox or channel policies. The shared estimate does not flatten recipient autonomy.
Why a 250 was never a promise
RFC 1870 carefully refuses to make 250 at MAIL an absolute guarantee. Storage may change. A later command may fail. The actual DATA object may exceed the declaration. Relay and final delivery remain beyond the early decision.
A server may accept an object larger than declared, but need not. If it agreed to the declared size, it should not fire a post-DATA 552 merely because of its normal fixed limit — unless the actual message exceeded the declaration. That creates useful reliance without inventing a universal reservation. A parameterless SIZE advertisement carries a stronger local rule: before positively accepting a declared MAIL command, the server must check it has sufficient resources and should reserve storage if possible.
This restraint is the mechanism's quiet achievement. The extension moved one verdict earlier while leaving every later verdict visible. It cut wasted bytes without collapsing capacity, policy, framing, storage, and delivery into a single response code.
A thin contract for very unequal machines
RFC 5321 later required servers to accept at least 64K octets and advised systems that must impose restrictions to implement SIZE. It never established a global acceptable attachment size. Mail crosses relays with different disks, queues, recipients, and policies; the useful common rule was a way to express one boundary at the point that owned it.
An older SMTP peer could carry on without the extension and receive late failures. A supporting client could use only the advertised ceiling without declaring its own estimate. A fuller implementation could expose temporary capacity and per-recipient limits at MAIL or RCPT. Adoption could deepen locally rather than demanding a network-wide cutover.
That flexibility also preserves accountability. The sender owns the estimate. The receiving server owns its advertised ceiling and current resources. Each recipient path owns its acceptance. The protocol owns only the syntax and the difference between retryable and final refusal.
The lesson: make the cost visible before movement
SMTP SIZE endured because it did not promise too much. It made the cost visible before the transfer, then left delivery to the systems that actually had to perform it. In a protocol culture forever tempted to over-guarantee, that restraint is the whole point — and the reason a thirty-year-old extension still earns its keep.
Sources and limits
The original transaction and late DATA response come from RFC 821. The extension lineage is RFC 1427, RFC 1653, and RFC 1870. RFC 1870 supplies the present counting rule, EHLO ceiling, MAIL estimate, 452/552 distinction, per-recipient handling, and the warning that early success is not a guarantee. RFC 5321 records the later baseline and recommendation.
These specifications do not measure current deployment or document any provider's limit. They do not prove that an advertised ceiling equals available mailbox quota, that a 250 response reserves every downstream resource, or that SIZE validates the message. They support a narrower history: a declared measurement let independently operated relays avoid some doomed transfers while keeping final authority local and revisable.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






