aboutsummaryrefslogtreecommitdiffstats
path: root/roles/mailserver/tasks/dovecot.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/mailserver/tasks/dovecot.yml')
-rw-r--r--roles/mailserver/tasks/dovecot.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/roles/mailserver/tasks/dovecot.yml b/roles/mailserver/tasks/dovecot.yml
new file mode 100644
index 0000000..9d2c20e
--- /dev/null
+++ b/roles/mailserver/tasks/dovecot.yml
@@ -0,0 +1,39 @@
+- name: Install Dovecot and related packages
+ apt: pkg={{ item }} update_cache=yes state=installed
+ with_items:
+ - dovecot-core
+ - dovecot-imapd
+ - dovecot-lmtpd
+ - dovecot-antispam
+ tags:
+ - dependencies
+
+#- name: Copy dovecot.conf into place
+# copy: src=etc_dovecot_dovecot.conf dest=/etc/dovecot/dovecot.conf
+
+#- name: Create before.d sieve scripts directory
+# file: path=/etc/dovecot/sieve/before.d state=directory owner=vmail group=dovecot recurse=yes mode=0770
+# notify: restart dovecot
+
+#- name: Configure sieve script moving spam into Junk folder
+# copy: src=etc_dovecot_sieve_before.d_no-spam.sieve dest=/etc/dovecot/sieve/before.d/no-spam.sieve owner=vmail group=dovecot
+# notify: restart dovecot
+
+#- name: Copy additional Dovecot configuration files in place
+# copy: src=etc_dovecot_conf.d_{{ item }} dest=/etc/dovecot/conf.d/{{ item }}
+# with_items:
+# - 10-auth.conf
+# - 10-mail.conf
+# - 10-master.conf
+# - 90-antispam.conf
+# - 90-plugin.conf
+# - 90-sieve.conf
+# notify: restart dovecot
+
+#- name: Update post-certificate-renewal task
+# copy:
+# content: "#!/bin/bash\n\n/etc/init.d/dovecot restart\n"
+# dest: /etc/letsencrypt/postrenew/dovecot.sh
+# mode: 0755
+# owner: root
+# group: root