How To Modify the Maximum Allowed Attachment Size in Postfix
erics, Posted April 22nd, 2015 at 7:36:49pm
By default, Postfix restricts attachment size to about 10MB (10240000 bytes).
You can check the current value by running the following command:
postconf | grep message_size_limit
To change the attachment size limit to say 50 MB, run a command like:
postconf -e message_size_limit=52428800
You may find that the maximum mailbox size is lower than the attachment limit, which will prevent Postfix from starting or reloading. To fix that, just set the mailbox size to be a little bigger than the maximum attachment size:
postconf -e mailbox_size_limit=53000000
The postconf -e
(edit) command updates the /etc/postfix/main.cf
file.
Leave Your Comment
All fields marked with "*" are required.