59 lines
3.1 KiB
HTML
59 lines
3.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>Move detected spam to Junk folder</title>
|
|
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
|
|
</head>
|
|
<body>
|
|
|
|
<div id="navigation">
|
|
<a href="/index.html" target="_blank">
|
|
<img alt="iRedMail web site"
|
|
src="./images/logo-iredmail.png"
|
|
style="vertical-align: middle; height: 30px;"
|
|
/>
|
|
<span>iRedMail</span>
|
|
</a>
|
|
// <a href="./index.html">Document Index</a></div><h1 id="move-detected-spam-to-junk-folder">Move detected spam to Junk folder</h1>
|
|
<p>To move detected spam to user's Junk folder, you need to enable global sieve
|
|
script in Dovecot.</p>
|
|
<p>You can find sample sieve rule file <code>/var/vmail/sieve/dovecot.sieve.sample</code>
|
|
if you chose <code>/var/vmail</code> to store mailboxes during iRedMail installation.
|
|
If you have a custom mailbox storage directory, the sample sieve rule file
|
|
should be <code>sieve/dovecot.sieve.sample</code> under that directory. If you cannot
|
|
find it, you can still download one from iRedMail project:
|
|
<a href="https://bitbucket.org/zhb/iredmail/src/default/iRedMail/samples/dovecot/dovecot.sieve">here</a></p>
|
|
<p>This file must be owned by user <code>vmail</code> and group <code>vmail</code>, permission <code>0500</code>.</p>
|
|
<p>Now open Dovecot config file <code>/etc/dovecot/dovecot.conf</code> (on Linux/OpenBSD)
|
|
or <code>/usr/local/etc/dovecot/dovecot.conf</code> (FreeBSD), find parameter <code>sieve_before =</code>
|
|
like below:</p>
|
|
<pre><code># Part of file: /etc/dovecot/dovecot.conf
|
|
|
|
plugin {
|
|
...
|
|
#sieve_before =
|
|
...
|
|
}
|
|
</code></pre>
|
|
|
|
<p>Uncomment it and set its value to <code>/var/vmail/sieve/dovecot.sieve</code> (Note:
|
|
use the correct path on your server).</p>
|
|
<pre><code> sieve_before = /var/vmail/sieve/dovecot.sieve
|
|
</code></pre>
|
|
|
|
<p>Restart Dovecot service to enable it.</p>
|
|
<p>Note: we don't use <code>sieve_default =</code> for global sieve script, because it
|
|
will be ignored if users have their own personal sieve rule files.</p><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="http://www.iredmail.org/contact.html">contact us</a> to fix it.</p>
|
|
</div>
|
|
<script type="text/javascript">
|
|
(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),
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
|
|
ga('create', 'UA-3293801-21', 'auto');
|
|
ga('send', 'pageview');
|
|
</script>
|
|
</body></html> |