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:
|
||||
name: dovecot
|
||||
state: restarted
|
||||
|
||||
- name: compile sieve
|
||||
command: sievec /etc/dovecot/before.sieve
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user