From d96e3f20ec6ef79ad05ace0acbd1a1fd4a8aeecf Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Wed, 20 May 2020 08:35:44 +0200 Subject: [PATCH] mail: fix sieve path name and permissions --- roles/mail/files/dovecot/report-ham.sieve | 2 +- roles/mail/files/dovecot/report-spam.sieve | 2 +- roles/mail/tasks/main.yml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/mail/files/dovecot/report-ham.sieve b/roles/mail/files/dovecot/report-ham.sieve index 82973c7..9769e97 100644 --- a/roles/mail/files/dovecot/report-ham.sieve +++ b/roles/mail/files/dovecot/report-ham.sieve @@ -1,2 +1,2 @@ require ["vnd.dovecot.pipe", "copy", "imapsieve"]; -pipe :copy ".learn-ham.sh"; +pipe :copy "learn-ham.sh"; diff --git a/roles/mail/files/dovecot/report-spam.sieve b/roles/mail/files/dovecot/report-spam.sieve index 512b132..a6e7ddf 100644 --- a/roles/mail/files/dovecot/report-spam.sieve +++ b/roles/mail/files/dovecot/report-spam.sieve @@ -1,2 +1,2 @@ require ["vnd.dovecot.pipe", "copy", "imapsieve"]; -pipe :copy ".learn-spam.sh"; +pipe :copy "learn-spam.sh"; diff --git a/roles/mail/tasks/main.yml b/roles/mail/tasks/main.yml index 67f387c..761d3ae 100644 --- a/roles/mail/tasks/main.yml +++ b/roles/mail/tasks/main.yml @@ -38,10 +38,10 @@ file: path=/var/log/dovecot state=directory mode=0750 owner=vmail group=vmail - name: Create vmail sieve directory - file: path=/var/vmail/.sieve state=directory mode=0750 owner=vmail group=vmail + file: path=/var/vmail/.sieve state=directory mode=0755 owner=vmail group=vmail - name: Create vmail sieve-bin directory - file: path=/var/vmail/.sieve/bin state=directory mode=0750 owner=vmail group=vmail + file: path=/var/vmail/.sieve/bin state=directory mode=0755 owner=vmail group=vmail - name: Configure redis copy: src=redis.conf dest=/etc/redis/redis.conf @@ -86,7 +86,7 @@ - report-ham.sieve - name: Ensure learn scripts are executable - file: mode=0750 path=/var/vmail/.sieve/bin/{{ item }} + file: mode=0755 path=/var/vmail/.sieve/bin/{{ item }} with_items: - learn-spam.sh - learn-ham.sh