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.
 
 
 
 
 
 

52 rivejä
2.4 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: Copying SQL authentication configuration (auth-sql.conf.ext)
  9. copy: src=10-auth.conf dest=/etc/dovecot/conf.d/10-auth.conf
  10. notify: restart dovecot
  11. - name: Copying SQL authentication configuration (auth-sql.conf.ext)
  12. copy: src=auth-sql.conf.ext dest=/etc/dovecot/conf.d/auth-sql.conf.ext
  13. notify: restart dovecot
  14. - name: Copying mailbox and namespace configuration (10-mail.conf)
  15. copy: src=10-mail.conf dest=/etc/dovecot/conf.d/10-mail.conf
  16. notify: restart dovecot
  17. - name: Copying service configuration (10-master.conf)
  18. copy: src=10-master.conf dest=/etc/dovecot/conf.d/10-master.conf
  19. notify: restart dovecot
  20. - name: Copying SSL configuration (10-ssl.conf)
  21. template: src=10-ssl.conf dest=/etc/dovecot/conf.d/10-ssl.conf
  22. notify: restart dovecot
  23. - name: Copying LMTP configuration (20-lmtp.conf - enable sieve plugin)
  24. copy: src=20-lmtp.conf dest=/etc/dovecot/conf.d/20-lmtp.conf
  25. notify: restart dovecot
  26. - name: Copying SQL access configuration (dovecot-sql.conf.ext)
  27. template: src=dovecot-sql.conf.ext.j2 dest=/etc/dovecot/dovecot-sql.conf.ext
  28. notify: restart dovecot
  29. - name: Fixing ownership and mode of dovecot.conf
  30. file: path=/etc/dovecot/dovecot.conf group=vmail mode=0644
  31. notify: restart dovecot
  32. - name: Fixing ownership and mode of dovecot-sql.conf.ext
  33. file: path=/etc/dovecot/dovecot-sql.conf.ext owner=root group=root mode=0640
  34. notify: restart dovecot
  35. - name: Create directory for global sieve-after scripts
  36. file: path=/etc/dovecot/sieve-after state=directory
  37. - name: Create global sieve-after script to send spam to its mail folder
  38. copy: src=spam-to-folder.sieve dest=/etc/dovecot/sieve-after/spam-to-folder.sieve
  39. notify: recompile sieve script
  40. - name: Copying Sieve plugin configuration (90-sieve.conf)
  41. copy: src=90-sieve.conf dest=/etc/dovecot/conf.d/90-sieve.conf
  42. notify: restart dovecot
  43. - name: Copying Quota plugin configuration (90-quota.conf)
  44. copy: src=90-quota.conf dest=/etc/dovecot/conf.d/90-quota.conf
  45. notify: restart dovecot
  46. - name: Copying quota warning shell script to /usr/local/bin
  47. template:
  48. src: quota-warning.sh.j2
  49. dest: /usr/local/bin/quota-warning.sh
  50. mode: 0750
  51. notify: restart dovecot