summaryrefslogtreecommitdiff
blob: 1be8729cf8e91c6995a9c2d947b8f049fa051e4b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
- name: copy user sieves to user vmail homedirs
  copy:
    src: "sieve/{{ item.username }}.sieve"
    dest: "/var/mail/vhosts/{{item.domain}}/{{item.user}}/sieve/"
    mode: 0600
    owner: vmail
    group: vmail
  loop: "{{ sieve.users }}"

  # dovecot only reads .dovecot.sieve symlink in each users's virtual homedir
- name: create active sieve symlinks for dovecot users
  file:
    state: link
    src: "/var/mail/vhosts/{{item.domain}}/{{item.user}}/sieve/{{ item.username }}.sieve"
    dest: "/var/mail/vhosts/{{item.domain}}/{{item.user}}/.dovecot.sieve"
    owner: vmail
    group: vmail
    force: yes
  loop: "{{ sieve.users }}"
Powered by cgit v1.2.3 (git 2.41.0)