MaxMessageSize

Maximum incoming ESMTP message size V8.7 and later

The SIZE keyword to the MAIL From: command states how big an incoming message is in bytes.[396] If the SIZE keyword is not specified, sendmail makes no assumptions about the incoming message’s size. V8 sendmail can reject a message at this point if it is larger than a definable maximum message size:

Message size exceeds fixed maximum message size (max)

Here, max is the maximum acceptable size in bytes. Ordinarily, there is no maximum. If you want to define one, you can do so with the MaxMessageSize option:

O MaxMessageSize=maxsizeconfiguration file (V8.7 and later)
-OMaxMessageSize=maxsizecommand line (V8.7 and later)
define(`confMAX_MESSAGE_SIZE',maxsize)   ← mc configuration (V8.7 and later)
Obminblocks/maxsizeconfiguration file (deprecated)
-obminblocks/maxsizecommand line (deprecated)

If maxsize is omitted or if this entire option is omitted, the default is 0 (for unlimited message sizes). For the mc configuration the default is 0 (unlimited). Note that the old b option could also set the minimum blocks free (see MinFreeBlocks on page 1057).

This limit on message size is enforced during the SMTP dialog. Later, after a delivery agent has been selected, further limitations can be imposed by using the M= delivery agent equate (see M= on page 746).

The size of the message is also checked after the message is received (after receipt of the SMTP final DATA-dot) and will be rejected if it is too large at that time. ...

Get sendmail, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.