Add basic LDAP config for recipients and senders
This commit is contained in:
parent
660b1900c8
commit
782a07a450
5 changed files with 46 additions and 12 deletions
|
|
@ -48,7 +48,7 @@ relay_domains = {{ postfix.relay_domains|join(', ') }}
|
|||
relay_transport = {{ postfix.relay_transport }}
|
||||
sender_dependent_relayhost_maps = {{ postfix.sender_dependent_relayhost_maps }}
|
||||
virtual_alias_maps = {{ postfix.virtual_alias_maps }}
|
||||
virtual_mailbox_domains = {{ postfix.virtual_mailbox_domains|join(' ') }}
|
||||
virtual_mailbox_domains = {{ postfix.virtual_mailbox_domains|join(' ') }}
|
||||
|
||||
mailbox_size_limit = 0
|
||||
recipient_delimiter = +
|
||||
|
|
@ -69,6 +69,13 @@ dovecot_destination_recipient_limit = 1
|
|||
virtual_transport = dovecot
|
||||
{% endif %}
|
||||
|
||||
{% if postfix.ldap.enable %}
|
||||
# LDAP config
|
||||
smtpd_sender_login_maps = proxy:ldap:/etc/postfix/virtual-senders.cf
|
||||
virtual_mailbox_maps = proxy:ldap:/etc/postfix/virtual-recipients.cf
|
||||
local_recipient_maps = $virtual_mailbox_maps
|
||||
{% endif %}
|
||||
|
||||
# opendkim
|
||||
|
||||
{% if postfix.enable_opendkim %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue