diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2013-09-26 00:24:31 +0200 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2013-09-26 00:24:31 +0200 |
commit | b5d02f2d5938e6b9793519989d221ed1a0f8512b (patch) | |
tree | 1353fd93087fc0bda9b74080ac85d03247f98bfa /bin | |
parent | 9c73eae931a7c35431b7dbee96d2265aac3bd46e (diff) | |
download | pykolab-b5d02f2d5938e6b9793519989d221ed1a0f8512b.tar.gz |
Fix testing local but not the sender's domain
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/kolab_smtp_access_policy.py | 2 |
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], |