<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Sieve on iRedMail 5 (CentOS)]]></title>
		<link>http://www.iredmail.org/forum/topic171-sieve-on-iredmail-5-centos.html</link>
		<atom:link href="http://www.iredmail.org/forum/feed-rss-topic171.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Sieve on iRedMail 5 (CentOS).]]></description>
		<lastBuildDate>Wed, 19 Aug 2009 15:58:43 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Sieve on iRedMail 5 (CentOS)]]></title>
			<link>http://www.iredmail.org/forum/post884.html#p884</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Find it out in /var/log/sieve.log.</p></blockquote></div><p>Hahaha.. I should have seen that coming:)&nbsp; However, again, here&#039;s what my sieve log says after creating t out of office filter, and sending from an email address this server has never seen before:<br /></p><div class="codebox"><pre><code>deliver(username@mydomain.com): Aug 19 10:45:44 Info: Loading modules from directory: /usr/lib/dovecot/modules/lda
deliver(username@mydomain.com): Aug 19 10:45:44 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib10_quota_plugin.so
deliver(username@mydomain.com): Aug 19 10:45:44 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so
deliver(username@mydomain.com): Aug 19 10:45:44 Info: auth input: home=/var/vmail/vmail01/mydomain.com/u/us/use/username-2009.08.17.08.51.13/
deliver(username@mydomain.com): Aug 19 10:45:44 Info: auth input: quota_rule=*:bytes=104857600
deliver(username@mydomain.com): Aug 19 10:45:44 Info: Quota root: name= backend=maildir args=
deliver(username@mydomain.com): Aug 19 10:45:44 Info: Quota rule: root= mailbox=* bytes=104857600 messages=0
deliver(username@mydomain.com): Aug 19 10:45:44 Info: Quota warning: bytes=89128960 (85%) messages=0 command=/usr/bin/dovecot-quota-warning.sh 85
deliver(username@mydomain.com): Aug 19 10:45:44 Info: Quota warning: bytes=94371840 (90%) messages=0 command=/usr/bin/dovecot-quota-warning.sh 90
deliver(username@mydomain.com): Aug 19 10:45:44 Info: Quota warning: bytes=99614720 (95%) messages=0 command=/usr/bin/dovecot-quota-warning.sh 95
deliver(username@mydomain.com): Aug 19 10:45:44 Info: maildir: data=//var/vmail/vmail01/mydomain.com/u/us/use/username-2009.08.17.08.51.13//Maildir/:INDEX=//var/vmail/vmail01/mydomain.com/u/us/use/username-2009.08.17.08.51.13//Maildir/
deliver(username@mydomain.com): Aug 19 10:45:44 Info: maildir++: root=//var/vmail/vmail01/mydomain.com/u/us/use/username-2009.08.17.08.51.13//Maildir, index=, control=, inbox=//var/vmail/vmail01/mydomain.com/u/us/use/username-2009.08.17.08.51.13//Maildir
deliver(username@mydomain.com): Aug 19 10:45:44 Info: cmusieve: Using sieve path: /var/vmail/sieve/mydomain.com/username/dovecot.sieve
deliver(username@mydomain.com): Aug 19 10:45:44 Info: cmusieve: Executing script /var/vmail/sieve/mydomain.com/username/dovecot.sievec
deliver(username@mydomain.com): Aug 19 10:45:44 Info: msgid=&lt;20090819154520.A984F20287E@storm.mydomain.com&gt;: saved mail to INBOX</code></pre></div><p>There&#039;s no mentioning of checking anywhere whether that email address is already listed or not...&nbsp; </p><p>I&#039;m really sorry to be a pain, but I want this to work so badly:)</p><p>Thanks,<br />Peter</p>]]></description>
			<author><![CDATA[null@example.com (Caliban)]]></author>
			<pubDate>Wed, 19 Aug 2009 15:58:43 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post884.html#p884</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sieve on iRedMail 5 (CentOS)]]></title>
			<link>http://www.iredmail.org/forum/post883.html#p883</link>
			<description><![CDATA[<div class="quotebox"><cite>Caliban wrote:</cite><blockquote><p>Where does it store who already received this response so it doesn&#039;t send it again within the set number of days?</p></blockquote></div><p>Find it out in /var/log/sieve.log.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 19 Aug 2009 15:17:58 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post883.html#p883</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sieve on iRedMail 5 (CentOS)]]></title>
			<link>http://www.iredmail.org/forum/post880.html#p880</link>
			<description><![CDATA[<p>Aha! Now we&#039;re getting somewhere!&nbsp; At first it was still not working, so I deleted the filters I had, and created a new one that just flags all messages it receives. That works like a charm!</p><p>However, saving emails to a different folder is still not working, and neither is the Out of Office responder (which is the main reason I would like to get this thing to work)&nbsp; Where does it store who already received this response so it doesn&#039;t send it again within the set number of days?&nbsp; Maybe the receiver is already flagged as such, and won&#039;t get the response again for who knows how long?</p><p>Thanks!<br />Peter</p>]]></description>
			<author><![CDATA[null@example.com (Caliban)]]></author>
			<pubDate>Wed, 19 Aug 2009 14:19:33 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post880.html#p880</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sieve on iRedMail 5 (CentOS)]]></title>
			<link>http://www.iredmail.org/forum/post879.html#p879</link>
			<description><![CDATA[<p>After read your process, i found the upgrade tutorial is incorrect: I missed &#039;protocol managesieve {}&#039;.<br />I updated it again, it should be correct now.</p><p>Please try it again:<br /><a href="http://code.google.com/p/iredmail/wiki/Upgrade_050_051">http://code.google.com/p/iredmail/wiki/Upgrade_050_051</a></p><p>Sorry</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 19 Aug 2009 14:06:15 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post879.html#p879</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sieve on iRedMail 5 (CentOS)]]></title>
			<link>http://www.iredmail.org/forum/post878.html#p878</link>
			<description><![CDATA[<p>Thank you for your continued support Zhang, it&#039;s much appreciated!</p><p>Here&#039;s what I did:<br /></p><ul><li><p>Enabled debug as you suggested</p></li><li><p>In roundcube I created a folder &quot;Gmail&quot;, and a filter to filter everything from &quot;gmail.com&quot; into this folder.</p></li><li><p>A &quot;dovecot.sieve&quot; link is created in my user folder (Folder where Maildir is) that points to &quot;/var/vmail/sieve/mydomain.com/username/roundcube.sieve&quot;</p></li><li><p>File looks like this:</p></li></ul><div class="codebox"><pre><code>require [&quot;fileinto&quot;];
# rule:[Gmail]
if anyof (address :contains &quot;Sender&quot; &quot;gmail.com&quot;)
{
fileinto &quot;Gmail&quot;;
}</code></pre></div><p>Then patched /etc/dovecot/dovecot.conf to include:</p><div class="codebox"><pre><code>plugin {
    sieve = /var/vmail/sieve/%Ld/%Ln/dovecot.sieve
}</code></pre></div><p>When I receive a message, this shows up in sieve.log:</p><div class="codebox"><pre><code>deliver(username@mydomain.com): Aug 19 08:20:11 Info: Loading modules from directory: /usr/lib/dovecot/modules/lda
deliver(username@mydomain.com): Aug 19 08:20:11 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib10_quota_plugin.so
deliver(username@mydomain.com): Aug 19 08:20:11 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so
deliver(username@mydomain.com): Aug 19 08:20:11 Info: auth input: home=/var/vmail/vmail01/mydomain.com/u/us/use/username-2009.08.17.08.51.13/
[...] (Cut some long lines dealing with quota)
deliver(username@mydomain.com): Aug 19 08:20:11 Info: maildir:data=//var/vmail/vmail01/mydomain.com/u/us/use/username-2009.08.17.08.51.13//Maildir/:INDEX=//var/vmail/vmail01/mydomain.com/u/us/use/username-2009.08.17.08.51.13//Maildir/
deliver(username@mydomain.com): Aug 19 08:20:11 Info: maildir++: root=//var/vmail/vmail01/mydomain.com/u/us/use/username-2009.08.17.08.51.13//Maildir, index=, control=, inbox=//var/vmail/vmail01/mydomain.com/u/us/use/username-2009.08.17.08.51.13//Maildir</code></pre></div><p>And then, as I expected, here&#039;s the kicker:<br /></p><div class="codebox"><pre><code>deliver(username@mydomain.com): Aug 19 08:20:11 Info: cmusieve: /var/vmail/sieve/mydomain.com/username/dovecot.sieve doesn&#039;t exist
deliver(username@mydomain.com): Aug 19 08:20:11 Info: cmusieve: Using sievepath: /var/vmail/sieve/dovecot.sieve
deliver(username@mydomain.com): Aug 19 08:20:11 Info: cmusieve: Script not found: /var/vmail/sieve/dovecot.sieve
deliver(username@mydomain.com): Aug 19 08:20:11 Info: msgid=&lt;20090819132003.68C8520206C@mail.mydomain.com&gt;: saved mail to INBOX</code></pre></div><p>So, I changed /etc/dovecot/dovecot.conf to look like this:</p><div class="codebox"><pre><code>plugin {
    #sieve = /var/vmail/sieve/%Ld/%Ln/dovecot.sieve
    sieve = %Lh/dovecot.sieve
}</code></pre></div><p>And sent the same email:<br /></p><div class="codebox"><pre><code>[...] (Skipped the first part since it&#039;s the same)
deliver(username@mydomain.com): Aug 19 08:26:15 Info: cmusieve: Using sieve path: /var/vmail/vmail01/mydomain.com/u/us/use/username-2009.08.17.08.51.13//dovecot.sieve
deliver(username@mydomain.com): Aug 19 08:26:15 Info: cmusieve: Executing script /var/vmail/vmail01/mydomain.com/u/us/use/username-2009.08.17.08.51.13//dovecot.sievec
deliver(username@mydomain.com): Aug 19 08:26:15 Info: msgid=&lt;20090819132554.0911D202877@mail.mydomain.com&gt;: saved mail to INBOX</code></pre></div><p>Errors are gone, it even says it is executing the script, and yet it doesn&#039;t...</p>]]></description>
			<author><![CDATA[null@example.com (Caliban)]]></author>
			<pubDate>Wed, 19 Aug 2009 13:57:39 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post878.html#p878</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sieve on iRedMail 5 (CentOS)]]></title>
			<link>http://www.iredmail.org/forum/post877.html#p877</link>
			<description><![CDATA[<p>It works for me here.</p><p>Try to debug it yourself, steps:</p><p>- Enable debug in dovecot. Add &#039;mail_debug = yes&#039; in /etc/dovecot.conf (RHEL/CentOS) or /etc/dovecot/dovecot.conf (Debian/Ubuntu):<br /></p><div class="codebox"><pre><code>mail_debug = yes</code></pre></div><p>- Monitor /var/log/sieve.log with &#039;tail&#039;:<br /></p><div class="codebox"><pre><code>$ sudo tail -f /var/log/sieve.log</code></pre></div><p>- Send mail to the testing account, and try to find out the root case in sieve.log.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 19 Aug 2009 13:11:15 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post877.html#p877</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sieve on iRedMail 5 (CentOS)]]></title>
			<link>http://www.iredmail.org/forum/post876.html#p876</link>
			<description><![CDATA[<p>Unfortunately, it&#039;s still not working.&nbsp; The patch you provided still points to <strong>/var/vmail/sieve/%Ld/%Ln/dovecot.sieve</strong>, which does not exist.&nbsp; I think it should either be <strong>/var/vmail/sieve/%Ld/%Ln/roundcube.sieve</strong>, but that&#039;s roundcube specific, or <strong>%Lh/dovecot.sieve</strong>, or maybe something else entirely. I&#039;m still unsure how things expand, but <strong>%Lh/dovecot.sieve</strong> would be my guess.</p><p>But even with that, the scripts get &quot;compiled&quot; if that&#039;s the right word, but not executed. I also tried a filter to move emails into a folder, but it won&#039;t work...</p>]]></description>
			<author><![CDATA[null@example.com (Caliban)]]></author>
			<pubDate>Wed, 19 Aug 2009 13:02:59 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post876.html#p876</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sieve on iRedMail 5 (CentOS)]]></title>
			<link>http://www.iredmail.org/forum/post858.html#p858</link>
			<description><![CDATA[<p>@Caliban, Fixed sieve issue on Debian:<br /><a href="http://code.google.com/p/iredmail/source/detail?r=5448b4c5f5aaee90bf31fb253aeb5419ec462931">http://code.google.com/p/iredmail/sourc … 19ec462931</a></p><p>Upgrade tutorial was updated:<br /><a href="http://code.google.com/p/iredmail/wiki/Upgrade_050_051">http://code.google.com/p/iredmail/wiki/Upgrade_050_051</a></p><p>Thanks for your feedback and testing. <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 19 Aug 2009 07:06:30 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post858.html#p858</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sieve on iRedMail 5 (CentOS)]]></title>
			<link>http://www.iredmail.org/forum/post852.html#p852</link>
			<description><![CDATA[<p>Hello. I tried iRedOS and IRedMail (5.0 with the small update 5.01). I installed with LDAP and Roundcube bat clients rules are not working. <br />From log I see that sieve deliver the emais to inbox only, ignoring the per user script in /var/vmail/sieve/domain/user.</p><p>Any suggestions?</p><br /><p>Best regards</p><p>Sabbiolina.</p>]]></description>
			<author><![CDATA[null@example.com (Sabbiolina)]]></author>
			<pubDate>Tue, 18 Aug 2009 20:30:36 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post852.html#p852</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sieve on iRedMail 5 (CentOS)]]></title>
			<link>http://www.iredmail.org/forum/post851.html#p851</link>
			<description><![CDATA[<p>No, I used a different email address (different domain even).&nbsp; I can find absolutely nothing in any log file that it is even trying to send out a message... mail.log, dovecot.log, sieve.log, they&#039;re all clean, an no mentioning of any outgoing mail...</p>]]></description>
			<author><![CDATA[null@example.com (Caliban)]]></author>
			<pubDate>Tue, 18 Aug 2009 20:27:47 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post851.html#p851</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sieve on iRedMail 5 (CentOS)]]></title>
			<link>http://www.iredmail.org/forum/post850.html#p850</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>However the vacation response is not being sent out...</p></blockquote></div><p>Did you send to the account which you used to send mail? From user01@ to user01@, if so, deliver program won&#039;t generate a vacation message.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 18 Aug 2009 15:29:51 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post850.html#p850</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sieve on iRedMail 5 (CentOS)]]></title>
			<link>http://www.iredmail.org/forum/post849.html#p849</link>
			<description><![CDATA[<p>I am trying to get this to work as well. I&#039;m using the vacation (Out of office) filter for testing if that makes a difference, but it won&#039;t work.</p><div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><div class="codebox"><pre><code>plugin {
    sieve = /var/vmail/sieve/%Ld/%Ln/dovecot.sieve
}</code></pre></div></blockquote></div><p>Are you sure about this?&nbsp; There is no such file. There is a /var/vmail/sieve/&lt;domainname&gt;/&lt;username&gt;/roundcube.sieve, which I tried to use to no avail, and there is a /var/vmail/vmail01/&lt;domainname&gt;/&lt;u&gt;/&lt;us&gt;/&lt;use&gt;/&lt;usernamedatetime&gt;/dovecot.sieve link that points to the first file... I have a feeling you meant to use that link, but I&#039;m not sure how %Ln and %Ln expand, or how to have it point to that link..<br />I&#039;ve been playing with this short of hardcoding the path to see if sieve actually works at all, which is what I may try next...</p><p>Update: I think I managed to get a little closer. The setting I used is:<br /></p><div class="codebox"><pre><code>plugin {
    sieve = %Lh/dovecot.sieve
}</code></pre></div><p>Which, after a message is received, creates a dovecot.sievec file in the same directory (Looks like a binary, compiled version).&nbsp; So at least I know it&#039;s doing *something*... However the vacation response is not being sent out...</p>]]></description>
			<author><![CDATA[null@example.com (Caliban)]]></author>
			<pubDate>Tue, 18 Aug 2009 14:31:58 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post849.html#p849</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sieve on iRedMail 5 (CentOS)]]></title>
			<link>http://www.iredmail.org/forum/post846.html#p846</link>
			<description><![CDATA[<p>Many thanks for the fix and the iRedMail Project. I go back playing with the installation <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />Have a nice day.</p>]]></description>
			<author><![CDATA[null@example.com (Emidio Reggiani)]]></author>
			<pubDate>Tue, 18 Aug 2009 06:17:54 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post846.html#p846</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sieve on iRedMail 5 (CentOS)]]></title>
			<link>http://www.iredmail.org/forum/post841.html#p841</link>
			<description><![CDATA[<p>Fixed: <a href="http://code.google.com/p/iredmail/source/detail?r=8d7106cedbf35dd38bd9fabda517f595797470b3">http://code.google.com/p/iredmail/sourc … 95797470b3</a><br />And sync the upgrade tutorial (0.5.0 -&gt; 0.5.1): <a href="http://code.google.com/p/iredmail/wiki/Upgrade_050_051">http://code.google.com/p/iredmail/wiki/Upgrade_050_051</a></p><p>Thanks <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 17 Aug 2009 14:02:16 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post841.html#p841</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sieve on iRedMail 5 (CentOS)]]></title>
			<link>http://www.iredmail.org/forum/post840.html#p840</link>
			<description><![CDATA[<p>Add below lines in /etc/dovecot.conf:<br /></p><div class="codebox"><pre><code>plugin {
    sieve = /var/vmail/sieve/%Ld/%Ln/dovecot.sieve
}</code></pre></div><p>It should work as expected.</p><p>I will add this fix in 0.5.1. Thanks for your feedback. <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 17 Aug 2009 13:52:00 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post840.html#p840</guid>
		</item>
	</channel>
</rss>
