summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-09-26 00:24:31 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-09-26 00:24:31 +0200
commitb5d02f2d5938e6b9793519989d221ed1a0f8512b (patch)
tree1353fd93087fc0bda9b74080ac85d03247f98bfa /bin
parent9c73eae931a7c35431b7dbee96d2265aac3bd46e (diff)
downloadpykolab-b5d02f2d5938e6b9793519989d221ed1a0f8512b.tar.gz
Fix testing local but not the sender's domain
Diffstat (limited to 'bin')
-rwxr-xr-xbin/kolab_smtp_access_policy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/kolab_smtp_access_policy.py b/bin/kolab_smtp_access_policy.py
index 473c0a0..9db2c2a 100755
--- a/bin/kolab_smtp_access_policy.py
+++ b/bin/kolab_smtp_access_policy.py
@@ -799,7 +799,7 @@ class PolicyRequest(object):
self.auth = Auth(sasl_domain)
if verify_domain(sasl_domain):
- if self.auth.domains.has_key(sasl_domain):
+ if not self.auth.domains == None and self.auth.domains.has_key(sasl_domain):
log.debug(
_("Using authentication domain %s instead of %s") % (
self.auth.domains[sasl_domain],