<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — [FAQ] How to move mails which marked as SPAM into Junk folder.]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic365.xml" />
	<updated>2009-10-23T06:45:40Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic365-faq-how-to-move-mails-which-marked-as-spam-into-junk-folder.html</id>
		<entry>
			<title type="html"><![CDATA[[FAQ] How to move mails which marked as SPAM into Junk folder.]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1599.html#p1599" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-10-23T06:45:40Z</updated>
			<id>http://www.iredmail.org/forum/post1599.html#p1599</id>
		</entry>
</feed>
