aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-07-27 12:41:09 +0100
committerGravatar Joe Banks <[email protected]>2024-07-31 13:25:52 +0100
commit3126a5258c09828a55cf6c2cd68a5460c719c8b7 (patch)
tree95275b050557dfb07487666bf99e0361a9c09223
parentpostfix: add main.cf file (diff)
ldap: add ldap configuration files to postfix
-rw-r--r--ansible/roles/postfix/templates/ldap/ldap-registeredaddress.cf.j211
-rw-r--r--ansible/roles/postfix/templates/ldap/ldap-relay-recipients.cf.j211
-rw-r--r--ansible/roles/postfix/templates/ldap/ldap-uid.cf.j211
3 files changed, 33 insertions, 0 deletions
diff --git a/ansible/roles/postfix/templates/ldap/ldap-registeredaddress.cf.j2 b/ansible/roles/postfix/templates/ldap/ldap-registeredaddress.cf.j2
new file mode 100644
index 0000000..99fc105
--- /dev/null
+++ b/ansible/roles/postfix/templates/ldap/ldap-registeredaddress.cf.j2
@@ -0,0 +1,11 @@
+# Ansible Managed
+
+server_host = {{ postfix_bind_server }}
+bind = yes
+bind_dn = {{ postfix_bind_user }}
+bind_pw = {{ postfix_bind_password }}
+search_base = {{ postfix_bind_search_base }}
+query_filter = (mail=%s)
+result_attribute = registeredAddress
+result_format = %s
+version = 3
diff --git a/ansible/roles/postfix/templates/ldap/ldap-relay-recipients.cf.j2 b/ansible/roles/postfix/templates/ldap/ldap-relay-recipients.cf.j2
new file mode 100644
index 0000000..d2b7f29
--- /dev/null
+++ b/ansible/roles/postfix/templates/ldap/ldap-relay-recipients.cf.j2
@@ -0,0 +1,11 @@
+# Ansible Managed
+
+server_host = {{ postfix_bind_server }}
+bind = yes
+bind_dn = {{ postfix_bind_user }}
+bind_pw = {{ postfix_bind_password }}
+search_base = {{ postfix_bind_search_base }}
+query_filter = (mail=%s)
+result_attribute = mail
+result_format = %s
+version = 3
diff --git a/ansible/roles/postfix/templates/ldap/ldap-uid.cf.j2 b/ansible/roles/postfix/templates/ldap/ldap-uid.cf.j2
new file mode 100644
index 0000000..638e23a
--- /dev/null
+++ b/ansible/roles/postfix/templates/ldap/ldap-uid.cf.j2
@@ -0,0 +1,11 @@
+# Ansible Managed
+
+server_host = {{ postfix_bind_server }}
+bind = yes
+bind_dn = {{ postfix_bind_user }}
+bind_pw = {{ postfix_bind_password }}
+search_base = {{ postfix_bind_search_base }}
+query_filter = (mail=%s)
+result_attribute = uid
+result_format = %s@localhost
+version = 3