Update change.mail.attachment.size.html with SOGo setting.
This commit is contained in:
parent
69c43d41bd
commit
06926a63b0
|
@ -90,3 +90,22 @@ http {
|
||||||
client_max_body_size 100m;
|
client_max_body_size 100m;
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Change upload file size in SOGo-3.x
|
||||||
|
|
||||||
|
SOGo-3.x introduces parameter `WOMaxUploadSize` to limit upload file size, you
|
||||||
|
can add it in SOGo config file `/etc/sogo/sogo.conf` with a proper attachment
|
||||||
|
size.
|
||||||
|
|
||||||
|
```
|
||||||
|
// set the maximum allowed size for content being sent to SOGo using a PUT or
|
||||||
|
// a POST call. This can also limit the file attachment size being uploaded
|
||||||
|
// to SOGo when composing a mail.
|
||||||
|
//
|
||||||
|
// - The value is in kilobyte.
|
||||||
|
// - By default, the value is 0, or disabled so no limit will be set.
|
||||||
|
WOMaxUploadSize = 102400;
|
||||||
|
```
|
||||||
|
|
||||||
|
Restarting SOGo service is required.
|
||||||
|
|
|
@ -28,7 +28,8 @@
|
||||||
<li><a href="#roundcube_1">修改 Roundcube 网页邮箱设置以允许上传大附件</a></li>
|
<li><a href="#roundcube_1">修改 Roundcube 网页邮箱设置以允许上传大附件</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#nginx">修改 Nginx 上传文件大小</a></li>
|
<li><a href="#nginx">限制 Nginx 上传文件大小</a></li>
|
||||||
|
<li><a href="#sogo">限制 SOGo 上传文件大小</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -87,14 +88,28 @@ php_value post_max_size 100M
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<p>重启 Apache 或 php-fpm 服务以使上述修改生效。</p>
|
<p>重启 Apache 或 php-fpm 服务以使上述修改生效。</p>
|
||||||
<h2 id="nginx">修改 Nginx 上传文件大小</h2>
|
<h2 id="nginx">限制 Nginx 上传文件大小</h2>
|
||||||
<p>在配置文件 <code>/etc/nginx/nginx.conf</code> 中找到参数 <code>client_max_body_size</code> ,按需要修改大小:</p>
|
<p>在配置文件 <code>/etc/nginx/nginx.conf</code> 中找到参数 <code>client_max_body_size</code> ,按需要修改大小:</p>
|
||||||
<p>```
|
<pre><code>http {
|
||||||
http {
|
|
||||||
...
|
...
|
||||||
client_max_body_size 100m;
|
client_max_body_size 100m;
|
||||||
...
|
...
|
||||||
}</p><p style="text-align: center; color: grey;">All documents are available in <a href="https://bitbucket.org/zhb/iredmail-docs/src">BitBucket repository</a>, and published under <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">Creative Commons</a> license. You can <a href="https://bitbucket.org/zhb/iredmail-docs/get/tip.tar.bz2">download the latest version</a> for offline reading. If you found something wrong, please do <a href="http://www.iredmail.org/contact.html">contact us</a> to fix it.<script>
|
}
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<h2 id="sogo">限制 SOGo 上传文件大小</h2>
|
||||||
|
<p>SOGo-3.x 引入新参数 <code>WOMaxUploadSize</code> 用于限制上传文件的大小,请将它添加到 SOGo
|
||||||
|
配置文件 <code>/etc/sogo/sogo.conf</code> 里并设置一个合适的附件大小。</p>
|
||||||
|
<pre><code>// set the maximum allowed size for content being sent to SOGo using a PUT or
|
||||||
|
// a POST call. This can also limit the file attachment size being uploaded
|
||||||
|
// to SOGo when composing a mail.
|
||||||
|
//
|
||||||
|
// - The value is in kilobyte.
|
||||||
|
// - By default, the value is 0, or disabled so no limit will be set.
|
||||||
|
WOMaxUploadSize = 102400;
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>修改后需要重启 SOGo 服务。</p><p style="text-align: center; color: grey;">All documents are available in <a href="https://bitbucket.org/zhb/iredmail-docs/src">BitBucket repository</a>, and published under <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">Creative Commons</a> license. You can <a href="https://bitbucket.org/zhb/iredmail-docs/get/tip.tar.bz2">download the latest version</a> for offline reading. If you found something wrong, please do <a href="http://www.iredmail.org/contact.html">contact us</a> to fix it.<script>
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#change-upload-file-size-in-nginx">Change upload file size in Nginx</a></li>
|
<li><a href="#change-upload-file-size-in-nginx">Change upload file size in Nginx</a></li>
|
||||||
|
<li><a href="#change-upload-file-size-in-sogo-3x">Change upload file size in SOGo-3.x</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -97,12 +98,27 @@ php_value post_max_size 100M
|
||||||
<h2 id="change-upload-file-size-in-nginx">Change upload file size in Nginx</h2>
|
<h2 id="change-upload-file-size-in-nginx">Change upload file size in Nginx</h2>
|
||||||
<p>Find setting <code>client_max_body_size</code> in Nginx config file
|
<p>Find setting <code>client_max_body_size</code> in Nginx config file
|
||||||
<code>/etc/nginx/nginx.conf</code>, change it to a proper value to match your need.</p>
|
<code>/etc/nginx/nginx.conf</code>, change it to a proper value to match your need.</p>
|
||||||
<p>```
|
<pre><code>http {
|
||||||
http {
|
|
||||||
...
|
...
|
||||||
client_max_body_size 100m;
|
client_max_body_size 100m;
|
||||||
...
|
...
|
||||||
}</p><p style="text-align: center; color: grey;">All documents are available in <a href="https://bitbucket.org/zhb/iredmail-docs/src">BitBucket repository</a>, and published under <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">Creative Commons</a> license. You can <a href="https://bitbucket.org/zhb/iredmail-docs/get/tip.tar.bz2">download the latest version</a> for offline reading. If you found something wrong, please do <a href="http://www.iredmail.org/contact.html">contact us</a> to fix it.<script>
|
}
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<h2 id="change-upload-file-size-in-sogo-3x">Change upload file size in SOGo-3.x</h2>
|
||||||
|
<p>SOGo-3.x introduces parameter <code>WOMaxUploadSize</code> to limit upload file size, you
|
||||||
|
can add it in SOGo config file <code>/etc/sogo/sogo.conf</code> with a proper attachment
|
||||||
|
size.</p>
|
||||||
|
<pre><code>// set the maximum allowed size for content being sent to SOGo using a PUT or
|
||||||
|
// a POST call. This can also limit the file attachment size being uploaded
|
||||||
|
// to SOGo when composing a mail.
|
||||||
|
//
|
||||||
|
// - The value is in kilobyte.
|
||||||
|
// - By default, the value is 0, or disabled so no limit will be set.
|
||||||
|
WOMaxUploadSize = 102400;
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>Restarting SOGo service is required.</p><p style="text-align: center; color: grey;">All documents are available in <a href="https://bitbucket.org/zhb/iredmail-docs/src">BitBucket repository</a>, and published under <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">Creative Commons</a> license. You can <a href="https://bitbucket.org/zhb/iredmail-docs/get/tip.tar.bz2">download the latest version</a> for offline reading. If you found something wrong, please do <a href="http://www.iredmail.org/contact.html">contact us</a> to fix it.<script>
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||||
|
|
|
@ -72,7 +72,7 @@ php_value post_max_size 100M
|
||||||
|
|
||||||
重启 Apache 或 php-fpm 服务以使上述修改生效。
|
重启 Apache 或 php-fpm 服务以使上述修改生效。
|
||||||
|
|
||||||
## 修改 Nginx 上传文件大小
|
## 限制 Nginx 上传文件大小
|
||||||
|
|
||||||
在配置文件 `/etc/nginx/nginx.conf` 中找到参数 `client_max_body_size` ,按需要修改大小:
|
在配置文件 `/etc/nginx/nginx.conf` 中找到参数 `client_max_body_size` ,按需要修改大小:
|
||||||
|
|
||||||
|
@ -82,3 +82,21 @@ http {
|
||||||
client_max_body_size 100m;
|
client_max_body_size 100m;
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## 限制 SOGo 上传文件大小
|
||||||
|
|
||||||
|
SOGo-3.x 引入新参数 `WOMaxUploadSize` 用于限制上传文件的大小,请将它添加到 SOGo
|
||||||
|
配置文件 `/etc/sogo/sogo.conf` 里并设置一个合适的附件大小。
|
||||||
|
|
||||||
|
```
|
||||||
|
// set the maximum allowed size for content being sent to SOGo using a PUT or
|
||||||
|
// a POST call. This can also limit the file attachment size being uploaded
|
||||||
|
// to SOGo when composing a mail.
|
||||||
|
//
|
||||||
|
// - The value is in kilobyte.
|
||||||
|
// - By default, the value is 0, or disabled so no limit will be set.
|
||||||
|
WOMaxUploadSize = 102400;
|
||||||
|
```
|
||||||
|
|
||||||
|
修改后需要重启 SOGo 服务。
|
||||||
|
|
Loading…
Reference in New Issue