설명 없음
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.1KB

123456789101112131415161718192021222324252627282930313233343536
  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/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
  27. - name: Put sieve rules into each primary user directory
  28. copy: src=dot_dovecot.sieve dest=/decrypted/${item.name}/${item.primary_user}/.dovecot.sieve owner=vmail group=dovecot
  29. with_items:
  30. - ${mail_virtual_domains}
  31. notify: restart dovecot