Mention new roundcube parameter used to limit max message size.

This commit is contained in:
Zhang Huangbin 2019-03-20 21:59:31 +08:00
parent 6aeb8423e2
commit 00c5ff2bc0
2 changed files with 38 additions and 10 deletions

View File

@ -75,14 +75,12 @@ You can set the throttle with iRedAdmin-Pro, or with SQL command tool, for more
details, please check plugin source file, it's detailed with examples and
explanation: [Throttle plugin](https://bitbucket.org/zhb/iredapd/src/default/plugins/throttle.py).
## Change upload file size in Roundcube webmail
If you have Roundcube webmail, please change two more settings:
### Change PHP settings for uploading large attachment
## Change PHP settings to upload large file
You should change `memory_limit`, `upload_max_filesize` and `post_max_size` in
PHP config file `/etc/php.ini`.
Please also update PHP config file `php.ini` to allow uploading large file:
* on RHEL/CentOS: it's `/etc/php.ini`
* on Debian/Ubuntu, it's `/etc/php5/apache2/php.ini`.
@ -99,6 +97,23 @@ upload_max_filesize = 100M;
post_max_size = 100M;
```
## Roundcube webmail
Roundcube uses its own setting `max_message_size` to limit message size, please
add or update this parameter in its config file:
* on RHEL/CentOS, it's `/opt/www/roundcubemail/config/config.inc.php`.
Old iRedMail releases use `/var/www/roundcubemail/config/config.inc.php`.
* on Debian/Ubuntu, it's `/opt/www/roundcubemail/config/config.inc.php`.
Old iRedMail releases use `/usr/share/apache2/roundcubemail/config.inc.php`.
* on FreeBSD, it's `/usr/local/www/roundcubemail/config/config.inc.php`
* on OpenBSD, it's `/opt/www/roundcubemail/config/config.inc.php`.
Old iRedMail releases use `/var/www/roundcubemail/config.inc.php`.
```
$config['max_message_size'] = '100M';
```
### Change Roundcube webmail settings to allow large attachment
Change same settings in file `.htaccess` under roundcube root directory:

View File

@ -25,8 +25,8 @@
<li><a href="#change-mail-attachment-size">Change mail attachment size</a><ul>
<li><a href="#change-message-size-limit-in-postfix">Change message size limit in postfix</a></li>
<li><a href="#change-message-size-limit-in-iredapd">Change message size limit in iRedAPD</a></li>
<li><a href="#change-upload-file-size-in-roundcube-webmail">Change upload file size in Roundcube webmail</a><ul>
<li><a href="#change-php-settings-for-uploading-large-attachment">Change PHP settings for uploading large attachment</a></li>
<li><a href="#change-php-settings-to-upload-large-file">Change PHP settings to upload large file</a></li>
<li><a href="#roundcube-webmail">Roundcube webmail</a><ul>
<li><a href="#change-roundcube-webmail-settings-to-allow-large-attachment">Change Roundcube webmail settings to allow large attachment</a></li>
</ul>
</li>
@ -104,11 +104,9 @@ be rejected.</p>
<p>You can set the throttle with iRedAdmin-Pro, or with SQL command tool, for more
details, please check plugin source file, it's detailed with examples and
explanation: <a href="https://bitbucket.org/zhb/iredapd/src/default/plugins/throttle.py">Throttle plugin</a>.</p>
<h2 id="change-upload-file-size-in-roundcube-webmail">Change upload file size in Roundcube webmail</h2>
<p>If you have Roundcube webmail, please change two more settings:</p>
<h3 id="change-php-settings-for-uploading-large-attachment">Change PHP settings for uploading large attachment</h3>
<p>You should change <code>memory_limit</code>, <code>upload_max_filesize</code> and <code>post_max_size</code> in
PHP config file <code>/etc/php.ini</code>.</p>
<h2 id="change-php-settings-to-upload-large-file">Change PHP settings to upload large file</h2>
<p>Please also update PHP config file <code>php.ini</code> to allow uploading large file:</p>
<ul>
<li>on RHEL/CentOS: it's <code>/etc/php.ini</code></li>
<li>on Debian/Ubuntu, it's <code>/etc/php5/apache2/php.ini</code>.<ul>
@ -126,6 +124,21 @@ upload_max_filesize = 100M;
post_max_size = 100M;
</code></pre>
<h2 id="roundcube-webmail">Roundcube webmail</h2>
<p>Roundcube uses its own setting <code>max_message_size</code> to limit message size, please
add or update this parameter in its config file:</p>
<ul>
<li>on RHEL/CentOS, it's <code>/opt/www/roundcubemail/config/config.inc.php</code>.
Old iRedMail releases use <code>/var/www/roundcubemail/config/config.inc.php</code>.</li>
<li>on Debian/Ubuntu, it's <code>/opt/www/roundcubemail/config/config.inc.php</code>.
Old iRedMail releases use <code>/usr/share/apache2/roundcubemail/config.inc.php</code>.</li>
<li>on FreeBSD, it's <code>/usr/local/www/roundcubemail/config/config.inc.php</code></li>
<li>on OpenBSD, it's <code>/opt/www/roundcubemail/config/config.inc.php</code>.
Old iRedMail releases use <code>/var/www/roundcubemail/config.inc.php</code>.</li>
</ul>
<pre><code>$config['max_message_size'] = '100M';
</code></pre>
<h3 id="change-roundcube-webmail-settings-to-allow-large-attachment">Change Roundcube webmail settings to allow large attachment</h3>
<p>Change same settings in file <code>.htaccess</code> under roundcube root directory:</p>
<ul>