summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-14 15:34:33 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-14 15:35:24 +0100
commitff28764357e7514cdb955dd49f2b7039a92dea0d (patch)
tree7df16da555e3decf5e5e6bbcbfb2e6c351187230 /pykolab
parent8e9f031beeb7d827f7881b514e427d740e77048d (diff)
downloadpykolab-ff28764357e7514cdb955dd49f2b7039a92dea0d.tar.gz
Correct the query_filter used in local recipient maps or postfix will always find a group it may conclude is therefore a valid recipient (#761)
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/setup/setup_mta.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/setup/setup_mta.py b/pykolab/setup/setup_mta.py
index f3d6d9b..36a5a25 100644
--- a/pykolab/setup/setup_mta.py
+++ b/pykolab/setup/setup_mta.py
@@ -62,7 +62,7 @@ domain = ldap:/etc/postfix/ldap/mydestination.cf
bind_dn = %(service_bind_dn)s
bind_pw = %(service_bind_pw)s
-query_filter = (|(&(|(mail=%%s)(alias=%%s))%(kolab_user_filter)s)%(kolab_group_filter)s)
+query_filter = (&(|(mail=%%s)(alias=%%s))(|%(kolab_user_filter)s%(kolab_group_filter)s))
result_attribute = mail
""" % {
"base_dn": conf.get('ldap', 'base_dn'),