No Description
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 922B

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