<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — [FAQ] How to move mails which marked as SPAM into Junk folder.]]></title>
		<link>http://www.iredmail.org/forum/topic365-faq-how-to-move-mails-which-marked-as-spam-into-junk-folder.html</link>
		<atom:link href="http://www.iredmail.org/forum/feed-rss-topic365.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in [FAQ] How to move mails which marked as SPAM into Junk folder..]]></description>
		<lastBuildDate>Fri, 23 Oct 2009 06:45:40 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[[FAQ] How to move mails which marked as SPAM into Junk folder.]]></title>
			<link>http://www.iredmail.org/forum/post1599.html#p1599</link>
			<description><![CDATA[<p>This tutorial is used to explain how to move mails which marked as SPAM into Junk folder in iRedMail. If they don&#039;t work for you, please post a new topic in <a href="http://www.iredmail.org/forum/forum2-iredmail-general-technical-support.html">iRedMail General Technical Support</a> forum.<br />=====================</p><p>iRedMail uses Amavisd-new + SpamAssassin to detect spams, and it also:<br /></p><ul><li><p>Add &#039;**** SPAM ****&#039; in mail subject by default</p></li><li><p>Add &#039;X-Spam-Status&#039; in mail HEAD.</p></li></ul><p>If you want to move spam mails into Junk folder, here are steps:<br /></p><ul><li><p>Make sure your domain name is listed in /etc/amavisd.conf (RHEL/CentOS) or /etc/amavis/conf.d/50-user (Debian/Ubuntu). e.g.</p></li></ul><div class="codebox"><pre><code>@local_domains_maps = [&#039;demo.iredmail.org&#039;, &#039;a.cn&#039;];</code></pre></div><ul><li><p>Find location of global sieve rule file in <strong>/etc/dovecot.conf</strong> (RHEL/CentOS) or <strong>/etc/dovecot/dovecot.conf</strong> (Debian/Ubuntu): <strong>sieve_global_path</strong>, default is <strong>/var/vmail/sieve/dovecot.sieve</strong>.</p></li></ul><div class="codebox"><pre><code>protocol lda {
    # ... SKIP OTHER SETTINGS HERE ...
    sieve_global_path = /var/vmail/sieve/dovecot.sieve
}</code></pre></div><ul><li><p>iRedMail copies a sample file in the same directory by default, filename is <strong>/var/vmail/sieve/dovecot.sieve.sample</strong>. Rename it to the correct filename. If you can&#039;t find the sample file, you can also download it <a href="http://iredmail.googlecode.com/hg/iRedMail/samples/dovecot.sieve">here</a>.</p></li><li><p>Restart dovecot service, and it should work for you now. If it doesn&#039;t work for you, please try to <a href="http://www.iredmail.org/forum/topic453-faq-how-to-debug-dovecot-and-sieve-rules.html">debug dovecot</a> and find the root case from log files.</p></li></ul>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Fri, 23 Oct 2009 06:45:40 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post1599.html#p1599</guid>
		</item>
	</channel>
</rss>
