blob: 6383f086d2c1cc9c4e4ff0091a8a8bc158bcf594 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
---
- name: Create DMARC user sieve directory
file:
state: directory
path: "/var/vmail/{{ opendmarc_inbox_username }}/sieve"
owner: "{{ opendmarc_inbox_username }}"
group: "{{ opendmarc_inbox_username }}"
mode: "0700"
tags:
- role::opendmarc-inbox
- name: Template DMARC filing Sieve script
template:
src: dmarc.sieve.j2
dest: "/var/vmail/{{ opendmarc_inbox_username }}/sieve/dmarc.sieve"
owner: "{{ opendmarc_inbox_username }}"
group: "{{ opendmarc_inbox_username }}"
mode: "0400"
tags:
- role::opendmarc-inbox
notify:
- Compile DMARC Sieve script
- name: Activate DMARC processing Sieve filter
file:
state: link
src: "/var/vmail/{{ opendmarc_inbox_username }}/sieve/dmarc.sieve"
path: "/var/vmail/{{ opendmarc_inbox_username }}/.dovecot.sieve"
tags:
- role::opendmarc-inbox
notify:
- Compile DMARC Sieve script
|