aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roles/mail/files/sieve/README1
-rw-r--r--roles/mail/tasks/main.yml9
2 files changed, 3 insertions, 7 deletions
diff --git a/roles/mail/files/sieve/README b/roles/mail/files/sieve/README
index b004418..302630b 100644
--- a/roles/mail/files/sieve/README
+++ b/roles/mail/files/sieve/README
@@ -12,6 +12,7 @@ NOTE:
write permission for the caller process:
$ sievec before.d
$ sievec after.d
+* Or change the directory's ownership to be "vmail:vmail".
See:
* https://wiki.dovecot.org/Pigeonhole/Sieve
diff --git a/roles/mail/tasks/main.yml b/roles/mail/tasks/main.yml
index 72debac..81afd0a 100644
--- a/roles/mail/tasks/main.yml
+++ b/roles/mail/tasks/main.yml
@@ -83,13 +83,8 @@
copy:
src: sieve/ # trailing '/' -> directory contents
dest: /usr/local/etc/dovecot/sieve/
- tags: dovecot
-
-- name: dovecot - compile sieve filters
- command: >
- find /usr/local/etc/dovecot/sieve/
- -name '*.sieve'
- -exec sievec '{}' ';'
+ owner: "{{ mail.vuser.name }}"
+ group: "{{ mail.vuser.name }}"
tags: dovecot
- name: dovecot - generate passdb and userdb