From 4e53443985d23c3b221c7a0919fa6a8097405a04 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sun, 4 Oct 2015 20:20:55 +0200 Subject: [PATCH] Adding connection setup between Postfix and Dovecot --- roles/ispmail-postfix/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/ispmail-postfix/tasks/main.yml b/roles/ispmail-postfix/tasks/main.yml index 477f498..5e0740f 100644 --- a/roles/ispmail-postfix/tasks/main.yml +++ b/roles/ispmail-postfix/tasks/main.yml @@ -30,3 +30,13 @@ - virtual-mailbox-maps - virtual-alias-maps +- name: Define dovecot service in master.cf + shell: postconf -vM dovecot/unix='dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/dovecot-lda -f ${sender} -d ${recipient}' + notify: restart postfix + +- name: Set virtual_transport to dovecot + shell: postconf virtual_transport=dovecot + +- name: Restricting delivery to Dovecot to one email at a time + shell: postconf dovecot_destination_recipient_limit=1 +