Ajout de sieve (oublié)

This commit is contained in:
VC
2019-11-19 07:25:28 +01:00
parent b740e1a7f1
commit b530cd7f91
3 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
require ["fileinto","mailbox"];
if header :contains "X-Spam-Flag" "YES" {
fileinto :create "Junk";
}

View File

@@ -2,3 +2,6 @@
service:
name: dovecot
state: restarted
- name: compile sieve
command: sievec /etc/dovecot/before.sieve

View File

@@ -13,3 +13,11 @@
dest: /etc/dovecot/dovecot.conf
notify:
- restart dovecot
- name: sieve configuration file
copy:
src: ./files/before.sieve
dest: /etc/dovecot/before.sieve
notify:
- compile sieve
- restart dovecot