Commit dd82925e authored by Lars Beckers's avatar Lars Beckers

dovecot: fix global script permissions

parent f90eb55d
......@@ -51,7 +51,7 @@
template:
src: "sieve/{{ item }}.j2"
dest: "/var/lib/dovecot/sieve.d/{{ item }}"
mode: '0550'
mode: '0640'
owner: dovecot
group: "{{ dovecot_users_group }}"
with_items:
......@@ -66,6 +66,25 @@
- spamassassin
- mail
- meta: flush_handlers
- name: ensure the global spam filter and learning sieve script have correct permissions
file:
state: present
path: "/var/lib/dovecot/sieve.d/{{ item }}"
mode: '0640'
owner: dovecot
group: "{{ dovecot_users_group }}"
with_items:
- filter-spam.svbin
- report-spam.svbin
- report-ham.svbin
when: dovecot_content_filter
tags:
- dovecot
- spamassassin
- mail
- name: ensure scripts for learning spam are present
copy:
src: "{{ item }}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment