Sieve 2.2 not working

Scott M. Likens damm at
Tue May 10 18:40:16 EDT 2005

require "fileinto";
    if address :contains :all ["from"] "root at" {
        fileinto "INBOX.Servers.Periodic";}
    elsif address :contains :all ["to", "cc", "bcc"] 
"jessem at"{
    elsif address :contains :all ["to", "cc", "bcc"]
        else {
                           fileinto "INBOX";}

that's a small exert from my script.


On Tue, 10 May 2005 22:55:06 +0100
"John Lane" <listmail at> wrote:

> Hello,
> I have been trying to get Sieve working, to no avail. Having scoured
> the mailing lists / google, I've found other people with the same
> problem but can't find a solution.
> My configuration comprises postfix, procmail and cyrus-imap. It is all
> working as expected except for Sieve.
> I'm running Cyrus-IMAP 2.2.12, and Cyrus-SASL 2.1.20. My received
> e-mails are showing "X-Sieve: CMU Sieve 2.2" so I guess that proces
> Sieve is compiled in and being called.
> This is my test script (email address changed) :
> require ["reject","fileinto"];
>   if address :is :all "From" "email at"
>   {
>     reject "testing";
>   }
> I have successfully installed this using sieveshell and it is
> correctly installed in the sievedir defined in imapd.conf and has a
> symlink "defaultbc" pointing to it.
> I have successfully got the sieve test program to report the expected
> output:
> -bash-2.05b# ./test /tmp/msg
> /var/lib/imap/sieve/t/testuser/sievetest.bc rejecting message
> '/tmp/msg' with 'testing'
> (note here that the test prog requires the byte-code version of the
> script - I couldn't find this point documented anywhere)
> However, When I send a mail into the server the sieve script has no
> effect. Otherwise the system is fine.
> Any suggestions would be greately appreciated.
> Thanks,
> John
> (i've also tried the below script which doesn't work either)
> require ["reject"];
>     reject "testing";
> !DSPAM:42813321112958089135640!

"What does one want when one is engaged in the sexual act?
That everything around you give you its utter attention
Think only of you, care only for you...
Every man wants to be a tyrant when he fornicates"

Cyrus Home Page:
Cyrus Wiki/FAQ:
List Archives/Info:

More information about the Info-cyrus mailing list