123456789101112131415161718192021222324252627282930313233343536 |
- - name: Install dspam and related packages
- apt: pkg=$item state=installed
- with_items:
- - dspam
- - dovecot-antispam
- - postfix-pcre
- - dovecot-sieve
-
- - name: Create dspam directory
- file: state=directory path=/decrypted/dspam group=dspam owner=dspam
-
- - name: Put dspam configuration files in place
- copy: src=etc_dspam_{{item}} dest=/etc/dspam/{{item}} owner=dspam group=dspam
- with_items:
- - default.prefs
- - dspam.conf
- notify:
- - restart postfix
- - restart dovecot
-
- - name: Put dspam postfix configuration in place
- copy: src=etc_postfix_dspam_filter_access dest=/etc/postfix/dspam_filter_access owner=root group=root
- notify: restart postfix
-
- - name: Put dspam dovecot configuration in place
- copy: src=etc_dovecot_conf.d_{{item}} dest=/etc/dovecot/conf.d/{{item}} owner=vmail group=dovecot
- with_items:
- - 20-imap.conf
- - 90-plugin.conf
- notify: restart dovecot
-
- - name: Put sieve rules into each primary user directory
- copy: src=dot_dovecot.sieve dest=/decrypted/${item.name}/${item.primary_user}/.dovecot.sieve owner=vmail group=dovecot
- with_items:
- - ${mail_virtual_domains}
- notify: restart dovecot
|