Hi Lance, well I also had some problems getting sieve to run, but it is quite easy. Jeremy Howard posted me a 3 steps - List what to do. I can't find it here, because it was before I cleanup my mails and put the the rest in imapd. Probably you can find it in the archives under "sieve".
In the meantime I'll give you some hands on, and I'm sure it will help...;o) I added > > sievedir: /var/imap/.sieve That's no necessary. Sieve looks in the directory /usr/sieve/ by default. Important is, that you've set no sieve-options like sieveusehomedir: false If enabled, deliver will look for Sieve scripts in user's home directories: ~user/.sieve. sievedir: /usr/sieve in man imapd.conf Of course you can, but not doing is the easiest way to get it run and practise. Getting to know how sieve-directory-structure works I give you an example: When you have the user: jayjay in cyrus who has mailboxes, Sieve looks in /usr/sieve/j/jayjay/ for a sieve file. For user petra in /usr/sieve/p/petra/ for user paul in /usr/sieve/p/paul/ So first of all you have to make the directories mkdir /usr/sieve mkdir /usr/sieve/p mkdir /usr/sieve/p/paul you should best do this with cyrus rights..... The Sieve file itself is called default (This file is used for the rules). When you switch between different files you can do it by symlink e.g. default -> rules1 rules1 rules2 (example of content of a directory e.g. /usr/sieve/p/paul/) So that's it already. Sieve always uses the default-File to figure out whether it should do something or not... I recommend compiling the test-prog from sieve. You can do some testing of sieve-rules on it. That's really fine, if somethings not running. And testing the rules before using them. You obtain it this way. cd into/the/directory/where/your/imapd/source/is cd sieve make test Then you obtain a program called test in /into/the/directory/where/your/imapd/source/is/sieve It's not being copied by make install, so you have to copy it to the directory you want to execute it from or use it in the source directory... It's works like this ./test /directory/where/mailbox/from/user/is/message-id /directory/where/rules/for/this/user/of/sieve/are/default an example of my System ./test /var/spool/imap/user/jochenmetzger/21. /usr/sieve/j/jochenmetzger/default ^ This naturally in one line | Okay then you might be fine: One last hint I think I struggled over about Sieve rules: require "fileinto"; if header :contains "Subject" "PI:" { fileinto "INBOX.01 Steptown.11 page impressions";} this is okay, but don't write Subject this way Subject: -> it won't work like this: if header :contains "Subject:" "PI:" { fileinto "INBOX.01 Steptown.11 page impressions";} IT DOES NOT WORK!!!! So that's all, a bit detailed, but I really wanted to give a hand... HTH Jochen Metzger http://www.steptown.com ....Your Shopping-Guide for Berlin P.S. When something doesn't work about it, post again....till it works.....;o) > >