More work to support LDAP based mail configuration. We need host,dns resolver and transport maps
This commit is contained in:
parent
735ae4bcc7
commit
443d18025d
@ -5,7 +5,6 @@ bind = no
|
||||
#bind_dn = cn=admin,dc=example,dc=com
|
||||
#bind_pw = password
|
||||
query_filter = (&(objectClass=inetLocalMailRecipient) (!(mailHost=@THIS_HOST@)) (dc=%s))
|
||||
#domain = example.com, hash:/etc/postfix/searchdomains
|
||||
#expansion_limit = 1
|
||||
#recursion_limit = 1
|
||||
#size_limit = $expansion_limit
|
||||
|
@ -5,9 +5,8 @@ bind = no
|
||||
#bind_dn = cn=admin,dc=example,dc=com
|
||||
#bind_pw = password
|
||||
query_filter = (&(objectClass=inetLocalMailRecipient) (|(mail=%s)(mailLocalAddress=%s)))
|
||||
#domain = example.com, hash:/etc/postfix/searchdomains
|
||||
#expansion_limit = 1
|
||||
#recursion_limit = 1
|
||||
#size_limit = $expansion_limit
|
||||
result_attribute = entryUUID
|
||||
# result_format = %s
|
||||
result_attribute = mailHost
|
||||
result_format = relay:[%s]
|
||||
|
12
defaults/ldap_transport_maps
Normal file
12
defaults/ldap_transport_maps
Normal file
@ -0,0 +1,12 @@
|
||||
server_host = ldap
|
||||
search_base = @LDAP_SEARCH_BASE@
|
||||
version = 3
|
||||
bind = no
|
||||
#bind_dn = cn=admin,dc=example,dc=com
|
||||
#bind_pw = password
|
||||
query_filter = (&(objectClass=inetLocalMailRecipient) (|(mail=%s)(mailLocalAddress=%s)))
|
||||
#expansion_limit = 1
|
||||
#recursion_limit = 1
|
||||
#size_limit = $expansion_limit
|
||||
result_attribute = mailHost
|
||||
result_format = :[%s]
|
@ -5,7 +5,6 @@ bind = no
|
||||
#bind_dn = cn=admin,dc=example,dc=com
|
||||
#bind_pw = password
|
||||
query_filter = (&(objectClass=inetLocalMailRecipient) (mailHost=@THIS_HOST@) (|(mail=%s)(mailLocalAddress=%s)))
|
||||
#domain = example.com, hash:/etc/postfix/searchdomains
|
||||
#expansion_limit = 1
|
||||
#recursion_limit = 1
|
||||
#size_limit = $expansion_limit
|
||||
|
@ -5,7 +5,6 @@ bind = no
|
||||
#bind_dn = cn=admin,dc=example,dc=com
|
||||
#bind_pw = password
|
||||
query_filter = (&(objectClass=inetLocalMailRecipient) (|(mail=%s)(mailLocalAddress=%s)))
|
||||
#domain = example.com, hash:/etc/postfix/searchdomains
|
||||
#expansion_limit = 1
|
||||
#recursion_limit = 1
|
||||
#size_limit = $expansion_limit
|
||||
|
@ -1,3 +1,4 @@
|
||||
smtp_host_lookup = native,dns
|
||||
message_size_limit = 25600000
|
||||
queue_minfree = 51200000
|
||||
smtpd_helo_required = yes
|
||||
|
@ -1,7 +1,7 @@
|
||||
#relayhost = /etc/postfix/custom/relay_host
|
||||
relay_domains = lmdb:/etc/postfix/custom/relay_domains # ldap:/etc/postfix/custom/ldap_relay_domains
|
||||
relay_recipient_maps = lmdb:/etc/postfix/custom/relay_recipient_maps # ldap:/etc/postfix/custom/ldap_relay_recipient_maps
|
||||
transport_maps = lmdb:/etc/postfix/custom/relay_domains
|
||||
transport_maps = lmdb:/etc/postfix/custom/relay_domains # ldap:/etc/postfix/custom/ldap_transport_maps
|
||||
#transport_maps = $relay_domains
|
||||
#relay_transport = lmdb:/etc/postfix/custom/relay_domains <-- THIS DOESNT WORK?
|
||||
#relay_transport = relay:[c-8-2.leenooks.lan]:1025 <-- THIS DOES WORK
|
||||
|
Loading…
x
Reference in New Issue
Block a user