Hi everyone,
after switching to ubuntu (from debian) and running a newer dovecot --version 2.2.33.2 (d6601f4ec) i encountered a problem with configuring sieve. The mailserver has virtual maila accounts stored in /decrypted/%d/%n
Prior, i used
plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve sieve_before = /etc/dovecot/sieve/before.d }
after the upgrade, I moved the sieve_before location on disk and changed this to
plugin { sieve = file:~/sieve;active=~/.dovecot.sieve sieve_before = /var/lib/dovecot/sieve/before.d }
only to see that sieve didnt forward e-mails anymore. Looking at the logs below, i suspect, that I didnt understood the meaning of sieve = file:~/sieve;active=~/.dovecot.sieve correctly:
Dec 2 16:01:57 vao01 dovecot: lmtp(events@industra.space): Debug:
Module loaded: /usr/lib/dovecot/modules/lib90_sieve_plugin.so
Dec 2 16:01:57 vao01 dovecot: lmtp(events@industra.space): Debug:
sieve: Pigeonhole version 0.4.21 (92477967) initializing
Dec 2 16:01:57 vao01 dovecot: lmtp(events@industra.space): Debug:
sieve: include: sieve_global is not set; it is currently not possible to
include :global' scripts. Dec 2 16:01:57 vao01 dovecot: lmtp(events@industra.space): Debug: gPtsCPUBBFwMFQAA9mr2oQ: sieve: file storage: Using active Sieve script path: /decrypted/industra.space/events/.dovecot.sieve Dec 2 16:01:57 vao01 dovecot: lmtp(events@industra.space): Debug: gPtsCPUBBFwMFQAA9mr2oQ: sieve: file storage: Using script storage path: /decrypted/industra.space/events/sieve Dec 2 16:01:57 vao01 dovecot: lmtp(events@industra.space): Debug: gPtsCPUBBFwMFQAA9mr2oQ: sieve: file storage: Relative path to sieve storage in active link: sieve/ Dec 2 16:01:57 vao01 dovecot: lmtp(events@industra.space): Debug: gPtsCPUBBFwMFQAA9mr2oQ: sieve: file storage: Using Sieve script path: /decrypted/industra.space/events/.dovecot.sieve Dec 2 16:01:57 vao01 dovecot: lmtp(events@industra.space): Debug: gPtsCPUBBFwMFQAA9mr2oQ: sieve: file storage: Storage path
/decrypted/industra.space/events/.dovecot.sieve' not found
Dec 2 16:01:57 vao01 dovecot: lmtp(events@industra.space): Debug:
gPtsCPUBBFwMFQAA9mr2oQ: sieve: User has no active script in storage
/decrypted/industra.space/events/sieve' Dec 2 16:01:57 vao01 dovecot: lmtp(events@industra.space): Debug: gPtsCPUBBFwMFQAA9mr2oQ: sieve: User has no personal script Dec 2 16:01:57 vao01 dovecot: lmtp(events@industra.space): Debug: gPtsCPUBBFwMFQAA9mr2oQ: sieve: file storage: Using script storage path: /var/lib/dovecot/sieve/before.d Dec 2 16:01:57 vao01 dovecot: lmtp(events@industra.space): Debug: gPtsCPUBBFwMFQAA9mr2oQ: sieve: file script: Opened script
move-spam'
from /var/lib/dovecot/sieve/before.d/move-spam.sieve' Dec 2 16:01:57 vao01 dovecot: lmtp(events@industra.space): Debug: gPtsCPUBBFwMFQAA9mr2oQ: sieve: Executed before user's personal Sieve script(1): /var/lib/dovecot/sieve/before.d/move-spam.sieve Dec 2 16:01:57 vao01 dovecot: lmtp(events@industra.space): Debug: gPtsCPUBBFwMFQAA9mr2oQ: sieve: Opening script 1 of 1 from
/var/lib/dovecot/sieve/before.d/move-spam.sieve'
Dec 2 16:01:57 vao01 dovecot: lmtp(events@industra.space): Debug:
gPtsCPUBBFwMFQAA9mr2oQ: sieve: Loading script
/var/lib/dovecot/sieve/before.d/move-spam.sieve
Dec 2 16:01:57 vao01 dovecot: lmtp(events@industra.space): Debug:
gPtsCPUBBFwMFQAA9mr2oQ: sieve: Script binary
/var/lib/dovecot/sieve/before.d/move-spam.svbin successfully loaded
Dec 2 16:01:57 vao01 dovecot: lmtp(events@industra.space): Debug:
gPtsCPUBBFwMFQAA9mr2oQ: sieve: binary save: not saving binary
/var/lib/dovecot/sieve/before.d/move-spam.svbin, because it is already
stored
Dec 2 16:01:57 vao01 dovecot: lmtp(events@industra.space): Debug:
gPtsCPUBBFwMFQAA9mr2oQ: sieve: Executing script from
`/var/lib/dovecot/sieve/before.d/move-spam.svbin'
Dec 2 16:01:57 vao01 dovecot: lmtp(events@industra.space):
gPtsCPUBBFwMFQAA9mr2oQ: sieve:
msgid=<faae5de1-10b7-9ad3-30d8-f0b91cca942a@fenix.cz>: stored mail into
mailbox 'INBOX'
After changing this to
sieve = file:/decrypted/%d/%n/sieve;active=/decrypted/%d/%n/.dovecot.sieve
I got working sieve rules that forward mails correctly again, but at the same time I loose the ability to let users edit their sieve scripts via the roundcube managesieve plugin (roundcube reported an unknown error), but dovecot complained that the active file wasnt a symlink. I tried several combinations of configuring this, but I seem to miss some important point. Would you kindly help me get this right? Configs are attached.
Thanks in advance, Pavel