summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,