Control Web Panel

WebPanel => Information => Topic started by: aakrutitech on April 13, 2022, 08:34:37 AM

Title: Posfix Increase Attachment size
Post by: aakrutitech on April 13, 2022, 08:34:37 AM
This is how I changes postfix message size:

In file vi /usr/local/cwpsrv/var/services/roundcube/config/defaults.inc.php value was:
$config['max_message_size'] = '100M';

And in roundcube it will show 75 M as Attachment size

When I changed

$config['max_message_size'] = '500M';

It started showing 375 M as attachemnet size.
Title: Re: Posfix Increase Attachment size
Post by: iraqiboy90 on April 13, 2022, 09:54:09 PM
Not sure how, probably hard coded, but attachment size in Roundcube will always be 75% of what $config['max_message_size'] is. The rest of 25% is for the rest of the message, like the text.

Remember that there are other settings restricting bigger file sizes, like php.ini of the php that is controlling CWP and Roundcube, the htaccess file that's inside the roundcube folder, and the main.cf settings restricting the total message size.
Title: Re: Posfix Increase Attachment size
Post by: Painkiller88 on April 15, 2022, 04:13:11 PM
The Attachment size can be queried with this command:

postconf | grep message_size_limit