Update settings to not use proxy
This commit is contained in:
parent
782a07a450
commit
1ce9ef9640
3 changed files with 9 additions and 4 deletions
|
|
@ -18,6 +18,11 @@ postfix:
|
||||||
ldap:
|
ldap:
|
||||||
enable: false
|
enable: false
|
||||||
server_host: ldap.example.com
|
server_host: ldap.example.com
|
||||||
search_base: "dc=example,dc=com"
|
senders:
|
||||||
|
search_base: "ou=users,dc=example,dc=com"
|
||||||
|
query_filter: ""
|
||||||
|
recipients:
|
||||||
|
search_base: "ou=users,dc=example,dc=com"
|
||||||
|
query_filter: ""
|
||||||
|
|
||||||
postfixmaps: []
|
postfixmaps: []
|
||||||
|
|
|
||||||
|
|
@ -71,8 +71,8 @@ virtual_transport = dovecot
|
||||||
|
|
||||||
{% if postfix.ldap.enable %}
|
{% if postfix.ldap.enable %}
|
||||||
# LDAP config
|
# LDAP config
|
||||||
smtpd_sender_login_maps = proxy:ldap:/etc/postfix/virtual-senders.cf
|
smtpd_sender_login_maps = ldap:/etc/postfix/virtual-senders.cf
|
||||||
virtual_mailbox_maps = proxy:ldap:/etc/postfix/virtual-recipients.cf
|
virtual_mailbox_maps = ldap:/etc/postfix/virtual-recipients.cf
|
||||||
local_recipient_maps = $virtual_mailbox_maps
|
local_recipient_maps = $virtual_mailbox_maps
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ bind = yes
|
||||||
server_host = {{ postfix.ldap.server_host }}
|
server_host = {{ postfix.ldap.server_host }}
|
||||||
search_base = {{ postfix.ldap.senders.search_base }}
|
search_base = {{ postfix.ldap.senders.search_base }}
|
||||||
query_filter = {{ postfix.ldap.senders.query_filter }}
|
query_filter = {{ postfix.ldap.senders.query_filter }}
|
||||||
result_attribute = cn
|
result_attribute = uid
|
||||||
{% else %}
|
{% else %}
|
||||||
# LDAP is not configured for this server.
|
# LDAP is not configured for this server.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue