Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

50 wiersze
2.5 KiB

  1. ---
  2. - name: Create the vmail group
  3. group: name=vmail gid=5000
  4. - name: Create the vmail user
  5. user: name=vmail uid=5000 group=vmail home=/var/vmail
  6. - name: Create mailbox directory
  7. file: path=/var/vmail state=directory owner=vmail group=vmail
  8. - name: Allow LOGIN authentication method for Outlook clients
  9. lineinfile: dest=/etc/dovecot/conf.d/10-auth.conf regexp='^auth_mechanisms =' line='auth_mechanisms = {{ispmail_dovecot_auth_mechanisms}}' backrefs=yes
  10. notify: restart dovecot
  11. - name: Disabling system authentication
  12. lineinfile: dest=/etc/dovecot/conf.d/10-auth.conf regexp='^!include auth-system.conf.ext' line='#!include auth-system.conf.ext' backrefs=yes
  13. notify: restart dovecot
  14. - name: Enabling SQL-based authentication
  15. lineinfile: dest=/etc/dovecot/conf.d/10-auth.conf regexp='^\#!include auth-sql.conf.ext' line='!include auth-sql.conf.ext' backrefs=yes
  16. notify: restart dovecot
  17. - name: Copying SQL authentication configuration (auth-sql.conf.ext)
  18. copy: src=auth-sql.conf.ext dest=/etc/dovecot/conf.d/auth-sql.conf.ext
  19. notify: restart dovecot
  20. - name: Copying mailbox and namespace configuration (10-mail.conf)
  21. copy: src=10-mail.conf dest=/etc/dovecot/conf.d/10-mail.conf
  22. notify: restart dovecot
  23. - name: Copying service configuration (10-master.conf)
  24. copy: src=10-master.conf dest=/etc/dovecot/conf.d/10-master.conf
  25. notify: restart dovecot
  26. - name: Copying SSL configuration (10-ssl.conf)
  27. copy: src=10-ssl.conf dest=/etc/dovecot/conf.d/10-ssl.conf
  28. notify: restart dovecot
  29. - name: Copying LDA configuration (10-lda.conf - enable sieve plugin)
  30. copy: src=15-lda.conf dest=/etc/dovecot/conf.d/15-lda.conf
  31. notify: restart dovecot
  32. - name: Copying SQL access configuration (dovecot-ssql.conf.ext)
  33. template: src=dovecot-sql.conf.ext.j2 dest=/etc/dovecot/dovecot-sql.conf.ext
  34. notify: restart dovecot
  35. - name: Fixing ownership and mode of dovecot.conf
  36. file: path=/etc/dovecot/dovecot.conf group=vmail mode=0644
  37. notify: restart dovecot
  38. - name: Fixing ownership and mode of dovecot-sql.conf.ext
  39. file: path=/etc/dovecot/dovecot-sql.conf.ext owner=root group=root mode=0640
  40. notify: restart dovecot
  41. - name: Create directory for global sieve-after scripts
  42. file: path=/etc/dovecot/sieve-after state=directory
  43. - name: Create global sieve-after script to send spam to its mail folder
  44. copy: src=spam-to-folder.sieve dest=/etc/dovecot/sieve-after/spam-to-folder.sieve
  45. notify: recompile sieve script
  46. - name: Copying Sieve plugin configuration (90-sieve.conf)
  47. copy: src=90-sieve.conf dest=/etc/dovecot/conf.d/90-sieve.conf
  48. notify: restart dovecot