This commit is contained in:
Zhang Huangbin 2021-07-23 16:53:27 +08:00
parent 4936cb1b22
commit ac10f09553
2 changed files with 11 additions and 0 deletions

View File

@ -21,6 +21,11 @@ iRedMail-1.4.1 ships 4 builtin Amavisd ban rules, they're defined in
);
```
- `ALLOW_MS_OFFICE`: Allow all Microsoft Office documents.
- `ALLOW_MS_WORD`: Allow Microsoft Word documents (`.doc`, `.docx`).
- `ALLOW_MS_EXCEL`: Allow Microsoft Excel documents (`.xls`, `.xlsx`).
- `ALLOW_MS_PPT`: Allow Microsoft PowerPoint documents (`.ppt`, `.pptx`).
## Add new ban rules
You're free to add new ban rules inside `%banned_rules = ();` parameter.

View File

@ -47,6 +47,12 @@
);
</code></pre>
<ul>
<li><code>ALLOW_MS_OFFICE</code>: Allow all Microsoft Office documents.</li>
<li><code>ALLOW_MS_WORD</code>: Allow Microsoft Word documents (<code>.doc</code>, <code>.docx</code>).</li>
<li><code>ALLOW_MS_EXCEL</code>: Allow Microsoft Excel documents (<code>.xls</code>, <code>.xlsx</code>).</li>
<li><code>ALLOW_MS_PPT</code>: Allow Microsoft PowerPoint documents (<code>.ppt</code>, <code>.pptx</code>).</li>
</ul>
<h2 id="add-new-ban-rules">Add new ban rules</h2>
<p>You're free to add new ban rules inside <code>%banned_rules = ();</code> parameter.
For example, let's add new rule <code>BLOCK_COMPRESS</code> to block few compress file