From 3126a5258c09828a55cf6c2cd68a5460c719c8b7 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Sat, 27 Jul 2024 12:41:09 +0100 Subject: ldap: add ldap configuration files to postfix --- .../roles/postfix/templates/ldap/ldap-registeredaddress.cf.j2 | 11 +++++++++++ .../roles/postfix/templates/ldap/ldap-relay-recipients.cf.j2 | 11 +++++++++++ ansible/roles/postfix/templates/ldap/ldap-uid.cf.j2 | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100644 ansible/roles/postfix/templates/ldap/ldap-registeredaddress.cf.j2 create mode 100644 ansible/roles/postfix/templates/ldap/ldap-relay-recipients.cf.j2 create mode 100644 ansible/roles/postfix/templates/ldap/ldap-uid.cf.j2 (limited to 'ansible') 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 -- cgit v1.2.3