Use
the MAXMAILBYTES statement to specify the maximum size in bytes of
mail that is accepted over a TCP connection. Reply code of '552 Mail
file too large' is sent to the remote SMTP client if the number of
mail bytes arriving exceeds this value. This value is also used to
determine the space allocation requirements for the data sets which
hold the mail during processing (see Usage notes in this topic).
These data sets names are &mailfiledsprefix.*..NOTE and occupy
a minimum of 2 tracks per data set.
Syntax

.-MAXMAILBYTES 524288--.
>>-+----------------------+------------------------------------><
'-MAXMAILBYTES --bytes-'
Parameters
- bytes
- The maximum number of bytes for incoming or outgoing mail. Mail
arriving that is larger than this size, over a TCP connection, is
rejected. The limits for this statement are 1 - 2 147 483 647.
The default size is 524 288 (512KB) bytes.
Examples
Set the maximum size for mail
to 32KB:
MAXMAILBYTES 32768
Usage notes
- Note that the spool volume must be able to accommodate the number
of bytes set in MAXMAILBYTES.
- The value used for bytes in the MAXMAILBYTES
statement determines the space allocations for data sets allocated
to hold the mail while it is being processed and is waiting for delivery.
Be careful not to use too large a value, or the data sets allocated
are too large. This can vary with configuration of DF/SMS on your
system. However, in general, the allocation used for the NOTE data
sets is equivalent to specifying SPACE=(6233,(aaaaa,bbbb)), where
aaaa=round((MAXMAILBYTES/4000)+1) and bbbb=round(aaaa/2).