[Dovecot] Sieve doesn't find user scripts

Jochen Spieker ml at well-adjusted.de
Sun Apr 29 14:04:51 EEST 2012


Hi,

I want to use Sieve filtering with my Dovecot 1.2 installation on Debian
squeeze. I have a virtual domain setup using Portgresql.

ManageSieve works fine so far, I can edit and activate/deactive scripts (using
Thunderbird + Plugin) and they show up in the filesystem where I expect them to
be, see below.

The problem is that LDA doesn't find the script. From
/var/log/dovecot-deliver.log:

| 2012-04-29 12:17:48 deliver(jrspieker at well-adjusted.de): Info: Loading modules from directory: /usr/lib/dovecot/modules/lda
| 2012-04-29 12:17:48 deliver(jrspieker at well-adjusted.de): Info: Module loaded: /usr/lib/dovecot/modules/lda/lib10_quota_plugin.so
| 2012-04-29 12:17:48 deliver(jrspieker at well-adjusted.de): Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_sieve_plugin.so
| 2012-04-29 12:17:48 deliver(jrspieker at well-adjusted.de): Info: auth input: mail=maildir:/srv/mail/well-adjusted.de/jrspieker
| 2012-04-29 12:17:48 deliver(jrspieker at well-adjusted.de): Info: auth input: userdb_home=/srv/mail/home/well-adjusted.de/jrspieker
| 2012-04-29 12:17:48 deliver(jrspieker at well-adjusted.de): Info: auth input: uid=105
| 2012-04-29 12:17:48 deliver(jrspieker at well-adjusted.de): Info: auth input: gid=109
| 2012-04-29 12:17:48 deliver(jrspieker at well-adjusted.de): Info: Quota root: name=storage=512000 backend=maildir args=
| 2012-04-29 12:17:48 deliver(jrspieker at well-adjusted.de): Info: maildir: data=/srv/mail/well-adjusted.de/jrspieker
| 2012-04-29 12:17:48 deliver(jrspieker at well-adjusted.de): Info: maildir++: root=/srv/mail/well-adjusted.de/jrspieker, index=, control=, inbox=
| 2012-04-29 12:17:48 deliver(jrspieker at well-adjusted.de): Info: sieve: user has no valid personal script
| 2012-04-29 12:17:48 deliver(jrspieker at well-adjusted.de): Info: sieve: no scripts to execute: reverting to default delivery.

AFAICS, the sieve module is loaded and the home directory is correct.  The
content of this directory looks like this:

| $ ls -ltRa /srv/mail/home/well-adjusted.de/jrspieker/
| /srv/mail/home/well-adjusted.de/jrspieker/:
| total 12
| drwx------ 3 vmail vmail 4096 Apr 29 12:22 .
| lrwxrwxrwx 1 vmail vmail   16 Apr 29 12:22 .dovecot.sieve -> sieve/test.sieve
| drwx------ 3 vmail vmail 4096 Apr 28 22:31 sieve
| drwx------ 3 vmail vmail 4096 Apr 27 20:55 ..
| 
| /srv/mail/home/well-adjusted.de/jrspieker/sieve:
| total 16
| drwx------ 3 vmail vmail 4096 Apr 29 12:22 ..
| drwx------ 3 vmail vmail 4096 Apr 28 22:31 .
| drwx------ 2 vmail vmail 4096 Apr 28 22:31 tmp
| -rw------- 1 vmail vmail  338 Apr 28 22:31 test.sieve
|
dovecot -n shows this for the plugin section:

| plugin:
|   quota: maildir:storage=512000
|   sieve_dir: ~/sieve/
|   sieve: ~/.dovecot.sieve

And finally, the content of the script:

| require["fileinto"];
| 
| if header :is "subject" "test" {
|         fileinto "Test";
| } else {
|         keep;
| }


What am I missing here?

Thanks,
Jochen.
-- 
Fashion is more important to me than war, famine, disease or art.
[Agree]   [Disagree]
                 <http://www.slowlydownward.com/NODATA/data_enter2.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20120429/c57d9a73/attachment.bin>


More information about the dovecot mailing list