Change Default Maximum Message Size in Postifx for ISPConfig

Mindwatering Incorporated

Author: Tripp W Black

Created: 07/18/2012 at 03:33 PM

 

Category:
Linux
Mail

Issue:
Incoming mail messages larger than 10,240,000 bytes (10MB) are bounced. Cannot find any setting in ISPConfig or main.cf.
Error message returned to sender:
"552 Message size exceeds fixed limit ..."
"551 Message size exceeds maximum limit ..."

Solution:
ISPConfig does not read/set the setting for individual or system-wide mail. The default setting is: message_size_limit = 102480000.
It may or may not be in the Postfix main.cf configuration file.

To add it, you can edit the main.cf file and add/update the entry. Or you can use the postconf command.

Examples:
To see the default setting:
# postconf -d | grep message_size_limit
message_size_limit = 10240000

To see the current / in use setting:
# postconf -n | grep message_size_limit
message_size_limit = 10240000

To see the current / in use setting:
# postconf -e 'message_size_limit = 50120000'
# postfix stop
# postfix start
# postconf -d | grep message_size_limit
message_size_limit = 50120000

Note:
The message_size_limit is a system wide setting.


previous page

×