Geen omschrijving
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dspam.yml 1.0KB

1234567891011121314151617181920212223
  1. - name: Install dspam and related packages
  2. apt: pkg=$item state=installed
  3. with_items:
  4. - dspam
  5. - dovecot-antispam
  6. - postfix-pcre
  7. - dovecot-sieve
  8. - name: Create dspam directory
  9. file: state=directory path=/decrypted-mail/dspam group=dspam owner=dspam
  10. - name: Put dspam configuration files in place
  11. copy: src=etc_dspam_default.prefs dest=/etc/dspam/default.prefs owner=dspam group=dspam
  12. - copy: src=etc_dspam_dspam.conf dest=/etc/dspam/dspam.conf owner=dspam group=dspam
  13. - copy: src=etc_postfix_dspam_filter_access dest=/etc/postfix/dspam_filter_access owner=root group=root
  14. - copy: src=etc_dovecot_conf.d_20-imap.conf dest=/etc/dovecot/conf.d/20-imap.conf owner=vmail group=dovecot
  15. - copy: src=etc_dovecot_conf.d_90-plugin.conf dest=/etc/dovecot/conf.d/90-plugin.conf owner=vmail group=dovecot
  16. - copy: src=dot_dovecot.sieve dest=/decrypted-mail/${item.name}/${item.primary_user}/.dovecot.sieve owner=vmail group=dovecot
  17. with_items:
  18. - ${mail_virtual_domains}
  19. notify:
  20. - restart postfix
  21. - restart dovecot