Mention throttle setting impacts attachment size limit.

This commit is contained in:
Zhang Huangbin 2018-09-06 18:39:28 +08:00
parent 178497fc5d
commit b943c07d0c
4 changed files with 48 additions and 7 deletions

View File

@ -56,14 +56,33 @@ __NOTES__:
If you use mail clients such as Outlook, thunderbird to send mails, it's now
ok to sent large attachment with above setting.
## Change message size limit in iRedAPD
> * iRedAPD is a Postfix policy server developed and maintained by iRedMail team.
> * With default iRedMail setting, no message size limit is set.
> * For more details, please check tutorial: [Manage iRedAPD](./manage.iredapd.html).
With plugin `throttle` enabled in iRedAPD config file (`/opt/iredapd/settings.py`),
iRedAPD will query throttle settings from SQL database (SQL table `iredapd.throttle`),
if there's a global, per-domain or per-user message size limit set for sender
or recipient, it will performs the check.
Both Postfix and iRedAPD check the size of single message, if the message size reaches
the limit of either Postfix setting or iRedAPD throttle setting, the email will
be rejected.
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 setting to allow to upload large attachment
### Change PHP settings for uploading large attachment
You should change `memory_limit`, `upload_max_filesize` and `post_max_size` in
PHP config file `/etc/php.ini`
PHP config file `/etc/php.ini`.
* on RHEL/CentOS: it's `/etc/php.ini`
* on Debian/Ubuntu, it's `/etc/php5/apache2/php.ini`.

View File

@ -10,9 +10,11 @@
## Introduce iRedAPD
iRedAPD is a simple Postfix policy server, written in Python, with plugin
support. it listens on port `7777` by default, and runs as a low-privileged
support. It listens on `127.0.0.1:7777` by default, and runs as a low-privileged
user `iredapd`.
Source code is hosted on [BitBucket](https://bitbucket.org/zhb/iredapd/).
## How to disable iRedAPD service
To disable iRedAPD service:

View File

@ -24,8 +24,9 @@
<ul>
<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-setting-to-allow-to-upload-large-attachment">Change PHP setting to allow to upload large attachment</a></li>
<li><a href="#change-php-settings-for-uploading-large-attachment">Change PHP settings for uploading large attachment</a></li>
<li><a href="#change-roundcube-webmail-settings-to-allow-large-attachment">Change Roundcube webmail settings to allow large attachment</a></li>
</ul>
</li>
@ -85,11 +86,29 @@ attachment.</p>
</ul>
<p>If you use mail clients such as Outlook, thunderbird to send mails, it's now
ok to sent large attachment with above setting.</p>
<h2 id="change-message-size-limit-in-iredapd">Change message size limit in iRedAPD</h2>
<blockquote>
<ul>
<li>iRedAPD is a Postfix policy server developed and maintained by iRedMail team.</li>
<li>With default iRedMail setting, no message size limit is set.</li>
<li>For more details, please check tutorial: <a href="./manage.iredapd.html">Manage iRedAPD</a>.</li>
</ul>
</blockquote>
<p>With plugin <code>throttle</code> enabled in iRedAPD config file (<code>/opt/iredapd/settings.py</code>),
iRedAPD will query throttle settings from SQL database (SQL table <code>iredapd.throttle</code>),
if there's a global, per-domain or per-user message size limit set for sender
or recipient, it will performs the check.</p>
<p>Both Postfix and iRedAPD check the size of single message, if the message size reaches
the limit of either Postfix setting or iRedAPD throttle setting, the email will
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-setting-to-allow-to-upload-large-attachment">Change PHP setting to allow to upload large attachment</h3>
<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>
PHP config file <code>/etc/php.ini</code>.</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>

View File

@ -58,8 +58,9 @@ web-based admin panel - <a href="https://www.iredmail.org/admin_panel.html">iRed
</div>
<h2 id="introduce-iredapd">Introduce iRedAPD</h2>
<p>iRedAPD is a simple Postfix policy server, written in Python, with plugin
support. it listens on port <code>7777</code> by default, and runs as a low-privileged
support. It listens on <code>127.0.0.1:7777</code> by default, and runs as a low-privileged
user <code>iredapd</code>.</p>
<p>Source code is hosted on <a href="https://bitbucket.org/zhb/iredapd/">BitBucket</a>.</p>
<h2 id="how-to-disable-iredapd-service">How to disable iRedAPD service</h2>
<p>To disable iRedAPD service:</p>
<ol>