From 5f42f9e70c86f3988dd0add51138f5cadc7467a1 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Mon, 15 Feb 2016 23:31:05 +0100 Subject: [PATCH] Prepare mail role for real ssl certs. --- roles/mail/tasks/main.yml | 9 +++++++++ roles/mail/templates/dovecot/local.conf.j2 | 6 +++--- roles/mail/templates/postfix/main.cf.j2 | 6 +++--- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/roles/mail/tasks/main.yml b/roles/mail/tasks/main.yml index ce2ebad..db97c72 100644 --- a/roles/mail/tasks/main.yml +++ b/roles/mail/tasks/main.yml @@ -42,12 +42,21 @@ notify: Restart dovecot tags: mail +- name: Create dovecot ssl directory + file: path=/etc/dovecot/ssl state=directory mode=0750 owner=dovecot group=dovecot + tags: mail + +- name: Create postfix ssl directory + file: path=/etc/postfix/ssl state=directory mode=0750 owner=postfix group=postfix + tags: mail + - name: Configure policyd copy: src={{ item }} dest=/etc/postfix-policyd-spf-python/{{ item }} with_items: - policyd-spf.conf tags: mail +# TODO run postmap - name: Configure postfix template: src={{ item }}.j2 dest=/etc/{{ item }} with_items: diff --git a/roles/mail/templates/dovecot/local.conf.j2 b/roles/mail/templates/dovecot/local.conf.j2 index d7e09b1..6947dbe 100644 --- a/roles/mail/templates/dovecot/local.conf.j2 +++ b/roles/mail/templates/dovecot/local.conf.j2 @@ -15,9 +15,9 @@ mail_uid = vmail mail_gid = vmail ssl = yes -ssl_cert =