# Increase Roundcube Message Attachment Size Limit

**URL:** https://discuss.freedombox.org/t/increase-roundcube-message-attachment-size-limit/2977
**Category:** Tips and Tricks
**Created:** [March 9, 2024, 8:55am UTC](https://discuss.freedombox.org/t/increase-roundcube-message-attachment-size-limit/2977 "2024-03-09T08:55:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ged](https://discuss.freedombox.org/user_avatar/discuss.freedombox.org/ged/32/999_2.png) [@Ged](https://discuss.freedombox.org/u/Ged)
#### Post date: [March 9, 2024, 8:55am UTC](https://discuss.freedombox.org/t/increase-roundcube-message-attachment-size-limit/2977/1 "2024-03-09T08:55:59Z")

</div>

Roundcube is installed with a default maximum attachment size limit of 2M. If anyone is interested in increasing this limit, I wanted to share the steps I took below.

**FBX Version:**  
Debian GNU/Linux 12 (bookworm) and FreedomBox version 24.5

**STEP 1:** Edit php-fpm with `sudo nano /etc/php/8.2/fpm/php.ini`  
configure the following paramters to `100M`

```auto
post_max_size = 100M
upload_max_filesize = 100M

```

**STEP 2:** Restart `php-fpm` and `apache`

```auto
sudo systemctl restart php8.2-fpm
sudo systemctl restart apache2

```

That’s it. Now you should be able to upload attachments upto 75M.

_Note: Roundcube attachment size limit value seems to be additionally limited to 75% of `$config['max_message_size'] = '100M'` in `/etc/roundcube/defaults.inc.php`. I didn’t need or want to play around with this parameter as I’m not sure of the outcomes that may relate to overall FBX configuration. If anyone feels to increase the value to something higher, feel free to comment this post._

---

<div class="post-metadata">

### Author: ![jonny](https://discuss.freedombox.org/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@jonny](https://discuss.freedombox.org/u/jonny)
#### Post date: [September 7, 2025, 1:55am UTC](https://discuss.freedombox.org/t/increase-roundcube-message-attachment-size-limit/2977/2 "2025-09-07T01:55:21Z")

</div>

Thanks, that came quite handy and saved a lot of time.
