What is Roundcube?
Roundcube is a webmail program. Webmail lets you read and send email in a web browser. Roundcube checks the size of each attachment. The size limit comes from the PHP settings of the server. PHP is the language Roundcube is written in.
Two PHP settings matter. They are upload_max_filesize and post_max_size. The first is the largest single file. The second is the largest total upload. Keep post_max_size equal to or bigger than the first one.
Steps
- Log in to the server as root with SSH. SSH is a safe way to type commands on a remote server.
- Back up the Roundcube settings file. The usual path on Plesk is shown below.
cp /usr/share/psa-roundcube/config/config.inc.php /root/config.inc.php.bak
This command makes a safe copy of the file in the root folder.
- Find the PHP settings used by Plesk webmail. Many servers use a file such as
/etc/php.inior a file inside/etc/php.d/. If you are not sure, run the command below.
php -i | grep "Loaded Configuration File"
This command prints which php.ini file is in use.
- Open that file in a text editor such as
nano. - Find the line
upload_max_filesizeand set a new value, for exampleupload_max_filesize = 25M. The M means megabytes. - Find
post_max_sizeand set it to the same value or a little higher, for examplepost_max_size = 30M. - Save the file and close the editor.
- Restart the web service so the change is used. On many Plesk servers this command works.
systemctl restart plesk-php*-fpm
This restarts the PHP service. Service names differ by PHP version, so ask Hostvento support if the name is not found.
- Open Roundcube, write a new email and try a file that is near the new limit.
Quick recap
- Roundcube uses the PHP limits
upload_max_filesizeandpost_max_size. - You need root access to change them.
- Back up the file first, edit it, then restart PHP.
- Test with a real attachment.