summaryrefslogtreecommitdiff
blob: dda7930d8e64625d505f68574064ad4efbdd8392 (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
---
- name: restart dovecot
  service:
    name: dovecot
    state: restarted

- name: reload dovecot
  service:
    name: dovecot
    state: reloaded

# We intentionally don't have a "creates:" guard on the resieve handlers
# because if they get called we need to re-run them on any changes of
# the underlying script itself regardless whether the result .svbin
# already exists or not.
- name: resieve spam
  command: sievec report-spam.sieve
  args:
    chdir: /etc/dovecot/sieve

- name: resieve ham
  command: sievec report-ham.sieve
  args:
    chdir: /etc/dovecot/sieve

- name: resieve spam mover
  command: sievec 10-rspamd.sieve
  args:
    chdir: /etc/dovecot/sieve-before.d
    creates: 10-rspamd.svbin
Powered by cgit v1.2.3 (git 2.41.0)