plugin { sieve = file:~/sieve;active=~/.dovecot.sieve sieve_before = ${dovecot_sieve_before_dir} sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.execute sieve_plugins = sieve_extprograms sieve_imapsieve sieve_quota_max_scripts = 10 sieve_quota_max_storage = 2M # The default value for this is "sender", but that will totally break SPF sieve_redirect_envelope_from = orig_recipient # From elsewhere to Junk folder imapsieve_mailbox1_name = Junk imapsieve_mailbox1_causes = COPY imapsieve_mailbox1_before = file:${dovecot_conf_dir}/report-spam.sieve # From Junk folder to elsewhere imapsieve_mailbox2_name = * imapsieve_mailbox2_from = Junk imapsieve_mailbox2_causes = COPY imapsieve_mailbox2_before = file:${dovecot_conf_dir}/report-ham.sieve sieve_global_extensions = +vnd.dovecot.pipe }