[NTLUG:Discuss] Sieve Configuration

Scott Hollomon scott at collinstreet.com
Thu May 12 16:12:24 CDT 2005


Pardon the long post, but here goes:

I'm running Sendmail+cyrus-imap+MailScanner+ Spamassassin+ClamAV on CentOS 4 
all installed via yum from rpms.  Everything is chugging along smoothly 
sending mail, receiving mail, blocking spam and keeping out nasty viruses.

Now I want to use Sieve as well to put mailing list traffic into imap folders 
but I can't seem to get it to work.

I have telneted in from another machine as follows:

telnet foo.bar sieve

and received the following:

Connected to foo.bar.
Escape character is '^]'.
"IMPLEMENTATION" "Cyrus timsieved v2.2.10-Invoca-RPM-2.2.10-1.RHEL4.1"
"SASL" "PLAIN LOGIN GSSAPI NTLM DIGEST-MD5 CRAM-MD5"
"SIEVE" "fileinto reject envelope vacation imapflags notify subaddress 
relational comparator-i;ascii-numeric regex"
"STARTTLS"

So it looks like timsieved is working.

Then I ssh into the server as the user for which I wish to make a sieve 
script.  At the prompt I:

sieveshell -user=me foo.bar

I enter my password twice and get a sieveshell prompt.  At the sieveshell 
prompt I enter:

put ./me_sieve
activate me_sieve

I confirm me_sieve is an active script by entering:

list

and get

me_sieve  <- active script

the contents of me_sieve are (using >get me_sieve) are:

require ["fileinto"];
        if header :contains "Subject" "[SM-USERS]" {
                fileinto "INBOX.SM-Users";}
        elsif header :contains "Subject" "[SM-PLUGINS]" {
                fileinto "INBOX.SM-Plugins";}
        elsif header :contains "Subject" "[NTLUG:Discuss]" {
                fileinto "INBOX.NTLUG Discuss";}
        elsif header :contains "Subject" "[kdepim-users]" {
                fileinto "INBOX.KDE-PIM";}
        else {
                fileinto "INBOX";}

But, alas, it does not work.  (I also tried "fileinto" without the [] because 
I have seen examples both ways.  What have I done wrong?  Do I need the full 
imap folder path (user.me.INBOX.NTLUG Discuss for example) or have I missed 
something totally obvious?

-- 
R. Scott Hollomon
Collin Street Bakery, Inc.
scott at collinstreet.com




More information about the Discuss mailing list