mail-in-a-box / mailinabox

Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
https://mailinabox.email/
Creative Commons Zero v1.0 Universal
13.98k stars 1.44k forks source link

PHP is configured to support 1.2G uploads with nginx at 128M #1991

Open myfirstnameispaul opened 3 years ago

myfirstnameispaul commented 3 years ago

In the Roundcube interface users selecting 'Import' are presented this useful import interface:

roundcubeimport

The "Maximum allowed filesize is 16GB" is configured by nextcloud.sh: https://github.com/mail-in-a-box/mailinabox/blob/aaa81ec87979decb50a352bee30d93e3d748439d/setup/nextcloud.sh#L321-L323

But nginx.conf is configured to support 128M: https://github.com/mail-in-a-box/mailinabox/blob/34569d24a95a547100a185107d8722de9d29c9c2/conf/nginx-alldomains.conf#L39-L50

Is there a reason for nginx.conf under the /mail/.*\.php to have this limitation?

jvolkenant commented 3 years ago

Likely if you were syncing files via nextcloud you wouldn't be able to sync files larger than the sizes listed in the php.ini. It could be lowered, but there are other sane limits in other area's that prevent 16gb upload for real. (location block confs, postfix max send size, etc)

myfirstnameispaul commented 3 years ago

For Roundcube, that is the location block (/mail/) and the upload should be going through dovecot, shouldn't it?

jvolkenant commented 3 years ago

I think so, but I don't know that there is an attachment limit for dovecot, only for postfix sending, no?