use dovecot for mailbox_transport instead of virtual_transport
This commit is contained in:
parent
9c1a08e501
commit
c1e9798d98
1 changed files with 5 additions and 5 deletions
|
|
@ -80,29 +80,29 @@ smtpd_recipient_restrictions = permit_mynetworks,
|
||||||
reject_non_fqdn_recipient,
|
reject_non_fqdn_recipient,
|
||||||
permit
|
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
|
or postfix.ldap.enable
|
||||||
%}
|
%}
|
||||||
{# This applies when LDAP or dovecot are configured #}
|
{# This applies when LDAP or dovecot are configured #}
|
||||||
smtpd_sasl_auth_enable = yes
|
smtpd_sasl_auth_enable = yes
|
||||||
{% endif %}
|
{% 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
|
and postfix.ldap.enable
|
||||||
%}
|
%}
|
||||||
{# This applies when dovecot and LDAP are configured #}
|
{# This applies when dovecot and LDAP are configured #}
|
||||||
dovecot_destination_recipient_limit = 1
|
dovecot_destination_recipient_limit = 1
|
||||||
virtual_transport = dovecot
|
mailbox_transport = dovecot
|
||||||
{% endif %}
|
{% 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
|
and not postfix.ldap.enable
|
||||||
%}
|
%}
|
||||||
{# This applies when dovecot is configured, but not LDAP #}
|
{# This applies when dovecot is configured, but not LDAP #}
|
||||||
smtpd_sasl_type = dovecot
|
smtpd_sasl_type = dovecot
|
||||||
smtpd_sasl_path = private/auth
|
smtpd_sasl_path = private/auth
|
||||||
dovecot_destination_recipient_limit = 1
|
dovecot_destination_recipient_limit = 1
|
||||||
virtual_transport = dovecot
|
mailbox_transport = dovecot
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# Virtual maps
|
# Virtual maps
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue