Ajout de sieve (oublié)
This commit is contained in:
6
roles/dovecot/files/before.sieve
Normal file
6
roles/dovecot/files/before.sieve
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
require ["fileinto","mailbox"];
|
||||||
|
|
||||||
|
if header :contains "X-Spam-Flag" "YES" {
|
||||||
|
fileinto :create "Junk";
|
||||||
|
}
|
||||||
|
|
@@ -2,3 +2,6 @@
|
|||||||
service:
|
service:
|
||||||
name: dovecot
|
name: dovecot
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
|
- name: compile sieve
|
||||||
|
command: sievec /etc/dovecot/before.sieve
|
||||||
|
@@ -13,3 +13,11 @@
|
|||||||
dest: /etc/dovecot/dovecot.conf
|
dest: /etc/dovecot/dovecot.conf
|
||||||
notify:
|
notify:
|
||||||
- restart dovecot
|
- restart dovecot
|
||||||
|
|
||||||
|
- name: sieve configuration file
|
||||||
|
copy:
|
||||||
|
src: ./files/before.sieve
|
||||||
|
dest: /etc/dovecot/before.sieve
|
||||||
|
notify:
|
||||||
|
- compile sieve
|
||||||
|
- restart dovecot
|
||||||
|
Reference in New Issue
Block a user