From c1e9798d98b73167915fab0f41252f5ba1f54cc0 Mon Sep 17 00:00:00 2001 From: Christian Carstensen Date: Tue, 28 Jul 2020 16:07:10 +0200 Subject: [PATCH] use dovecot for mailbox_transport instead of virtual_transport --- templates/main.cf.j2 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/main.cf.j2 b/templates/main.cf.j2 index 3b3b049..9ad35de 100644 --- a/templates/main.cf.j2 +++ b/templates/main.cf.j2 @@ -80,29 +80,29 @@ smtpd_recipient_restrictions = permit_mynetworks, reject_non_fqdn_recipient, permit -{% if ("virtual_transport" in postfix and postfix.virtual_transport == "dovecot") +{% if ("mailbox_transport" in postfix and postfix.mailbox_transport == "dovecot") or postfix.ldap.enable %} {# This applies when LDAP or dovecot are configured #} smtpd_sasl_auth_enable = yes {% endif %} -{% if ("virtual_transport" in postfix and postfix.virtual_transport == "dovecot") +{% if ("mailbox_transport" in postfix and postfix.mailbox_transport == "dovecot") and postfix.ldap.enable %} {# This applies when dovecot and LDAP are configured #} dovecot_destination_recipient_limit = 1 -virtual_transport = dovecot +mailbox_transport = dovecot {% endif %} -{% if ("virtual_transport" in postfix and postfix.virtual_transport == "dovecot") +{% if ("mailbox_transport" in postfix and postfix.mailbox_transport == "dovecot") and not postfix.ldap.enable %} {# This applies when dovecot is configured, but not LDAP #} smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth dovecot_destination_recipient_limit = 1 -virtual_transport = dovecot +mailbox_transport = dovecot {% endif %} # Virtual maps