summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-08-15 17:41:19 -0400
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-08-15 17:41:19 -0400
commit339818bfba3f6facb48fe498a375cb567fb01093 (patch)
tree331a70089cf3743ff1e7a9805c824ef72d70cece /bin
parentba6fd6a45ddbd715a016d27e2d901bf3d09080e6 (diff)
downloadpykolab-339818bfba3f6facb48fe498a375cb567fb01093.tar.gz
Fix bug #332: Recipients are verified on the SMTP level, but rejected in the access policy
Diffstat (limited to 'bin')
-rwxr-xr-xbin/kolab_smtp_access_policy.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/kolab_smtp_access_policy.py b/bin/kolab_smtp_access_policy.py
index 3c6adce..c162950 100755
--- a/bin/kolab_smtp_access_policy.py
+++ b/bin/kolab_smtp_access_policy.py
@@ -488,8 +488,12 @@ def verify_recipient(policy_request):
# testing can input invalid recipients, and so can faulty applications, or
# misconfigured servers.
if not user['dn']:
- reject(_("Invalid recipient"))
- return False
+ if not conf.allow_unauthenticated:
+ reject(_("Invalid recipient"))
+ return False
+ else:
+ log.debug(_("Could not find this user, accepting"), level=8)
+ return True
recipient_policy = auth.get_user_attribute(
domain,