From 735ae4bcc7acbd1344db002ad4e4d56d51cb169e Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 24 Apr 2025 21:31:01 +1000 Subject: [PATCH] Fix relay domain ldap map, we only look up a domain name, not an email address --- defaults/ldap_relay_domains | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/ldap_relay_domains b/defaults/ldap_relay_domains index f5f6c3c..0a2f4dd 100644 --- a/defaults/ldap_relay_domains +++ b/defaults/ldap_relay_domains @@ -4,7 +4,7 @@ version = 3 bind = no #bind_dn = cn=admin,dc=example,dc=com #bind_pw = password -query_filter = (&(objectClass=inetLocalMailRecipient) (!(mailHost=@THIS_HOST@)) (|(mail=%s) (mailLocalAddress=%s))) +query_filter = (&(objectClass=inetLocalMailRecipient) (!(mailHost=@THIS_HOST@)) (dc=%s)) #domain = example.com, hash:/etc/postfix/searchdomains #expansion_limit = 1 #recursion_limit = 1