[Dovecot] Using global und per-user sieve scripts at the same time

Matthias Kellermann matthias at adminlife.net
Mon Dec 10 17:46:57 EET 2007


Hi list,

I'm still trying to get global and per-user sieve scripts to work. With
no success yet.

This is what I've got for the moment:

dovecot.conf
-----------------------------------------------
protocol lda {
  postmaster_address = postmaster at mydomain.tld
  fsync_disable = no
  mail_plugins = cmusieve quota
  mail_plugin_dir = /usr/local/lib/dovecot/lda
  sieve_global_path = /usr/local/etc/sieve/spam
  sendmail_path = /usr/sbin/sendmail
  auth_socket_path = /var/run/dovecot/auth-master
}

plugin {
  sieve = /usr/mail/%Lu/sieve
}
-----------------------------------------------


/usr/local/etc/sieve/spam:
-----------------------------------------------
require "fileinto";

if header :contains ["Subject"] ["***Spam***"] {
  fileinto "Spam";
  stop;
}
-----------------------------------------------

If I enable sieve_global_path and sieve in plugin section only the user
sieve script is working. If I enable only the sieve_global_path setting
this one is working. Both at the same time won't work. Dovecot version
is 1.0.7.

Is there really a way to get this to work under Dovecot 1.0.7?

Matthias


More information about the dovecot mailing list