buy
  • Home
  • /
  • Docs
  • /
  • How Tos
  • /
  • How to Increase Email Attachment Size Limit in Roundcube webmail
How to Increase Email Attachment Size Limit in Roundcube webmail

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.

Note:
If you increase the attachment size beyond 128 MB, it is mandatory to update both post_max_size and upload_max_filesize in the PHP configuration file (/usr/local/emps/etc/php.ini). Both values must be set the same; otherwise, larger attachments may fail to upload.

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
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list