forked from infra/ansible
mail: fix sieve path name and permissions
This commit is contained in:
parent
5067e5371e
commit
d96e3f20ec
@ -1,2 +1,2 @@
|
||||
require ["vnd.dovecot.pipe", "copy", "imapsieve"];
|
||||
pipe :copy ".learn-ham.sh";
|
||||
pipe :copy "learn-ham.sh";
|
||||
|
@ -1,2 +1,2 @@
|
||||
require ["vnd.dovecot.pipe", "copy", "imapsieve"];
|
||||
pipe :copy ".learn-spam.sh";
|
||||
pipe :copy "learn-spam.sh";
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user