summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-09-20 15:15:06 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-09-20 15:15:06 +0100
commit9576dc98ad17e2eeb3c3c30ffc4fb5d2efe2c2c3 (patch)
tree5505d46a83ddc3c99135bacb569e2376655573f6 /bin
parent50d860036472d2a0bbd3ccd8d69f649d3b39983a (diff)
downloadpykolab-9576dc98ad17e2eeb3c3c30ffc4fb5d2efe2c2c3.tar.gz
Do not assume that because there is an sasl_username and such, the sender user can actually be found.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/kolab_smtp_access_policy.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/kolab_smtp_access_policy.py b/bin/kolab_smtp_access_policy.py
index 63795ae..473c0a0 100755
--- a/bin/kolab_smtp_access_policy.py
+++ b/bin/kolab_smtp_access_policy.py
@@ -1026,9 +1026,10 @@ class PolicyRequest(object):
return True
- self.verify_authenticity()
- self.sasl_user_uses_alias = self.verify_alias()
+ if self.verify_authenticity() == False:
+ reject(_("Unverifiable sender."))
+ self.sasl_user_uses_alias = self.verify_alias()
if not self.sasl_user_uses_alias:
log.debug(_("Sender is not using an alias"), level=8)