選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

53 行
2.7 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 LMTP configuration (20-lmtp.conf - enable sieve plugin)
  30. copy: src=20-lmtp.conf dest=/etc/dovecot/conf.d/20-lmtp.conf
  31. notify: restart dovecot
  32. - name: Copying mailboxes configuration (15-mailboxes.conf - autocreate folders)
  33. copy: src=15-mailboxes.conf dest=/etc/dovecot/conf.d/15-mailboxes.conf
  34. notify: restart dovecot
  35. - name: Copying SQL access configuration (dovecot-ssql.conf.ext)
  36. template: src=dovecot-sql.conf.ext.j2 dest=/etc/dovecot/dovecot-sql.conf.ext
  37. notify: restart dovecot
  38. - name: Fixing ownership and mode of dovecot.conf
  39. file: path=/etc/dovecot/dovecot.conf group=vmail mode=0644
  40. notify: restart dovecot
  41. - name: Fixing ownership and mode of dovecot-sql.conf.ext
  42. file: path=/etc/dovecot/dovecot-sql.conf.ext owner=root group=root mode=0640
  43. notify: restart dovecot
  44. - name: Create directory for global sieve-after scripts
  45. file: path=/etc/dovecot/sieve-after state=directory
  46. - name: Create global sieve-after script to send spam to its mail folder
  47. copy: src=spam-to-folder.sieve dest=/etc/dovecot/sieve-after/spam-to-folder.sieve
  48. notify: recompile sieve script
  49. - name: Copying Sieve plugin configuration (90-sieve.conf)
  50. copy: src=90-sieve.conf dest=/etc/dovecot/conf.d/90-sieve.conf
  51. notify: restart dovecot