diff options
author | bnewbold <bnewbold@robocracy.org> | 2022-06-22 18:41:36 -0700 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2022-06-22 18:41:36 -0700 |
commit | db539aade1b9daa4ba1b0347ed4cb0e39b0a2af4 (patch) | |
tree | 9584818df99934ffff6fe28ab236c929036e8c89 /roles/mailserver/tasks/dovecot.yml | |
parent | 810d4269058feb550083f6032ffa63af185f9a8d (diff) | |
parent | f6d3dac3b7b125f825c4a67d8f5dfeb22cd5dcc2 (diff) | |
download | infra-db539aade1b9daa4ba1b0347ed4cb0e39b0a2af4.tar.gz infra-db539aade1b9daa4ba1b0347ed4cb0e39b0a2af4.zip |
Merge branch 'master' of adze:infra
Diffstat (limited to 'roles/mailserver/tasks/dovecot.yml')
-rw-r--r-- | roles/mailserver/tasks/dovecot.yml | 39 |
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 |