From 7a1b276f7b2c9478e28c16bb18e3095bd4b49e15 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 5 May 2018 12:44:51 +0800 Subject: mail/dovecot: change sieve directory ownership --- roles/mail/files/sieve/README | 1 + roles/mail/tasks/main.yml | 9 ++------- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'roles') 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 -- cgit v1.2.2