mail: fix sieve path name and permissions

This commit is contained in:
Markus 2020-05-20 08:35:44 +02:00
parent 5067e5371e
commit d96e3f20ec
3 changed files with 5 additions and 5 deletions

View File

@ -1,2 +1,2 @@
require ["vnd.dovecot.pipe", "copy", "imapsieve"];
pipe :copy ".learn-ham.sh";
pipe :copy "learn-ham.sh";

View File

@ -1,2 +1,2 @@
require ["vnd.dovecot.pipe", "copy", "imapsieve"];
pipe :copy ".learn-spam.sh";
pipe :copy "learn-spam.sh";

View File

@ -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