Açıklama Yok
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

1234567891011121314151617181920212223242526272829303132333435
  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 user directory
  28. copy: src=dot_dovecot.sieve dest=/decrypted/{{ item.domain }}/{{ item.account }}/.dovecot.sieve owner=vmail group=dovecot
  29. with_items: mail_virtual_users
  30. notify: restart dovecot