MAXMAILBYTES statement

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

Read syntax diagramSkip visual syntax diagram
   .-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

Related topics