ZhangHuangbin wrote:iRedMail-0.5.1 ships roundcube-0.2.1, but you have 0.3.1.
Try to set 'mail_debug = yes' in dovecot.conf, restart dovecot service, and then test yourcfilter rule again. Paste log in /var/log/sieve.log here.
WOOOHOOOO!!! It's working!!
Debugging helped and I also remembered why I had to make some changes in dovecot.conf when I first upgraded to Dovecot 1.2.9 back in April. Dovecot 1.2.9 uses different settings in dovecot.conf for the sieve rules.
For example, the following lines, which are typically uncommented in a standard iRedMail install, need to be commented or removed because they are not used in the "protocol managesieve" section for Dovecot 1.2.9:
protocol managesieve {
# IP or host address where to listen in for connections.
listen = 127.0.0.1:2000
# Specifies the location of the symbolic link pointing to the
# active script in the sieve storage directory.
#sieve = /mnt/vmail/sieve/%Ld/%Ln/dovecot.sieve <-- This line needs to be commented or removed.
# This specifies the path to the directory where the uploaded scripts are stored.
#sieve_storage = /mnt/vmail/sieve/%Ld/%Ln/ <-- This line needs to be commented or removed.
Also, in the "protocol lda" section, the "sieve" plugin needs to be specified rather than the "cmusieve" plugin:
protocol lda {
postmaster_address = root
auth_socket_path = /var/run/dovecot/auth-master
#mail_plugins = cmusieve quota expire
mail_plugins = sieve quota
Lastly, the "sieve" and "sieve_dir" options need to be specified in the "Per-user sieve mail filter" plugin section:
# Per-user sieve mail filter.
plugin {
# For maildir format.
sieve = /mnt/vmail/sieve/%Ld/%Ln/dovecot.sieve
sieve_dir = /mnt/vmail/sieve/%Ld/%Ln/
That's it!
Thanks again for all of your help and patience!
Note: I also remember now that Dovecot 1.2.9 got installed because I'm using Ubuntu 10.04 and Dovecot 1.2.9 gets installed by default. I did not manually upgrade to 10.04.