This commit is contained in:
Zhang Huangbin 2018-10-02 00:38:00 +02:00
parent d42751c045
commit a143dc4493
2 changed files with 8 additions and 6 deletions

View File

@ -18,11 +18,11 @@ $clean_quarantine_to = 'clean-quarantine';
Restart Amavisd service.
* Append below content to Postfix config file `/etc/postfix/master.cf`, ask
Postfix to listen on one additional network port `10026` (you're free to use
Postfix to listen on one additional network port `10031` (you're free to use
another port):
```
127.0.0.1:10026 inet n - - - - smtpd
127.0.0.1:10031 inet n - - - - smtpd
-o content_filter=smtp-amavis:[127.0.0.1]:10030
-o recipient_bcc_maps=
-o sender_bcc_maps=
@ -55,7 +55,7 @@ service postfix restart
```
* To quarantine all emails sent from/to `user@domain.com`, set its per-user
transport to `smtp:[127.0.0.1]:10026`.
transport to `smtp:[127.0.0.1]:10031`.
Now all emails sent from/to `user@domain.com` will be quarantined into SQL
database (specified in Amavisd config file, parameter `@storage_sql_dsn`).
@ -69,3 +69,4 @@ Send an email to `user@domain.com` for testing:
## See also
* [Quarantining](./quarantining.html)
* [Per-domain or per-user transport (relay)](./per-account.transport.html)

View File

@ -36,10 +36,10 @@ $clean_quarantine_to = 'clean-quarantine';
<p>Restart Amavisd service.</p>
<ul>
<li>Append below content to Postfix config file <code>/etc/postfix/master.cf</code>, ask
Postfix to listen on one additional network port <code>10026</code> (you're free to use
Postfix to listen on one additional network port <code>10031</code> (you're free to use
another port):</li>
</ul>
<pre><code>127.0.0.1:10026 inet n - - - - smtpd
<pre><code>127.0.0.1:10031 inet n - - - - smtpd
-o content_filter=smtp-amavis:[127.0.0.1]:10030
-o recipient_bcc_maps=
-o sender_bcc_maps=
@ -73,7 +73,7 @@ $clean_quarantine_to = 'clean-quarantine';
<ul>
<li>To quarantine all emails sent from/to <code>user@domain.com</code>, set its per-user
transport to <code>smtp:[127.0.0.1]:10026</code>.</li>
transport to <code>smtp:[127.0.0.1]:10031</code>.</li>
</ul>
<p>Now all emails sent from/to <code>user@domain.com</code> will be quarantined into SQL
database (specified in Amavisd config file, parameter <code>@storage_sql_dsn</code>).</p>
@ -84,6 +84,7 @@ database (specified in Amavisd config file, parameter <code>@storage_sql_dsn</co
<h2 id="see-also">See also</h2>
<ul>
<li><a href="./quarantining.html">Quarantining</a></li>
<li><a href="./per-account.transport.html">Per-domain or per-user transport (relay)</a></li>
</ul><div class="footer">
<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="https://www.iredmail.org/contact.html">contact us</a> to fix it.</p>
</div>