Sieve GLOBAL + Sieve LOCAL

dovecot at pallissard.net dovecot at pallissard.net
Wed May 17 23:07:35 EEST 2017


> But what I would need is execute a global sieve_before for all users to
> apply some spam selection rules. Did anybody easily achieved it?

Is this what you are looking for? This is how I enforce spam rules prior to users' custom scripts.

#in dovecot configuration
plugin {
  sieve_before = /var/lib/dovecot/sieve/global/default.sieve
}


#In /var/lib/dovecot/sieve/global/default.sieve
require ["fileinto"];
if header :contains "X-Spam-Flag" "YES" {
        fileinto "Spam";
        stop;
} else {
        keep;
}

-- 
Matt Pallissard


More information about the dovecot mailing list