# \[SOLVED\] Adjusting E-Mail Message Size

**URL:** https://discuss.freedombox.org/t/solved-adjusting-e-mail-message-size/2778
**Category:** Support
**Created:** [October 28, 2023, 7:48pm UTC](https://discuss.freedombox.org/t/solved-adjusting-e-mail-message-size/2778 "2023-10-28T19:48:54Z")
**Posts on this page:** 4
**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: [October 28, 2023, 7:48pm UTC](https://discuss.freedombox.org/t/solved-adjusting-e-mail-message-size/2778/1 "2023-10-28T19:48:54Z")

</div>

Hello.

If like me, you’ve set up FBX e-mail services (postfix, dovecot, rspamd), it might help to know that you can adjust your e-mail message size.

By default the default message size is 10 MB. Normally this is good but, once in a while you may need more. Here’s the command to adjust this limit to 50 MB.

```auto
sudo postconf -e message_size_limit=52428800 
sudo systemctl restart postfix

```

You can change the limit to your requirements (in bytes) with `message_size_limit`. If you define `0` it will be limitless. While you’re at it, it may also interest you to see other postfix settings in `/etc/postfix/main.cf`

Cheers.

Ged.

---

<div class="post-metadata">

### Author: ![Sunil](https://discuss.freedombox.org/user_avatar/discuss.freedombox.org/sunil/32/8_2.png) [@Sunil](https://discuss.freedombox.org/u/Sunil)
#### Post date: [November 1, 2023, 11:42pm UTC](https://discuss.freedombox.org/t/solved-adjusting-e-mail-message-size/2778/2 "2023-11-01T23:42:43Z")

</div>

Thank you. I created a merge request to set message size limit to 100MiB for everyone. [email: Increase the size of the message to 100MiB (!2432) · Merge requests · FreedomBox / FreedomBox · GitLab](https://salsa.debian.org/freedombox-team/freedombox/-/merge_requests/2432) . Perk of a self-hosted mail server.

---

<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: [December 20, 2023, 6:32am UTC](https://discuss.freedombox.org/t/solved-adjusting-e-mail-message-size/2778/3 "2023-12-20T06:32:17Z")

</div>

Although the message size limit has been increased and works well with my clients, the webmail client (roundcube) doesnt seem to allow attachments larger than 2M.  
I’ve tried configuring `php.ini` but cant get anywhere. Any ideas anyone?

Thanks.

---

<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:57am UTC](https://discuss.freedombox.org/t/solved-adjusting-e-mail-message-size/2778/4 "2024-03-09T08:57:51Z")

</div>

A solution to increasing the Roundcube attachment file limit can be found [here](https://discuss.freedombox.org/t/solved-increase-roundcube-message-attachment-size-limit/2977).
