-------- Original Message -------- Subject: Re: Sieve permissions issue following update From: Steffen Kaiser skdovecot@smail.inf.fh-brs.de To: David Gessel gessel@blackrosetech.com Date: Wed Dec 10 2014 09:52:57 GMT+0300 (Arabic Standard Time)
Actually this "ls" output and the last sentence does not indicate that the Sieve script had been compiled: a) after changing 10-move-spam.sieve _and_ b) after the upgrade with the new Sieve tools.
Good point.
Did _you_ _manually_ run:
cd /usr/local/etc/dovecot/sieve rm 10-move-spam.svbin
Ut oh... I did not rm the existing svbin.
sievec -D 10-move-spam.sieve
? And, is the sievec command displaying the Pigeonhole version you have installed?
And the -D directive is very useful, thanks:
# rm 10-move-spam.svbin
# sievec -D 10-move-spam.sieve
sievec(gessel): Debug: sieve: Pigeonhole version 0.4.6 (3e924b1b6c5c+) initializing
sievec(gessel): Debug: sieve: include: sieve_global is not set; it is currently not possible to include :global' scripts. sievec(gessel): Debug: sieve: file storage: Using script storage path: 10-move-spam.sieve sievec(gessel): Debug: sieve: file script: Opened script
10-move-spam' from 10-move-spam.sieve' sievec(gessel): Debug: sieve: Script
10-move-spam' from 10-move-spam.sieve successfully compiled
and watching the logs: dovecot: lda(gessel@blackrosetech.com): sieve: msgid=CAFOe2y4kDushW=u6_cN1JmsP1FF63BzJ5O8=VjquHNaNAnskFw@mail.gmail.com: stored mail into mailbox 'INBOX'
Success!
The permissions correction portion of the error below still seems wrong though, isn't it? And if so, a little misleading.
Dec 9 00:09:59 mailhost dovecot: lda(gessel@domain.com): Error: sieve: binary save: failed to create temporary file: open(/usr/local/etc/dovecot/sieve/10-move-spam.svbin.mailhost.domain.com.114.) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /usr/local/etc/dovecot/sieve, we're not in group 6(mail), dir owned by 143:6 mode=0775)
Does it seem reasonable to let the port maintainer know to submit a request to include instructions in /usr/ports/UPDATING for recompiling global scripts when necessary (and how to do it)? I checked before posting to the list and the last entry for sieve is this one:
20090828: AFFECTS: users of mail/dovecot and mail/dovecot-sieve AUTHOR: yds@CoolRat.org
dovecot-sieve has been updated to a new implementation compatible with dovecot 1.2.x. For details of what this means please refer to:
http://wiki.dovecot.org/LDA/Sieve/Dovecot#Migration_from_CMUSieve