Sieve

Daryl daryl at warpmail.net
Wed Feb 19 10:42:15 EST 2003


The syntax checks out ok & the rules are simple - it's just not filtering. 
Without any feedback from the deliver process in my logs I cant work out 
why this is the case.
I am logging everything via syslog, but a deliver process is as follows:-

root at mini-me~$grep 32612 /var/log/imapd.log
Feb 19 15:25:09 mini-me master[32612]: about to exec /usr/cyrus/bin/lmtpd
Feb 19 15:25:09 mini-me lmtpunix[32612]: executed
Feb 19 15:30:14 mini-me lmtpd[32612]: accepted connection
Feb 19 15:30:14 mini-me lmtpd[32612]: lmtp connection preauth'd as postman
Feb 19 15:30:14 mini-me lmtpd[32612]: duplicate_check: 
<195161647.1045668728@[10.132.124.72]>   user.djf             0
Feb 19 15:30:14 mini-me lmtpd[32612]: mystore: starting txn 2147484037
Feb 19 15:30:14 mini-me lmtpd[32612]: mystore: committing txn 2147484037
Feb 19 15:30:14 mini-me lmtpd[32612]: duplicate_mark: 
<195161647.1045668728@[10.132.124.72]>   user.djf             1045668614
Feb 19 15:31:14 mini-me master[29993]: process 32612 exited, status 0


--On 19 February 2003 09:33 -0500 Ken Murchison <ken at oceana.com> wrote:
>
>
> timesieved is only used when sieve scripts are stored in the 'sievedir'
> hierarchy.  If you're using home directories, then there is no reason to
> have timsieved in cyrus.conf.
>
> The syntax of your script looks ok, but you might want to check it with
> the sieve/test.c program in the distribution.  Other than that, make
> sure that the 'cyrus' user has permissions to read the sieve script --
> that includes execute permissions on all of the parent directories of
> the script.
>
>
> Daryl Field wrote:
>>
>> I'm using(trying to) use sieve to filter, am using homedir for the
>> scripts. It doesn't work & I'm not getting any usefull feedback via any
>> of the logs. Here are a few details re the current configuration. If
>> anyone is aware of any documentation I'm missing & could point me in the
>> right direction, I'd be eternally gratefull.
>>
>> Cyrus.conf:
>> sieve         cmd="timsieved" listen="sieve" prefork=0
>>
>> imapd.conf:
>> partition-default: /var/spool/imap
>> admins: cyrusadm
>> sasl_pwcheck_method: saslauthd
>> sieveusehomedir: true
>> allowanonymouslogin: no
>> imapidresponse: no
>>
>> ~$less ~xxx/.sieve
>> require ["fileinto", "reject", "vacation", "regex", "relational"];
>>
>> if  header :contains ["to", "cc"] "info-cyrus at andrew.cmu.edu" {
>>   fileinto "INBOX.Cyrus";
>> } elsif  header :contains ["to", "cc"] "list2" {
>>   fileinto "INBOX.list2";
>> }
>>
>> This log entry may be from a filter attempt - but I'm of the opinion, its
>> from when I tried to use sieveshell without the usehomedir option being
>> present, as theres not enough entries like this to indicate they are
>> carried out on every filter attempt:
>>
>> Feb 18 11:46:19 mini-me master[28444]: about to exec
>> /usr/cyrus/bin/timsieved
>> Feb 18 11:46:19 mini-me sieve[28444]: executed
>> Feb 18 11:46:19 mini-me sieve[28444]: accepted connection
>> Feb 18 11:46:19 mini-me timsieved[28444]: can't use home directories
>
> --
> Kenneth Murchison     Oceana Matrix Ltd.
> Software Engineer     21 Princeton Place
> 716-662-8973 x26      Orchard Park, NY 14127
> --PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp






More information about the Info-cyrus mailing list