17 May
2017
17 May
'17
11:07 p.m.
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