Overview
This guide explains how to increase the email attachment size limit in Roundcube webmail. By default, the size is limited, but you can increase it by updating a few settings in the configuration and PHP files so that larger files can be sent easily.
The actual attachment size may be slightly less than the set limit due to email encoding (for example, if you set 200 MB, you may be able to send around 150 MB files).
Procedure
Please follow the steps below to increase the email attachment size limit in Roundcube by modifying its configuration file.
1. Step: Edit the Roundcube configuration file:
/var/webuzo-data/roundcube/config/config.inc.php
Add the following line at the end of the $config section:
$config['max_message_size'] = <desired_size_in_bytes>;
Example:
If you want to set the attachment size to 200 MB, use:
$config['max_message_size'] = 200 * 1024 * 1024;
2. Step: update the following values in the php.ini file:
By default, Webuzo limits the upload size to 128 MB. If you want to increase it beyond 128 MB, you also need to update the PHP configuration file:
/usr/local/emps/etc/php.ini
upload_max_filesize = <desired_size>
post_max_size = <desired_size>
Example:
For 200 MB, set:
upload_max_filesize = 200M
post_max_size = 200M
3. Step: Restart the Webuzo service
Once you have changed both values, restart the Webuzo service using the command below.
service webuzo restart