diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2011-08-15 17:41:19 -0400 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2011-08-15 17:41:19 -0400 |
commit | 339818bfba3f6facb48fe498a375cb567fb01093 (patch) | |
tree | 331a70089cf3743ff1e7a9805c824ef72d70cece /bin | |
parent | ba6fd6a45ddbd715a016d27e2d901bf3d09080e6 (diff) | |
download | pykolab-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-x | bin/kolab_smtp_access_policy.py | 8 |
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, |