[Dovecot] sieve filters not being invoked

Stephan Bosch stephan at rename-it.nl
Mon May 9 12:14:44 EEST 2011


Op 8-5-2011 11:56, Colin Brace schreef:
> Hi all,
>
> Similar to someone who posted here yesterday, I am having trouble getting
> sieve filters working.
>
> I have installed pigeonhole. I can create, edit, and save scripts from both
> the Thunderbird sieve extension as well as the Roundcube sieve plugin via
> managesieve running on port 4190. The .sieve file is properly saved in
> ~/sieve with a symlink from ~/.dovecot.sieve.
>
> But the filters are not being invoked on incoming mail. I have mail_debug
> enabled, but I don't see anything useful in /var/log/dovecot.
>
> Anyone have any ideas?

Is your MTA storing messages using the Dovecot LDA 
(http://wiki2.dovecot.org/LDA) ? Check that thoroughly. Enable 
mail_debug to get more verbose logs. To definitively check whether Sieve 
is working or not, you can invoke dovecot-lda manually. If it works 
then, the problem most likely lies with your MTA.

At my end, the logs look as follows (manual invocation, mail_debug=yes):

May  9 11:08:34 host dovecot: lda: Debug: Loading modules from 
directory: /usr/lib/dovecot/modules
May  9 11:08:34 host dovecot: lda: Debug: Module loaded: 
/usr/lib/dovecot/modules/lib90_sieve_plugin.so
May  9 11:08:34 host dovecot: lda(stephan): Debug: Effective uid=1011, 
gid=1011, home=/home/stephan
May  9 11:08:34 host dovecot: lda(stephan): Debug: maildir: root exists 
(/home/stephan/Maildir)
May  9 11:08:34 host dovecot: lda(stephan): Debug: maildir++: 
root=/home/stephan/Maildir, index=, control=, inbox=/home/stephan/Maildir
May  9 11:08:34 host dovecot: lda(stephan): Debug: userdb lookup 
skipped, username taken from USER environment
May  9 11:08:34 host dovecot: lda(stephan): Debug: none: root=, index=, 
control=, inbox=
May  9 11:08:34 host dovecot: lda(stephan): Debug: sieve: using sieve 
path for user's script: /home/stephan/.dovecot.sieve
May  9 11:08:34 host dovecot: lda(stephan): Debug: sieve: opening script 
/home/stephan/.dovecot.sieve
May  9 11:08:34 host dovecot: lda(stephan): Debug: sieve: script binary 
/home/stephan/.dovecot.svbin successfully loaded
May  9 11:08:34 host dovecot: lda(stephan): Debug: sieve: binary save: 
not saving binary /home/stephan/.dovecot.svbin, because it is already stored
May  9 11:08:34 host dovecot: lda(stephan): Debug: sieve: executing 
script from /home/stephan/.dovecot.svbin
May  9 11:08:34 host dovecot: lda(stephan): sieve: 
msgid=<20090729182144.4c9baf96 at example.com>: stored mail into mailbox 
'INBOX'

Regards,

Stephan.




More information about the dovecot mailing list